[Solved] Virtualbox will not connect to internet
[Solved] Virtualbox will not connect to internet
Hello all,
I have seen a few discussions similar to this topic but none that have helped. My issue is my host machine can and will connect to the internet, but my guest machine, through Virtualbox VM cannot. When I check the status of my bridged connection it doesn't show any traffic either way and when I check the status on my host machine it shows traffic moving through it. My main reason for trying to set this up is for Home Assistant with hassos on a virtual machine. I get all the way to connecting through the hassos.local page and it never finishes the configuration process. Any ideas would be great. Thanks!
I have seen a few discussions similar to this topic but none that have helped. My issue is my host machine can and will connect to the internet, but my guest machine, through Virtualbox VM cannot. When I check the status of my bridged connection it doesn't show any traffic either way and when I check the status on my host machine it shows traffic moving through it. My main reason for trying to set this up is for Home Assistant with hassos on a virtual machine. I get all the way to connecting through the hassos.local page and it never finishes the configuration process. Any ideas would be great. Thanks!
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Virtualbox will not connect to internet
There is nothing magical about the way networking goes in a VirtualBox guest. Have you done the normal networking checks?
If you are using bridged networking, does the guest get a sensible IP and gateway address (hint - compare it to the host's config). If that looks reasonable, can you ping the gateway? If you can ping the gateway, can you ping an valid Internet address like 8.8.8.8 ?
If you are using bridged networking, does the guest get a sensible IP and gateway address (hint - compare it to the host's config). If that looks reasonable, can you ping the gateway? If you can ping the gateway, can you ping an valid Internet address like 8.8.8.8 ?
Bill
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Virtualbox will not connect to internet
There's no proper way to answer this until you reveal what the guest OS is. Typically people ask this question right after installing XP and discovering that in fact, network access works just fine, but the built-in Internet browser is two decades obsolete.
Re: Virtualbox will not connect to internet
Bill how would I check and or ping through the Ubuntu interface? When I start my VM for the hassos it loads but doesnt seem to fully configure on the VM. If I try and access the command section it just asks for user name and password, in which I can enter the generic root for user and gain access to the hassos info. But I cannot access any network info from there it tells me invalid command. Thanks again for the response.BillG wrote:There is nothing magical about the way networking goes in a VirtualBox guest. Have you done the normal networking checks?
If you are using bridged networking, does the guest get a sensible IP and gateway address (hint - compare it to the host's config). If that looks reasonable, can you ping the gateway? If you can ping the gateway, can you ping an valid Internet address like 8.8.8.8 ?
Mpack the main OS is WIN 10 and the guest is Linux Ubuntu. My main goal is just to get a VM with home assistant on it running off my main computer. Thanks for the reply.mpack wrote:There's no proper way to answer this until you reveal what the guest OS is. Typically people ask this question right after installing XP and discovering that in fact, network access works just fine, but the built-in Internet browser is two decades obsolete.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Virtualbox will not connect to internet
Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab.
Re: Virtualbox will not connect to internet
Scott I believe I have added the attachmentscottgus1 wrote:Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Virtualbox will not connect to internet
As long as your host has access to the local network and you remember to set the networking option to bridged, Home Assistant should work fine.
Are you on a wireless network? VirtualBox has trouble with some wireless networks. The only other problem I am aware of was a very strange problem which took a lot of tracking down.
viewtopic.php?f=6&t=100860
Hassos on my system gets its IP from DHCP just like the other physical and virtual machines on the LAN.
Are you on a wireless network? VirtualBox has trouble with some wireless networks. The only other problem I am aware of was a very strange problem which took a lot of tracking down.
viewtopic.php?f=6&t=100860
Hassos on my system gets its IP from DHCP just like the other physical and virtual machines on the LAN.
Bill
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Virtualbox will not connect to internet
JonE, you sent a vbox.log file, not the .vbox file. Try my instructions again, please.
Re: Virtualbox will not connect to internet
Sorry Scott, when I followed your instructions the files that populated were .vbox-prev (which you didn't want) and a .nvram file which I figured was not the .vbox. The only place I thought I saw one was the one I uploaded. I will upload a picture of what I am able to send/open when I right click and show in explorer.scottgus1 wrote:JonE, you sent a vbox.log file, not the .vbox file. Try my instructions again, please.
- Attachments
-
- VM capture.PNG (9.24 KiB) Viewed 10133 times
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Virtualbox will not connect to internet
Your Windows host is set to hide known extensions. Configure it to show all extensions and you'll find the .vbox file.
Re: Virtualbox will not connect to internet
Scott, again sorry for being ignorant but how would I do that?scottgus1 wrote:Your Windows host is set to hide known extensions. Configure it to show all extensions and you'll find the .vbox file.
Never mind I found it but it did not change anything the same files are the only ones I see.
Last edited by JonE on 23. Dec 2020, 05:06, edited 1 time in total.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Virtualbox will not connect to internet
Web-search for it, please, it's common Windows stuff.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Virtualbox will not connect to internet
He's definitely bridging to a wireless NIC.
Also, I see that the VM is on drive D while the primary VDI is in the Downloads folder in drive C. This is not a stable, long term solution, in fact it's a future disaster waiting to happen. The VDI needs to be inside the VM folder. And hopefully D is still an internal drive.
As a temporary solution or test, I would suggest plugging this PC directly into the router using an Ethernet cable. Then bridge to the PC's Ethernet NIC. That should definitely work. If it still doesn't work then it's a problem of the network config, not a VirtualBox config problem.
Before we go thinking up weird and complex problems, I'm wondering if it isn't something simple: could there be more than one WiFi on this PC? Could the VM be bridging to the wrong one?00:00:04.569166 Network <string> = "HostInterfaceNetworking-Intel(R) Dual Band Wireless-AC 8260" (cb=60)
Also, I see that the VM is on drive D while the primary VDI is in the Downloads folder in drive C. This is not a stable, long term solution, in fact it's a future disaster waiting to happen. The VDI needs to be inside the VM folder. And hopefully D is still an internal drive.
As a temporary solution or test, I would suggest plugging this PC directly into the router using an Ethernet cable. Then bridge to the PC's Ethernet NIC. That should definitely work. If it still doesn't work then it's a problem of the network config, not a VirtualBox config problem.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Virtualbox will not connect to internet
That would be my first move too.
@scottgus1@JonE Even if the extensions are not displayed, the .vbox file is pretty easy to see. It has a blue box and the file type is VirtualBox Machine Definition. It is quite clearly shown in the screenshot posted by JonE.
@scottgus1@JonE Even if the extensions are not displayed, the .vbox file is pretty easy to see. It has a blue box and the file type is VirtualBox Machine Definition. It is quite clearly shown in the screenshot posted by JonE.
Bill