Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sudden

Discussions related to using VirtualBox on Windows hosts.
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sudden

Post by dk1301 »

I had installed virtualbox on Windows 7 host. Additionally I installed an Ubuntu 16.04 32 bit VM guest. For the network adapter I chose attach to Nat Network.
I have been using this configuration both behind a corporate proxy and on a home adsl router and both worked fine. Up to last week I had internet connection via the VM.
Unfortunately when I checked today I couldn't connect to the internet any more. When I ping the google DNS server 8.8.8.8 I also got Destination Host Unreachable.
I updated the Virtualbox and to its latest version 5.1.18r114002 but no success. I also added Google Dns servers 8.8.8.8 and 8.8.4.4 either on host or no guest but the internet
access could not be retrieved.
Has anyone any idea why this may have happened?
Mondraker
Posts: 2
Joined: 21. Mar 2017, 00:10

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by Mondraker »

Hi,

I unfortunatly face the same issue since the 14th of march. After a reboot no way to access network from a Ubuntu 14.4 without any change on the host or the guest network setting.
There was a windows update on this day but after a restauration of the system before this update the issue persist.

Guest: Ubuntu 14.4 64 bits
Host: Windows 7
Virtualbox: 5.1.10
Attachments
VBox (2).zip
(19.38 KiB) Downloaded 12 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by socratis »

@dk1301
I have no clue since you didn't attach any logs. But the answer may be the same as the one below.

@Mondraker
Your Lavasoft certificate has expired and the software cannot load. Either uninstall the Lavasoft software or update it.

Code: Select all

00:07:22.820726 supR3HardenedErrorV: supR3HardenedScreenImage/LdrLoadDll: rc=VERR_LDRVI_UNSUPPORTED_ARCH fImage=1 fProtect=0x0 fAccess=0x0 \Device\HarddiskVolume1\Windows\System32\LavasoftTcpService64.dll: WinVerifyTrust failed with hrc=CERT_E_EXPIRED on '\Device\HarddiskVolume1\Windows\System32\LavasoftTcpService64.dll'

00:07:22.821155 supR3HardenedErrorV: supR3HardenedMonitor_LdrLoadDll: rejecting 'C:\Windows\system32\LavasoftTcpService64.dll' (C:\Windows\system32\LavasoftTcpService64.dll): rcNt=0xc0000190
 Edit: I deleted your duplicate post from viewtopic.php?f=6&t=82273. Duplicates are not allowed. 
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by dk1301 »

Sorry @socratis I didn't know I had to provide log. Sorry for the inconvenience, I have enclosed it.

Guest: Ubuntu 16.04 amd64
Host: Windows 7
Virtualbox :5.1.18r114002
Attachments
VBoxSVC.zip
nat networking error log
(2.24 KiB) Downloaded 8 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by socratis »

I should have been more specific. The "VBoxSVC.log" is not an appropriate one in this case. Start the VM. When it fails, right-click on the VM in the VirtualBox Manager, "Show Log". Then either the "VBoxHardening.log" of the first "VBox.log".

Actually zip them both together and attach that zip file.

PS. Read my signature...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Mondraker
Posts: 2
Joined: 21. Mar 2017, 00:10

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by Mondraker »

Hi Socratis,

Sorry for the duplicate. And actually the issue was the same than the one of the post you mentionned above. So indeed unsinstalling the Web companion fixed the bug.

Thank you for the support
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by dk1301 »

Hi @socratis again. I enclosed the files you asked.
Attachments
Nat_Network_Fail.zip
(64.52 KiB) Downloaded 7 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by socratis »

Hey dk1301,
I took a look at your logs. I can't see anything glaring. Could you please post the output of the following commands from a Command Prompt in your Win host? The first one is just to get you to the "VBoxManage" directory:
  • cd "C:\Program Files\Oracle\VirtualBox"      <-- change it if not the default installation
    VBoxManage list natnets
    VBoxManage list dhcpservers
and from your Ubuntu guest the output of:
  • ifconfig -a
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by dk1301 »

