Small issues with host-only networking in Vista
Small issues with host-only networking in Vista
Just upgraded to v2.2.0 and I was waiting for host-only networking, a welcome addition that's for sure... But it comes with a few minor issues in Vista as host. Minor, but annoying... Actually, one is very annoying...
1) I have disabled the host-only interface DHCP server and manually configured with the IPv4 IP address of 192.168.2.254 and 255.255.255.0 for network mask. Then, on a XP guest I configured the only network adapter created by the "host-only interface" to use the IP address of 192.168.2.101 and the same network mask.
Now, I have an HTTP server running on my host machine and for testing purposes I'm allowing connections from everywhere. If I open Firefox (in the XP guest) and insert "192.168.2.254" into the address field, it shows the homepage of my HTTP server. Everything's working, so far so good. To simplify things, I opened the "C:\Windows\System32\drivers\etc\hosts" hosts file in the XP guest and added "192.168.2.254 vmhost". If I open the command line and "ping vmhost" it resolves the hostname to "192.168.2.254" but if I open Firefox and place "vmhost" in the address field and press enter, it times out, it can't open the same homepage of my HTTP server.
This was working just fine in v2.1.4, although the host-only network was not available I was using the "Microsoft Loopback Adapter" virtual device to manage this and it was working.
For some strange reason it's not able to properly use the hostname, but it can use the IP address... Any reason for this?
This issue is kinda important to me, the following two are the minor issues but annoying.
2) Since I installed v2.2.0 that two of the network adapters in Vista have their icon desaturated (gray color), like they are disabled. The problem is that they are not disabled, they are enabled and working. These adapters are the "VirtualBox Host-Only Network" and "Local Area Connection" (the one I use to connect through ethernet to my router).
3) Having virtual adapters in Vista produces one little annoyance, it adds "unidentified networks" to the "Network and Sharing Center". This can be avoided... There's a little registry key that must be added so these adapters are ignored in the "Network and Sharing Center". This should be added to VirtualBox in a future maintenance release. I don't remember the actual registry key but I can look it up later for you guys if you want it.
1) I have disabled the host-only interface DHCP server and manually configured with the IPv4 IP address of 192.168.2.254 and 255.255.255.0 for network mask. Then, on a XP guest I configured the only network adapter created by the "host-only interface" to use the IP address of 192.168.2.101 and the same network mask.
Now, I have an HTTP server running on my host machine and for testing purposes I'm allowing connections from everywhere. If I open Firefox (in the XP guest) and insert "192.168.2.254" into the address field, it shows the homepage of my HTTP server. Everything's working, so far so good. To simplify things, I opened the "C:\Windows\System32\drivers\etc\hosts" hosts file in the XP guest and added "192.168.2.254 vmhost". If I open the command line and "ping vmhost" it resolves the hostname to "192.168.2.254" but if I open Firefox and place "vmhost" in the address field and press enter, it times out, it can't open the same homepage of my HTTP server.
This was working just fine in v2.1.4, although the host-only network was not available I was using the "Microsoft Loopback Adapter" virtual device to manage this and it was working.
For some strange reason it's not able to properly use the hostname, but it can use the IP address... Any reason for this?
This issue is kinda important to me, the following two are the minor issues but annoying.
2) Since I installed v2.2.0 that two of the network adapters in Vista have their icon desaturated (gray color), like they are disabled. The problem is that they are not disabled, they are enabled and working. These adapters are the "VirtualBox Host-Only Network" and "Local Area Connection" (the one I use to connect through ethernet to my router).
3) Having virtual adapters in Vista produces one little annoyance, it adds "unidentified networks" to the "Network and Sharing Center". This can be avoided... There's a little registry key that must be added so these adapters are ignored in the "Network and Sharing Center". This should be added to VirtualBox in a future maintenance release. I don't remember the actual registry key but I can look it up later for you guys if you want it.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Small issues with host-only networking in Vista
Try deleting the history, temp and cookies in Firefox. It may be using pre-existing cache.
Re: Small issues with host-only networking in Vista
That's not the problem, it also happens on every other browser, IE, Google Chrome, Opera, Safari... But I did try what you said, but didn't work.
Re: Small issues with host-only networking in Vista
Have you reinstalled 2.2 with repair option yet?
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
Re: Small issues with host-only networking in Vista
Just did that and it didn't solve the problem, the guest machines can't still recognize "vmhost" when trying to open a webpage at that hostname, which resolves to 192.168.2.254 and if I try the IP directly, it works. This is making no sense, I don't understand why it isn't working... :/
Problem #2 seems to have been solved with the repair install though...
Problem #2 seems to have been solved with the repair install though...
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Small issues with host-only networking in Vista
What if you use the computer name of the Host itself, instead of vmhost?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
Re: Small issues with host-only networking in Vista
Hum, that actually worked but if I try to ping it, it says it can't find the hostname.
But isn't it weird that I have the hostname pointing to "192.168.2.254" and using the hostname doesn't work but using the IP does work?
But isn't it weird that I have the hostname pointing to "192.168.2.254" and using the hostname doesn't work but using the IP does work?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Small issues with host-only networking in Vista
A couple of other things to see about.Nazgulled wrote:Hum, that actually worked but if I try to ping it, it says it can't find the hostname.
But isn't it weird that I have the hostname pointing to "192.168.2.254" and using the hostname doesn't work but using the IP does work?
The guests machine is where you need the information in the hosts file (I may have misunderstood where you put it) looked like you put it in the host machine.
And when creating a hosts file you should <tab> after the address, type the name, and be sure to hit the enter key.
While this is a flat file it is still treated like a DB file of sorts.
Re: Small issues with host-only networking in Vista
Try using names who are semi qualified, such as "vmname1.not.com", you might be resolving names that already exist somewhere behind your router on the internet.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
Re: Small issues with host-only networking in Vista
I've placed it in the guest machine of course, I'm not that dumbPerryg wrote:The guests machine is where you need the information in the hosts file (I may have misunderstood where you put it) looked like you put it in the host machine.
That's exactly what I did...Perryg wrote:And when creating a hosts file you should <tab> after the address, type the name, and be sure to hit the enter key.
While this is a flat file it is still treated like a DB file of sorts.
That didn't work either and I'm sure the names do not exist, I even tried something as "abcdef" and it doesn't work too.vbox4me2 wrote:Try using names who are semi qualified, such as "vmname1.not.com", you might be resolving names that already exist somewhere behind your router on the internet.
EDIT:
About problem #3, here's a link that explains the problem in more detail and how to solve it. It's "for" VMware but the principles are the same, you just need to find the VirtualBox device instead of VMware's.
Re: Small issues with host-only networking in Vista
You should really add this to the next minor version... I updated the v2.2.2 the other day and to my surprise, this registry hack was deleted. This means I need to do it every time I update VirtualBox, which is a pain... It makes no sense to have this adapter in the Network Connection Sharing and you should think in adding this to VirtualBox.Nazgulled wrote:EDIT:
About problem #3, here's a link that explains the problem in more detail and how to solve it. It's "for" VMware but the principles are the same, you just need to find the VirtualBox device instead of VMware's.