So on my desk I have my workstation and my FreeNAS which currently runs one VM.
If I need to run up a lab of VMs I will do it on my workstation using VirtualBox and a spare SSD I have mounted internally.
I was idly thinking how it would be nice to run more VMs on the FreeNAS but I don’t really want to uses its compute and memory to run loads of VMs cause that’s not its job.
So I thought I bet I could source cheap parts on eBay for a Linux hypervisor. As in business where you separate the compute and storage functions into dedicated systems.
The end goal would be to have the Virtual Machine Manager client on my workstation, the QEMU / KVM hypervisor on a separate machine and the VM files stored on the FreeNAS.
I decided try it out on my existing workstation and see what’s what.
After a little faffing I could build a VM via Virtual Machine Manager using QEMU / KVM on my local storage. So now I want to use my already mounted FreeNAS storage.
Some steps are not included below for brevity.
Here is the contents of the mounted drive before we start.
Pick an ISO.
Manage the storage.
Add a storage pool.
Add a path.
Looking good. A new folder has appeared.
Create a storage volume for the VM.
The user I am logged in with is a member of the ‘libvirt’ group. Attempting this using the 'Network Exported Directory" option for the storage pool fails with the same issue.
I have successfully gotten VMs working by setting iSCSI targets on the FreeNAS and presenting them to my workstation which you would think would be more complicated (but that seems to come with different issues).
The weird thing is however is that the qcow2 file has been created.
So if I look at the permissions in FreeNAS I see the following.
If I chmod the qcom2 file to 777 it works but why am I having to do this?
Any advice would be most welcome.