Link to home
Start Free TrialLog in
Avatar of Gene Fontanilla
Gene Fontanilla

asked on

virtualbox nat network

Hi Experts,

I have a problem in using the NAT NETWORK feature of virtualbox. Here are the steps I have done to create the Nat Network:

VBoxManage natnetwork add --netname natnet1 --network "192.168.1.0/24"  --enable --dhcp on

VBoxManage natnetwork start --netname natnet1

And after trying to start the network I get this error

VBoxManage: error: Code NS_ERROR_FAILURE (0x80004005) - Operation failed (extended info not available)
VBoxManage: error: Context: "Start(Bstr("whatever").raw())" at line 449 of file VBoxManageNATNetwork.cpp
VBoxManage: error: Failed to start network


I hope you can help me out, as I want to fully utilize the functionality of this feature.

Thanks!
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Probably a stupid question, but did you try to run this command as root/sudo?

Also, can you post the outcom of "VBoxManage list natnets"
Avatar of Gene Fontanilla
Gene Fontanilla

ASKER

Yes i did run this as sudo/root

here are the results

vboxmanage list natnets
NetworkName:    NatNetwork
IP:             10.0.2.1
Network:        10.0.2.0/24
IPv6 Enabled:   No
IPv6 Prefix:    
DHCP Enabled:   Yes
Enabled:        Yes
Port-forwarding (ipv4)
        Rule 1:tcp:[]:3022:[10.0.0.15]:22
        Rule 2:tcp:[]:1022:[10.0.0.16]:22
        Rule 3:tcp:[]:1080:[10.0.0.15]:80
loopback mappings (ipv4)
        127.0.0.1=2
Do you need the already present NAT network? Have you tried disabling it and then adding/enabling the new one? They should be able to coexist but maybe something is blocking the new one from being created.
Yes i have disabled the present NAT network, and added/enabled a new one, but when i start the network its still the same error.
Hmmm ... Is your VB version recent? "vboxmanage --version"
What version/distro is your Linux box?

I'll dig a little deeper to see if something pops up ...
Ubuntu 15.04

4.3.26_Ubuntur98988
In the manual of 4.3.26 they actually use the command as follows:
VBoxManage natnetwork add -t nat-int-network -n "192.168.1.0/24" -e -h on

Open in new window


Does this work on Linux? I can' test at the moment... I'd think this command is more Windows related.
Yes I have no problem in creating the natnetwork, the problem is on starting the network
Well ... Strange, it works for me ... I've tested it on my installation and it works ... Strange.
I'm not using Ubuntu though ... I'm using Fedora.
It is strange, and i can't find any solution to this error. :(
ASKER CERTIFIED SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial