8.10.15

VBoxed

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.

  1. In VBoxMgr menu, goto `VirtualBox|Preferences` from the menu and choose the Network tab
  2. 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 press OK)
  3. Right click on your vm instance and choose Settings|Network|Adapter 2 and be sure you have a Host-only Adapter (if not choose the Enable Network Adapter checkbox. It should assign the adapter name from the previous step. Click OK)
  4. Remember the name of the Host-only adapter (mine was vboxnet0)
  5. Open Terminal (on your Mac) and type ifconfig vboxnet0 where vboxnet0 is your Host-only adapter name from step #4. It should output something like this
    vboxnet0: flags=8943 mtu 1500
    ether 0a:00:27:00:00:00 
    inet 192.168.56.1 netmask 0xffffff00 broadcast ###.###.##.###
    Note the ip address next to inet: Mine was 192.168.56.1
  6. 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 enter notepad C:\Windows\System32\drivers\etc\hosts Press Finish)
  7. 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
    
  8. 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.
  9. Restart IE on your VM and browse to your Macs virtual domains.

No comments: