DHCP is not enabled for "VirtualBox Host-Only Network"

Discussions related to using VirtualBox on Windows hosts.
Immancy
Posts: 10
Joined: 29. May 2017, 13:42

Re: DHCP is not enabled for "VirtualBox Host-Only Network"

Post by Immancy »

Create a new VM. Use a Linux LiveCD but change the network card from NAT (the default) to HostOnly. Does the guest get an address?
Can i install it from iso downloaded from online? Please let me know
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: DHCP is not enabled for "VirtualBox Host-Only Network"

Post by socratis »

Yes, exactly, but don't even bother installing it. Just go into Live mode, after you've changed the Network Adapter to be Host Only.
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.
Immancy
Posts: 10
Joined: 29. May 2017, 13:42

Re: DHCP is not enabled for "VirtualBox Host-Only Network"

Post by Immancy »

I did a re-installation, after carefully deleting all the host only and the ghost dhcp servers that was conflicting earlier.
Now I could not create any host only adapter, its throwing an error
"Failed to create the host network interface"
SetupDiCallClassInstaller(DIF_INSTALLDEVICE) failed
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: DHCP is not enabled for "VirtualBox Host-Only Network"

Post by socratis »

Would you mind doing a "careful" re-installation, according to the recipe I gave you? viewtopic.php?f=6&t=83252#p394075

If it still fails, then right-click on the VirtualBox shortcut. Select "Run-as-Administrator". Go directly in the VirtualBox Preferences » Networks » Host-only networks » Add. "OK" your way out. Quit VirtualBox, launch it normally.
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.
Immancy
Posts: 10
Joined: 29. May 2017, 13:42

Re: DHCP is not enabled for "VirtualBox Host-Only Network"

Post by Immancy »

Finally finally it worked. Thank God.
After the reboot the adapter appeared (with 10 more adapters which got created every time when i tried to create earlier)
Apart from the re-installation, On the Host-Only adapter network setting, i Checked the cable connected this time.
now I could talk with the guest machine.
Few other steps I followed, in the windows firewall i disabled the the firewall and enabled it again for the Ethernet adapter.

Thank you for all your help.
MoKanan
Posts: 1
Joined: 10. Feb 2020, 23:35

Re: DHCP is not enabled for "VirtualBox Host-Only Network"

Post by MoKanan »

Sometimes, it could happen that the interface setting inside host OS are wiped out!
I cheked the host /etc/network/interfaces , and found that the primary interface entries were not present
I updated the file with host primary interface:

Code: Select all

auto  enp0s3
iface enp0s3 inet dhcp
Post Reply