I know that I can share files using Shared Folders in Virtual PC, but this method seems to have pretty poor performance. Is there another method to share files that provides better performance? (Besides using something other than Virtual PC)
R – Sharing Files between VM and Host using Virtual PC 2007
virtual machinevirtual-pc
Related Solutions
"Versions prior to Microsoft Virtual Server 2005 supported splitting of disk images, if the disk image grew larger than the maximum supported file size on the host file system.
Some file systems, such as the FAT32 file system, have a 4-GB limit on file size. If the hard disk image expands more than 4 GB, Microsoft Virtual PC 2004 and previous versions will split the hard disk image into another file. The split files do not have any headers or footers, just raw data. The last split file has the footer stored at the end of the file. The first file in the split disk image has an extension of .vhd. The following split files use the .v01, .v02, … filename extension. The split files will be in the same directory as the main hard disk image. The maximum number of split files that can be present is 64.The size of the split file cannot be altered."
http://www.wirwar.com/blog/2007/10/26/splitting-a-virtual-pc-vhd/
I just got this working with basically three steps. The advice from askubuntu.com
didn't quite work for me, so try this simplified version:
- Get a basic Ubuntu image working. You should be able to boot it and
vagrant ssh
. - Next, enable the VirtualBox display, which is off by default. Halt the VM and uncomment these lines in
Vagrantfile
:config.vm.provider :virtualbox do |vb| vb.gui = true end
- Boot the VM and observe the new display window. Now you just need to install and start
xfce4
. Usevagrant ssh
and:sudo apt-get install xfce4 sudo startxfce4&
If this is the first time you're running this Ubuntu environment, you'll need to run the following command before installing xfce4:
sudo apt-get update
That's it, you should be landed in a xfce4
session.
Update: For a better experience, I recommend these improvements:
- Don't start the GUI as root. You really want to stay the
vagrant
user. To do this you need to permit anyone to start the GUI:sudo vim /etc/X11/Xwrapper.config
and edit it toallowed_users=anybody
. - Next, install the VirtualBox guest tools before starting the GUI. This will give you a healthy screen resolution, integrated mouse, etc.
$ sudo apt-get install -y xfce4 virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 $ sudo VBoxClient-all
- Only now should you start the GUI as the
vagrant
user, with$ startxfce4&
.
Update 2: Tried this today and the VBoxClient-all
script isn't always installed. If it's missing, you can replace with the equivalent:
sudo VBoxClient --clipboard sudo VBoxClient --draganddrop sudo VBoxClient --display sudo VBoxClient --checkhostversion sudo VBoxClient --seamless
Best Answer
The best way to do it is probably set up proper bridge network connection between host machine and VM.