VirtualBox IE Test Platform
If you don't yet have VirtualBox yet, follow this link first.
Once you have VirtualBox and the OS installed, you can point your VM to your mac.
- In VBoxMgr menu, goto `VirtualBox|Preferences` from the menu and choose the
Network
tab - Be sure you have at least one adapter under
Host-only Networks
(If not, press the + icon on the right to add one, remember the name it assigns and pressOK
) - Right click on your vm instance and choose
Settings|Network|Adapter 2
and be sure you have a Host-only Adapter (if not choose theEnable Network Adapter
checkbox. It should assign the adapter name from the previous step. ClickOK
) - Remember the name of the Host-only adapter (mine was
vboxnet0
) - Open Terminal (on your Mac) and type
ifconfig vboxnet0
wherevboxnet0
is your Host-only adapter name from step #4. It should output something like this
Note the ip address next to inet: Mine was 192.168.56.1vboxnet0: flags=8943
mtu 1500 ether 0a:00:27:00:00:00 inet 192.168.56.1 netmask 0xffffff00 broadcast ###.###.##.### - Launch your VM and create a desktop shortcut to add the virtual hostnames that point to your Mac. (Right click on desktop
New|Shortcut
. In the dialog enternotepad C:\Windows\System32\drivers\etc\hosts
PressFinish
) - Add your Macs virtual hosts beside the IP from step #5. (Right click the new shortcut and choose
Run as Adminstrator
This opens notepad with your hosts file. (You need admin privileges to edit this file.) At the end of the file add your Macs virtual domains prefixed with the inet ip addresses. Save and close.# Virtual Hosts that live on my Mac 192.168.56.1 dev.google.com 192.168.56.1 mydomain.dev
- Open cmd (Click the windows icon and type `cmd` in the "Search Programs and files" field at the bottom. When it opens, type
ipconfig /flushdns
and close. - Restart IE on your VM and browse to your Macs virtual domains.
No comments:
Post a Comment