
It is possible to attach a physical storage device directly to a kernel virtual machine but it cannot be done through the virt-manager GUI tool, it has to be handed-coded.
- Shut down the KVM.
- Edit the domain configuration XML. This can be done in the virt-manager UI or by directly editing the domain XML file. KVM XML files are located in
/etc/libvirt/qemu
on Fedora-based systems. - Add the following stanza in the
<devices>
section. Adjust the source and target dev attributes appropriately.
<disk type="block" device="disk">
<driver name="qemu" type="raw"/>
<source dev="/dev/sdX"/>
<target dev="vdX" bus="virtio"/>
</disk>