Import local hosts into VirtualBox guest VM
Submitted by Pixel Chimp on Mon, 26/09/2011 - 17:52
I have made a simple script to take the locally defined hosts & import them into a Windows virtual machine running on VirtualBox.
It means local testing domains defined in your Macs /etc/hosts file can be viewed from the Windows environment, combined with xdissent’s ievms script it makes handling virtual machines a simple process.
The script creates a batch file & then runs it inside the VM. The VM requires the virtualbox guest additions.
The hosts created inside the VM will use the IP address of the Mac, because 127.0.0.1 on the VM will loopback internally & never make it to the Mac.
The original idea was from issue #28 in the ievms queue.