Help needed setting up Host-only subnet.

Discussions about using Windows guests in VirtualBox.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

Turn off the DHCP server in the preference section and then manually configure guests to not use dhcp and manually set it to use use ip=192.168.56.101, sub=255.255.255.0 all other fields blank.
Then see if you are still getting the gateway
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

Guest TCPIP Props & ipconfig.png
Guest TCPIP Props & ipconfig.png (23.02 KiB) Viewed 4951 times
Persistent little sucker, isn't it?

PS: I just rebooted the Guest. Same result.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

Turning off the host-only DHCP server has been eliminated VirtualBox from the equation, as I already knew could not be causing this. It must be some configuration change you put in that I don't know about. I would try to create another guest (new, not cloned) and see if it works properly as a test to see if it is the host or the guest.
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

Hi Perry. Good sleep I hope.
I remind you that I have bogus Host-only entries in my Host's WinReg. I'm awaiting advice from the devs via the bug I submitted yesterday before (manually) cleaning my WinReg - yes, I do know what to do and what not to do in the WinReg. I think it would be prudent to wait before going further. Let's give it a day or two.

PS: If you're interested, the bug is https://www.virtualbox.org/ticket/10797
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

Perry, I give up on ever understanding host-only. Can you just give me the numbers to put in? Thanks - Mark.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

host-only-1.png
host-only-1.png (25.24 KiB) Viewed 4930 times
host-only-2.png
host-only-2.png (28.41 KiB) Viewed 4930 times
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

Perry. I should have known you'd put that up. I wish it was that easy. (My HO subnet is 192.168.0.) I need ALL the numbers. when I set up as you have shown, it doesn't work. When I release and renew, Windows changes the Host-only to from 192.168.0.1/24 to 169.254.194.128/16. I've tried hard wiring HO and I've tried DHCP.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

I only did what you asked, and those are all the numbers.
Post your VirtualBox.xml as an attachment so I can see if the problem is there.
Note: you will need to rename the file to txt
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Help needed setting up Host-only subnet.

Post by Martin »

Mark, do you have another PC where you could try a clean install?
My guess with all these tests in this thread is that something is "stuck" somewhere in your Windows installation which somehow cannot be fixed with (VBox) reinstallation or reconfiguration.
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

How about if I uninstall VBox, reboot, then reinstall VBox from scratch? I assume I could point it to the existing *.vbox and *.vmdk files. What do you think? Worth a try or is there danger there?

PS: Oh! Martin. You think something has broken in Windows? Hmmm... What do you think, Perry? I guess I could make sure all remnants of Host-only and bridge and so on are removed from the registry. Manual cleaning of the registry is so tedius, but I see no other way.

That written, yes I have a spare system. I could install Windows from scratch and then install VBox. I would do that only with a mind to troubleshoot my current problem. I don't see what would be learned otherwise. What do you have in mind, Martin?
Last edited by markfilipak2 on 8. Aug 2012, 01:28, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

Uninstalling and re-installing do not remove the guests or the control files.
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

Control files?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

The main control file is VirtualBox.xml. Each guest has a control file as well .vbox.
These tell the host OS and VirtualBox what to expect and do.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help needed setting up Host-only subnet.

Post by Perryg »

I see you added more. I see no reason for editing the hosts registry. VirtualBox does not generate a gateway address for host-only and it would be something else that you would have added trying to get it to do something it was not designed to do in the first place. Not saying it can't be done but is not something supported.

Is there any reason why you do not want to provide the VirtualBox.xml file?
markfilipak2
Posts: 173
Joined: 15. Jul 2012, 18:23
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux Mint 18
Location: Ohio

Re: Help needed setting up Host-only subnet.

Post by markfilipak2 »

Perryg wrote:Is there any reason why you do not want to provide the VirtualBox.xml file?
I'm sorry. Did I miss your request? No problem.
VirtualBox.xml
(3.17 KiB) Downloaded 19 times
Downloads fine even though it's still a .XML file.

Perry. I started from scratch once again. I'm just trying to get host-only working. I'm not trying to tie it to Windows ICS (Internet Connection Sharing), though I think that's the router I was seeking.... That written, I'll find another way to get the Guest & Host both on the Internet -- NOT USING HOST-ONLY, okay?
H-O subnet: H = 192.168.0                            _____________________
Loc subnet: L = 192.168.1           ________        |  ______             |
                                   |        | L.102 | |      |            |
                                   |        |/\/\/\/| |7     |            |
                                   |________|       | |      |            |
                                    COMPUTER        | |      |            |
                                                    | |      |    ______  |
 ___________________________________________        | |      |   |      | |
|       _______       _____         ______  |       | | WLAN |---|5     | |
|  H.1 |       | H.2 |     | L.104 |      | |       | |      |   |      | |
| +----| Guest |-----| NAT |-------|      | |       | |      |   |      | |
| |    |_______|     |_____|       |      | | L.100 | |      |   |      | |
| |    _____         ______        | ICS  | |/\/\/\/| |6     |   |      | |
| |   |     | L.105 |      | L.103 |      | |       | |______|   |      | |
| +---| H-O |-------| Host |-------|      | |       |  ROUTER    |      | | L.1
|     |_____|       |______|       |______| |       |            |  LAN |--------
|       TUN                         ROUTER  |       -------------|4     | |
|___________________________________________|       |            |      | |
                  COMPUTER                          -------------|3     | |
                                                    |            |      | |
                                    ________        -------------|2     | |
                                   |        | L.101 |            |      | |
                                   |        |--------------------|1     | |
                                   |________|       |            |______| |
                                    COMPUTER        |             ROUTER  |
                                                    |_____________________|
                                                        EXTERIOR ROUTER
What do you think? The Gateway for all of subnet L is 192.168.1.1, right? And what about DHCP for subnet L? Do you think it can be made to work even though part of it connects to the tunnel?
Post Reply