I’m sure everyone has hit that limitation of virtual networking where you cannot say map a drive, or connect to a hosted site on a VM from a machine like a laptop. While sometimes it is practical with wifi, other times it is not. And well maybe you just don’t want to expose your virtual machines to the world.
Luckily there is a solution, and it’s built into the OS!
The first thing you need to do is install a ‘virtual network adapter’.
It’s pretty much the same, from 2000,XP,Vista,7 (and yes, 2003/2008), go to hardware, add a new component, then manually select a network adapter, and go to Microsoft as a vendor.
On 7 (probably vista as well) it is more.. convoluted.
Go to the control panel, and then search for ‘hardware’. Then select “Device Manager”
Right click on your computer name, then select add legacy hardware.
And we are going to manually add the loopback adapter because it’s not a physical device, it’ll never get ‘discovered’.
Then it will confirm the selection, hit next and it’ll install the driver. Now go back to your control panel, and search for “view network connections” and you’ll now see the loopback adapter showup on the pane. From here you can set your own ip address that you want to use, turn off your firewall and then you can map drives etc etc…
Then simply click the radio buttons, and make sure your loopback is in the dropdown (The dropdown only shows if you have multiple connections, if you only have the two, then it is greyed out because.. it’s the only connection, nothing to worry about though!)
And to verify if you right click on the loopback, and bring up it’s properties, make sure the virtual machine bindings are checked off so that VirtualPC (or VirtualBOX) can bind into the loopback adapter.
And in the case of Virtual PC, with all of this done, just take your VM, and select the loopback on your network and go from there.
Phew that’s about the extent of it, but keep in mind if you are using SPRINT and their glorious dialer, it’ll detect more then one active interface with TCP/IP and it will either refuse to dial, or hangup immediately. Naturally there is a way around it, that I had mentioned earlier.
At a minimum it’ll help me adding loopbacks into the newer windows versions, that have done their best to hide this functionality.