Import local hosts into VirtualBox guest VM

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.

Notes.

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.