Sun VirtualBox File/Directory Sharing Between Mac OS X and Windows XP
Monday, September 15th, 2008I ran into this problem last night, and had a hard time Googling a solution, so here’s a brief summary of what I did just in case anyone else runs into it.
I was trying to set up VirtualBox on Mac OS X to share a directory between OS X and my Windows XP virtual machine. Under VirtualBox 2.0.2, here’s how you do that:
- Open VirtualBox. Make sure the virtual machine you’d like to share with is stopped. This should give you access to “shared folders” setting under the info panel.
- Open up that shared folders setting, and choose the directory you’d like to share and give it a name. Remember that name, because that winds up being used as part of a network share location by Windows XP.
- Save those settings, and start up your virtual machine.
- Here’s the part that took me an hour to figure out: you need to install the VirtualBox “guest additions” on your virtual machine to actually allow you to connect to the share. That’s located under the “Devices” menu item. You’ll be prompted to install guest additions and a bunch of drivers on your Windows XP VM; go ahead and accept all the prompts that pop up on the screen and reboot the VM if necessary.
- When your VM reboots, head over to the My Computer section and choose “Map Network Drive.” You’ll be mapping a drive with the following format: \\vboxsvr\[your_share_name_from_step_2]. The \\vboxsvr hostname is the standard default set by VirtualBox, so that’s what it should be on your install, too, unless there’s a way to change it.. While you’re here, check off the “Reconnect at logon” box so you’ll never need to do this step again.
- You’re done.
Tags: VirtualBox, sun, vm