No host-only networking... (adapter IP resets)
Posted: 21. Sep 2011, 10:04
Basically it goes like this...
Currently I have a complicated setup where a Linux guest on a Windows host mounts a physical raw ext4 Linux disk (dual-boot system here) and then uses Samba to provide it as a network drive to Windows so I can read my Linux files there... (yes, there are no ext4 drivers for Windows available, and this is the best I could come up with).
This is done using a host-only network with both the Windows host-only adapter and the Linux adapter having a static IP (there's only two of them, so that's not so difficult to maintain).
However. Recently (well, since several months actually) I have found that Windows can't connect to the guest anymore. Now, I'm not sure, but I think this is because the VirtualBox host-only adaptor IP address doesn't match the Windows adaptor IP address (it says something like 169.254.71.67 where it should be 192.168.56.1 - but host-only networking is so badly documented I have no idea as a matter of fact). Changing it to match the Windows adaptor IP temporarily solves the problem. Temporarily, because every single time VirtualBox restarts, the IP address resets to its old (default?) value. Worse, sometimes I can't even save the address, it resets after every save, so it is impossible to connect to the guest, ever. Which is a problem.
So yeah. By now you should have figured out what my problem is and how I can solve it. Port forwarding may be an option, though I have no idea how it works...
Also, for reasons personal and of arrogance, I refuse to use bridged networking.
Currently I have a complicated setup where a Linux guest on a Windows host mounts a physical raw ext4 Linux disk (dual-boot system here) and then uses Samba to provide it as a network drive to Windows so I can read my Linux files there... (yes, there are no ext4 drivers for Windows available, and this is the best I could come up with).
This is done using a host-only network with both the Windows host-only adapter and the Linux adapter having a static IP (there's only two of them, so that's not so difficult to maintain).
However. Recently (well, since several months actually) I have found that Windows can't connect to the guest anymore. Now, I'm not sure, but I think this is because the VirtualBox host-only adaptor IP address doesn't match the Windows adaptor IP address (it says something like 169.254.71.67 where it should be 192.168.56.1 - but host-only networking is so badly documented I have no idea as a matter of fact). Changing it to match the Windows adaptor IP temporarily solves the problem. Temporarily, because every single time VirtualBox restarts, the IP address resets to its old (default?) value. Worse, sometimes I can't even save the address, it resets after every save, so it is impossible to connect to the guest, ever. Which is a problem.
So yeah. By now you should have figured out what my problem is and how I can solve it. Port forwarding may be an option, though I have no idea how it works...
Also, for reasons personal and of arrogance, I refuse to use bridged networking.