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

Dmitry E. Mikhailov d.mikhailov at infocommunications.ru
Tue Aug 14 16:12:59 EDT 2012

> 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'/>

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.

More information about the CentOS-virt mailing list