Opened 7 years ago
Closed 7 years ago
#17918 closed defect (invalid)
NAT Network provides connectivity between VMs but not to the outside world.
Reported by: | Sakis Hrist | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 5.2.10 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Linux |
Description
System Information:
- Linux Mint 19
- VirtualBox 5.2.10_Ubuntu r121806
- Installed VirtualBox Extension Pack 5.2.16r123759
Description of the issue:
I have created a NAT Network with the following parameters:
Name: RHCE original Network: 192.168.4.0/24 Gateway: 192.168.4.1 IPv6: No Enabled: Yes
And DHCP:
NetworkName: RHCE original IP: 192.168.4.3 NetworkMask: 255.255.255.0 lowerIPAddress: 192.168.4.4 upperIPAddress: 192.168.4.254 Enabled: Yes
I have two VMs like so:
VM1: 192.168.4.210/24 VM2: 192.168.4.4/24
The DHCP works as expected and networking between the VMs seems to work fine. What does not work is access to the outside, including access to the gateway. I have tried this on another machine as well and it does not work as well.
Notes:
- NAT (not NAT Network) works properly.
- No additional interface or bridge on the host is created when the network is created/started (probably this is OK, but I though it worth mentioning)
Expected behavior:
Being able to perform ping 8.8.8.8 from the guests and to return a reply.
Attached files
- VBoxSVC.log while starting the VM
- VBox.log from the VM
- tcpdump from while performing ping 8.8.8.8
Attachments (4)
Change History (14)
by , 7 years ago
Attachment: | VBoxSVC.log added |
---|
by , 7 years ago
by , 7 years ago
Attachment: | trace.pcap added |
---|
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Indeed, you are not using NAT Network.
If the log was somehow wrong, please, reopen with new information.
comment:3 by , 7 years ago
Sorry, aparetnly I have attached the log from the session I ran with host-only net for getting the pcap file out of the box. Let me attach again...
by , 7 years ago
Attachment: | VBox.2.log added |
---|
comment:4 by , 7 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Please refer to the newly added VBox.2.log
Thanks for pointing it out.
comment:5 by , 7 years ago
VirtualBox VM 5.2.10_Ubuntu r121806 linux.amd64 (Jun 15 2018 16:14:07) release log
That's the Ubuntu fork, and a rather old one. You can either ask in their forums for help, or completely remove/uninstall/delete/purge their version and install the official version from the Downloads section of VirtualBox.
00:00:00.511318 File system of '/home/sakis/VirtualBox VMs/server1/server1_3.0-disk1.vmdk' is ext4 00:00:00.513484 File system of '/home/sakis/VirtualBox VMs/server1/server1_3.0-disk2.vmdk' is ext4 00:00:00.530982 [/Devices/lsilogicscsi/0/] (level 3)
You did not create this VM yourself, did you? You imported that VM. As such, have you checked that the TCP/IP settings are appropriate? Have you tried with a Live DVD and that failed? If you haven't please do.
BTW, it's usually better and faster, if issues get first addressed in the VirtualBox forums. More than 95% of the issues are resolved over there, which keeps the developers focusing on the bug fixes and enhancements, and there is no need for another ticket to keep track of.
So, if you can, please open a new thread in the Using VirtualBox section of the forums. Please be sure to mention that you came from the bug tracker and include the ticket number.
comment:8 by , 7 years ago
There's also a log file for the nat network in ~/.config/VirtualBox/$
natnet
.log
. Not much there usually, but it lists the MAC and IP it uses.
comment:9 by , 7 years ago
OK, hate to admit, but apparently I've messed up with the versions.
Yes, this is the official Ubuntu version. I thought that by adding the PPA and installing virtualbox
would get me the latest version. I had to install virtualbox-5.2
instead. Since I installed that, the issue described here does not exist, and the NAT network works as intended.
So I guess there's no need to answer the rest of your comments.
Sorry for taking your time people, and thanks for pointing out the obvious for me.
Can be closed.
The VBox.log shows that you're using a Host-only Adapter setting, not NAT Network, for your guest. It's expected not to have any external network access.