Ubuntu VM and access to freenas pools

pantrax

Cadet
Joined
Oct 27, 2018
Messages
2
Hellop, could do with a bit of help.

I went down this route of VM because i had problems with the plugin handling metadata correctly (either vnet not working for me or a permission issue - likely the first).

Now i've successfully installed ubuntu as VM, but i'm having issues reaching my pool from the VM and therefore also my media files that i want plex to show.

What is the recommended way of going about to get this done? Please be specific as my linux knowledge is only mediocre at best. Some time ago i was playing around with VM in on another system and it offered me a way of mounting my data in the VM.. which is exactly what i want. With write access.

Thanks in advance!
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Not sure if a VM inside FreeNAS can see the pool, probably not.. In any case, try to export your media (smb or nfs), mount it inside the vm, and see if you can access it that way.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I can, it's not fast enough though as it's treated as an networked system.

Never user VMs on FreeNAS. Long time ago jails and plugins allowed add storage from the volumes. You will need to research or someone else might have other suggestion for your scenario.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
There is no way to pass storage other then zvol’s to a virtual machine. Stick with jails if possible, a plugin might be a waste of time.

If FreeBSD can do it, do it in a jail.

If you need a VM your only choice for access to FreeNAS storage is nfs (or possibly smb). The internal network speed between FreeNAS and the VM is probably higher then the pools speed any way.

Correction: you can of course use S3 or any other sharing tool as well, just not a “native” expose of a dataset to a VM like we do with jails
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
There is no way to pass storage other then zvol’s to a virtual machine. Stick with jails if possible, a plugin might be a waste of time.

If FreeBSD can do it, do it in a jail.

If you need a VM your only choice for access to FreeNAS storage is nfs (or possibly smb). The internal network speed between FreeNAS and the VM is probably higher then the pools speed any way.

Agreed. Just finished reading the manual and found nothing on adding storage to a VM. Maybe a suggestion to the bhyve folks? Shouldn't be impossible, maybe not high on the list ;)
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749

I've used bhyve on a desktop running i7/32G RAM/40TB pool. It does work fine. The only issue is that still a little bit hard to make all OSs run with it, i.e. CentOS, Windows. I'd to move all my linux VMs to ubuntu. Windows was also a pain, luckily I don't use it. Moved all to ESXi, FreeNAS VM, HBAs in pass-through, 10Gb network. It works like a charm.
 
Top