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!
Gene FontanillaInfrastructure Project LeadAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
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"
Gene FontanillaInfrastructure Project LeadAuthor Commented:
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
Zephyr ICTCloud ArchitectCommented:
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.
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Gene FontanillaInfrastructure Project LeadAuthor Commented:
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.
Zephyr ICTCloud ArchitectCommented:
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 ...
Gene FontanillaInfrastructure Project LeadAuthor Commented:
Ubuntu 15.04

4.3.26_Ubuntur98988
Zephyr ICTCloud ArchitectCommented:
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.
Gene FontanillaInfrastructure Project LeadAuthor Commented:
Yes I have no problem in creating the natnetwork, the problem is on starting the network
Zephyr ICTCloud ArchitectCommented:
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.
Gene FontanillaInfrastructure Project LeadAuthor Commented:
It is strange, and i can't find any solution to this error. :(
Zephyr ICTCloud ArchitectCommented:
Virtualbox still tells people that this solution is experimental, so might be you're not going to find a solution quickly... I've read some posts of people using Ubuntu having issues with NAT.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.