Mounting storage to vm

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
Hi all,

After a lot of tries to get the jails working to install the -arr's, I switched to a vm on ubuntu server 20.04.
I installed it on my ssd with the idea of having the media on a dedicated 2tb harddrive.

How can I mount the 2 tb harddrive to the vm with the right permissions? I created a pool media with a dataset plex and several subdatasets. They were all created as smb
Code:
media
    -plex
        -movies
        -series
        -downloads
        
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If your intent is to dedicate the pool to the VM, create a zvol and mount it under devices in the VM settings. (you won't be able to see the contents of it from TrueNAS though, only in the VM).

If you want to use the storage on the TrueNAS from both inside the VM and directly, you will need to make an NFS share from TrueNAS and mount it in the VM.
 

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
If your intent is to dedicate the pool to the VM, create a zvol and mount it under devices in the VM settings. (you won't be able to see the contents of it from TrueNAS though, only in the VM).

If you want to use the storage on the TrueNAS from both inside the VM and directly, you will need to make an NFS share from TrueNAS and mount it in the VM.

I think I'm going for the second option. I already created the datasets with each ticked to 'smb' option.
Do I need to create a user for the vm? so I can set permissions, or is that not needed?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You could also mount with SMB (although that can introduce permissions issues that I don't usually like to deal with on Linux, but do it as you prefer)
 

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
problem is that every time I restart my vm, it keeps booting to the installer unless I'm fast enough to switch to the next volume..
Efibootmgr doesn't store the changes
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
every time I restart my vm, it keeps booting to the installer
Have you removed the CDROM device? (I guess that was only needed for the install)
 

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
that was the problem ;) everything works super fine now! installed dockers ,... much easier than fucking around with the jails
 
Top