2013-08-29

Installing Win7 guest in Virtualbox from a USB stick image

  1. Use dd to make an image file of the entire stick - e.g. dd if=/dev/sdg of=usb_stick.img
  2. Copy to target machine.
  3. Convert to .vmdk file using: "VBoxManage internalcommands createrawvmdk -filename output_usb.vmdk -rawdisk usb_stick.img (thanks to: http://www.dallagnese.fr/en/computers-it/boot-on-your-usb-drive-in-virtualbox-4/ ).
  4. Add the image file to the SATA controller as a hard drive. Make sure it has lowest SATA port number.