Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Problem with ping to VM and Windbg

jguo5258jguo5258 Member Posts: 26

So basically I am trying to set up windbg for my vm. First of all, my host cannot reach my VM through ping. It says: "destination host unreachable". Also, windbg shows "waiting to reconnect". I have been going through google for 2 hours now, and I can't find a solution. my VM is connected with NAT.

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,403

    Yep, that’s why. With NAT, your VM can dial out, but no one can dial in. That's Just like your regular corporate network. You can either use “bridged” networking, or you can use a fake serial port. That option works pretty will with a VM.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • jguo5258jguo5258 Member Posts: 26
    > @Tim_Roberts said:
    > Yep, that’s why. With NAT, your VM can dial out, but no one can dial in. That's Just like your regular corporate network. You can either use “bridged” networking, or you can use a fake serial port. That option works pretty will with a VM.

    But without NAT, I can’t use windbg. I’m trying to set up NET debugging
  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,403

    But without NAT, I can't use windbg. I'm trying to set up NET debugging.

    Why do you say you need NAT? Where did you read that? Using NAT is like having your debug host out on the internet with your debug target inside your firewall. NAT lets the target reach outside, but no one from the outside can get through the firewall. As you have seen, you cannot "ping" into a NAT connection. Most of the advice on the net suggests using a "host-only" network.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • jguo5258jguo5258 Member Posts: 26

    @Tim_Roberts said:

    But without NAT, I can't use windbg. I'm trying to set up NET debugging.

    Why do you say you need NAT? Where did you read that? Using NAT is like having your debug host out on the internet with your debug target inside your firewall. NAT lets the target reach outside, but no one from the outside can get through the firewall. As you have seen, you cannot "ping" into a NAT connection. Most of the advice on the net suggests using a "host-only" network.

    My virtual machine does not have any connection with host only option enabled. Also, still "waiting to reconnect".

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,403

    I would still like to know why you think you need NAT. Did you read that on a web site?

    I don't think you can change the network option while the VM is running. Did you stop it first?

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • jguo5258jguo5258 Member Posts: 26

    @Tim_Roberts said:
    I would still like to know why you think you need NAT. Did you read that on a web site?

    I don't think you can change the network option while the VM is running. Did you stop it first?

    NAT used to work for me. Also, I got it to work, but I have been having waiting to reconnect problems after getting it to work for a short period of time.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA