Is there any virtual machine under Linux which can start Windows (XP) from real hard drive partition, not from emulation image?

link|improve this question

50% accept rate
feedback

4 Answers

up vote 3 down vote accepted

VMWare products can map physical disks to virtual disks, both on Linux and Windows:

http://www.vmware.com/support/ws55/doc/glossary%5Fws.html#wp1018930

Physical disk

— A hard disk in a virtual machine that is mapped to a physical disk drive or a partition of a drive on the host machine. A physical disk is also referred to as a raw disk. A virtual machine's disk can be stored as a file on the host file system (see Virtual disk) or on a local hard disk. When a virtual machine is configured to use a physical disk, VMware Workstation directly accesses the local disk or partition as a physical device (not as a file on a file system). It is possible to boot a previously installed operating system on an existing partition within a virtual machine environment. The only limitation is that the existing partition must reside on a local IDE or SCSI drive.

link|improve this answer
feedback

In xen you can use the device and give it directly to your guest. You can use lvm:

disk        = [
                  'phy:/dev/volg1/thedisk,sda1,w',
                  'phy:/dev/volg1/theswap,sda2,w',
              ]

or directly a harddrve partition:

disk        = [
                  'phy:/dev/sda1,sda1,w',
              ]

you also can give a complete Disk to a guest, and let them partiton it:

disk        = [
                  'phy:/dev/sdb,sdb,w',
              ]
link|improve this answer
Thank you very much! – user20272 Oct 20 '09 at 14:25
feedback

KVM and Xen can both do it -- you just point the VM at the physical partition.

link|improve this answer
Xen is obsolete nowadays – o_O Tync Oct 20 '09 at 14:07
2  
My, aren't we the king of unsubstantiated assertions... – womble Oct 21 '09 at 22:32
feedback

Easier: sudo qemu /dev/sdX will launch a virtual machine from an actual disk ;) qemu is free software, usually present in your distro's repositories

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.