Freebsd – KVM attach drive to FreeBSD guest

freebsdguestkvm-virtualization

Im running FreeNas on a KVM guest. I need to add (attach) a virtual drive.

I run:
qemu-img create -f qcow2 morespace.img 10G

virsh:
attach-disk freenas /space/morespace.img vdb

I restart the FreeNas guest, but the spare drive is not shown on 'gpart list or show'

To make extra sure, I did the same steps for a Debian guest. The attached drive is available.

So I can only assume this is a FreeBSD issue.

Anyone know how to attach a drive to a FreeBsD KVM guest?

Best Answer

After much googling, I found the following on libvirt mailinglist

The command is

virsh: attach-disk freenas /space/morespace.img sdb (as opposed to vdb)