Hi again, I have enclosed the command printouts

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage list natnets
NetworkName:    NatNetwork
IP:             10.0.2.1
Network:        10.0.2.0/24
IPv6 Enabled:   No
IPv6 Prefix:    fd17:625c:f037:2::/64
DHCP Enabled:   Yes
Enabled:        Yes
loopback mappings (ipv4)
        127.0.0.1=2

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage list dhcpservers
NetworkName:    HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP:             192.168.56.100
NetworkMask:    255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled:        Yes

NetworkName:    NatNetwork
IP:             10.0.2.3
NetworkMask:    255.255.255.0
lowerIPAddress: 10.0.2.4
upperIPAddress: 10.0.2.254
Enabled:        Yes

NetworkName:    NatNetwork1
IP:             10.0.2.3
NetworkMask:    255.255.255.0
lowerIPAddress: 10.0.2.4
upperIPAddress: 10.0.2.254
Enabled:        Yes

Code: Select all

npt@npt-VirtualBox:~$ ifconfig -a
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:03:68:77  
          inet addr:10.0.2.29  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::2ba2:c005:5862:fbff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:194 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:590 (590.0 B)  TX bytes:15181 (15.1 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:505 errors:0 dropped:0 overruns:0 frame:0
          TX packets:505 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:45249 (45.2 KB)  TX bytes:45249 (45.2 KB)
Last edited by socratis on 22. Mar 2017, 10:33, edited 1 time in total.
Reason: Included the attachments inline
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by socratis »

Problem #1: you chose your NATService to have the same range as the built-in NAT, 10.0.2.x. Did you have any particular reason for that, or was it by accident? In any event, try to change the range to something non-conflicting, like 10.35.97.x.

Problem #2: you have two identical DHCP servers. I really don't know how it affects things, but "I've got a bad feeling about this".

I suggest to delete the NatNetwork, and then cleanup the DHCP servers situation. Then re-create the NatNetwork with a suggested IP range as above. Repeat the commands and make sure that everything is in order. See how it goes...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by dk1301 »

Hi again I delete all previous nat networks and created a new with the proposed IP range but the problem persisted.
I enclosed the new command printout.

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage list natnets
NetworkName:    MyNetwork
IP:             10.35.97.1
Network:        10.35.97.0/24
IPv6 Enabled:   No
IPv6 Prefix:    fd17:625c:f037:2::/64
DHCP Enabled:   Yes
Enabled:        Yes
loopback mappings (ipv4)
        127.0.0.1=2

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage list dhcpservers
NetworkName:    HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP:             192.168.56.100
NetworkMask:    255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled:        Yes

NetworkName:    MyNetwork
IP:             10.35.97.3
NetworkMask:    255.255.255.0
lowerIPAddress: 10.35.97.4
upperIPAddress: 10.35.97.254
Enabled:        Yes

Code: Select all

npt@npt-VirtualBox:~$ ifconfig
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:d4:39:13  
          inet addr:10.35.97.5  Bcast:10.35.97.255  Mask:255.255.255.0
          inet6 addr: fe80::442f:1ba0:cea7:8fb7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1180 (1.1 KB)  TX bytes:10171 (10.1 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:13012 (13.0 KB)  TX bytes:13012 (13.0 KB)
Last edited by socratis on 22. Mar 2017, 13:06, edited 1 time in total.
Reason: Included the attachments inline
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by socratis »

  • Open an elevated Command Prompt (right-click, Run-as-Administrator) and execute the command:
    • sfc /scannow
  • If it comes with errors that can't be fixed, try to do the same procedure after a safe boot.
  • If that doesn't work, try to disable McAfee.
  • If that doesn't work, try to uninstall McAfee completely.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by dk1301 »

The result of sfc /scannow was :

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection did not find any integrity violations.
Unfortunately since I'm working on my company's pc the uninstall or disabling of McAfee is not an option.
Anyhow than for your help so far.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by socratis »

  • See if you can update McAfee.
  • See if you can disable parts of it, especially the firewall.
Other than that, I'm out of ideas...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
dk1301
Posts: 7
Joined: 20. Mar 2017, 18:21

Re: Nat networking in Virtual Box for Windows 7 host and Ubuntu 16.04 guest not working all of a sud

Post by dk1301 »

Hi all, I found a solution for my problem. I changed the adapter from the default intel to the AMD PCNet PCI II (Am79C970A).
Post Reply