[SOLVED] Add MountPoint to Virtual Machine

manjotsc

Active Member
Jul 2, 2020
73
6
28
Montreal, Quebec
I have few mount point shared in lxc containers, I want to add these to a VM in Proxmox, how can I do that?

Code:
mp1: /mnt/4TB/Plex,mp=/mnt/Plex
mp2: /mnt/4TB/torrent,mp=/mnt/torrent
mp3: /mnt/4TB,mp=/mnt/4TB
mp4: /mnt/S1TB/PlexShareOld,mp=/mnt/PlexShareOld
mp5: /mnt/pve/OneTB,mp=/mnt/OneTB
 
VMs work completely different in comparison to containers. Sharing Host mount points is no concept which is available in VMs.
You need to share the host-mounts either with NFS or SMB and then mount this into the guest OS. There is no other way to accomplish that.
 
@tburger @avw Thanks, I will try NFS.

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-20-04https://access.redhat.com/solutions/3773891

Note ---------------

Just had to run this command exportfs -rav after editing nano /etc/exports/ which is not listed in guide above otherwise get an error mount.nfs: access denied by server while mounting 192.168.80.10:/mnt/4TB/Plex

https://access.redhat.com/solutions/3773891

For auto mount

edit nano /etc/fstab

host_ip:/var/nfs/general /nfs/general nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

192.168.80.10:/mnt/4TB/ /mnt/4TB nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
 
Last edited:
  • Like
Reactions: mldy