[libvirt-users] How to passthru a block device from host to the quest os in kvm?

Dennis Chen dennis.chen at tnsoft.com.cn
Tue Nov 27 09:38:10 UTC 2012


Hi,

Is there any APIs or some XML scheme can passthru a local block device 
of the host, eg, /dev/sda1 to its running guest OS?
Specifically, say there is a block device /dev/sda1 in the host, mount 
it: mount /dev/sda1 /mnt; ls /mnt:
a.file, b.file

After passthru, the same /dev/sda1 can be used by the quest os(maybe the 
dev name is changed): mount /dev/sda1 /mnt; ls /mnt:
a.file, b.file.

BRs,
Dennis




More information about the libvirt-users mailing list