Page 1 of 1
Nat problem with linux guest
Posted: 15. Oct 2015, 16:39
by Kaasszje
Hi All,
I'm having problems with virtualbox 5 on getting nat to work.
First of I start a clean installation.
(First de-installed, removed vbox files from system32\drivers and from hklm\system\currentcontrolset\services and removed .virtualbox folder from userprofile)
Created a new vm.
Added a ubuntu live dvd to the image, and booted the live dvd
So on my host I have normal internet connectivity without any proxies what so ever.
So when I try to reach the internet from my host it can't reach it.:
ping nu.nl
ping: unknown host nu.nl
telnet nu.nl 80
telnet: could not resolve nu.nl/80: Temporary failure in name resolution
telnet: 62.69.166.254 --> trying to bypass dns
telnet: Unable to connect to remote host: Network is unreachable.
ifconfig --> gives 10.0.2.15 as ip-address
So in short my nat does get an ip from the vbox dhcp.
However I can't reach the internet.
Could you guys help me out why.
Re: Nat problem with linux guest
Posted: 15. Oct 2015, 17:03
by Kaasszje
Hereby a showvminfo:
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe showvminfo Test
Name: Test
Groups: /Productie omgeving
Guest OS: Ubuntu (64-bit)
UUID: 5b1408b4-caa3-44c6-8f62-a70d7ee26efa
Config file: C:\Users\martkrij\VirtualBox VMs\Productie omgeving\Test\Test.vbox
Snapshot folder: C:\Users\martkrij\VirtualBox VMs\Productie omgeving\Test\Snapshots
Log folder: C:\Users\martkrij\VirtualBox VMs\Productie omgeving\Test\Logs
Hardware UUID: 5b1408b4-caa3-44c6-8f62-a70d7ee26efa
Memory size: 1536MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Nested Paging: on
Large Pages: on
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
State: powered off (since 2015-10-15T14:23:54.676000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): IDE
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): SATA
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
IDE (1, 0): D:\Users\martkrij\Downloads\ubuntu-15.04-desktop-amd64.iso (UUID: 8eb68252-fe31-4b2b-a799-d88d451fb56c) (temp eject)
SATA (0, 0): C:\Users\martkrij\VirtualBox VMs\Productie omgeving\Test\Test.vdi (UUID: 3a12abf8-a90e-4c9e-87c6-4b7b48bb23b6)
NIC 1: MAC: 08002703F4B0, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: DSOUND, Controller: AC97, Codec: AD1980)
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: disabled
XHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders: <none>
Video capturing: not active
Capture screens: 0
Capture file: C:\Users\martkrij\VirtualBox VMs\Productie omgeving\Test\Test.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Guest:
Configured memory balloon size: 0 MB
Re: Nat problem with linux guest
Posted: 15. Oct 2015, 17:45
by Perryg
Code: Select all
ifconfig --> gives 10.0.2.15 as ip-address
So in short my nat does get an ip from the vbox dhcp.
Looks to me like it is getting the right IP address. What makes you think it is not and what do you think it should be?
Re: Nat problem with linux guest
Posted: 16. Oct 2015, 07:59
by Kaasszje
It is the right ip-address.
Problem is, the guest does not have network access.
So the nat dhcp works, however the network connection does not.
Re: Nat problem with linux guest
Posted: 16. Oct 2015, 13:36
by Perryg
I would try to find out why. The guest is getting the proper IP so DHCP is working. Next can you ping the host side ( gateway ) and the DNS server?
10.0.2.2 and 10.0.2.3 respectively?
Note about Windows hosts: icmp is disabled by default on Windows and ping does not work. You will need to enable ping to accurately test the connections.
Re: Nat problem with linux guest
Posted: 16. Oct 2015, 17:32
by Kaasszje
10.0.2.2 and 10.0.2.3 give a ping response.
However when trying to ping outside of the nat network it stops.
(or connect for that matter

)
Re: Nat problem with linux guest
Posted: 16. Oct 2015, 17:42
by Perryg
Then I would investigate the host for issues. IE. firewall or virus software that might be stopping it. Since I don't do windows I can't help with that but maybe someone that does can take over.
Re: Nat problem with linux guest
Posted: 16. Oct 2015, 20:24
by Kaasszje
In addition when I put the network mode into bridged.
It works right away (at least when I am at home, since my work location doesn't allow this

)
@Perryg thank you very much for the help
