[CentOS-virt] Accessing NTFS on host from XP/Win7 VM

Tue Aug 14 20:12:59 UTC 2012
Dmitry E. Mikhailov <d.mikhailov at infocommunications.ru>

> I have installed XP as a guest under Centos.
> 
> Now I want to install, say firefox, whose setup file is in the second
> NTFS partition of host from the XP guest.
> 
> How to make  the partition visible to the guest?
Add a full physical disk to the VM:

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native'/>
      <source dev='/dev/sda'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

*** WARNING *** WARNING *** WARNING ***
Don't never ever try to boot Linux again from that disk in a virtual
machine OR even write anything onto Linux partitions. Trying to
mount/write already mounted partitions = big shit happens.