I recently setup a QEMU virtual machine with KVM running on Debian. The guest OS is FreeNAS (based on FreeBSD). I have given the guest access to a physical hard-disk on the host (not just a partition). I am using the
virtio bus. The configuration in Libvirt is:
<disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none'/> <source file='/dev/disk/by-id/ata-XXYYZZ'/> <target dev='vdb' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </disk>
Will I be able to use all features available from the hard-disk as if it were physically attached to the guest? For example, can I access SMART data, spindown the disk, modify the partition table from the guest?