I'm trying to mount a zfs nfs share from another proxmox server (server1) onto an container (on server2)
server1 - pve-manager/5.4-13/aee6f0ec (running kernel: 4.15.18-27-pve)
server2 -pve-manager/6.1-8/806edfe1 (running kernel: 5.3.18-3-pve)
Are you able to make a bind mount in a container to another server, or do I have to mount the nfs share on the container's server first?
Would this be different if the two servers were in a cluster (they're not currently as I'm testing)?
Is there a better was to go about this?
e.g should I just mount directly in the container? It would be helpful to do it in the lxc .conf file as I'm scripting the provisioning.
I'm slightly drowning reading old threads on this so wanted to check what was current please? I'm reading up on apparmour currently as it's new to me
e.g.
do we still need to explicitely enable nfs in apparmour https://unix.stackexchange.com/ques...containers-to-mount-nfs-shares-on-the-network
as "But we plan to allow such mounts in future by adding feature flags, which can be set by the user more easily ... " - https://forum.proxmox.com/threads/nfs-file-system-mount-problem-apparmor.31706/
Am I right that lxc.aa_profile is now lxc.apparmor.profile in old threads- same thing?
Huge thanks in advance.
shares seem to exist
container config
server1 - pve-manager/5.4-13/aee6f0ec (running kernel: 4.15.18-27-pve)
server2 -pve-manager/6.1-8/806edfe1 (running kernel: 5.3.18-3-pve)
Are you able to make a bind mount in a container to another server, or do I have to mount the nfs share on the container's server first?
Would this be different if the two servers were in a cluster (they're not currently as I'm testing)?
Is there a better was to go about this?
e.g should I just mount directly in the container? It would be helpful to do it in the lxc .conf file as I'm scripting the provisioning.
I'm slightly drowning reading old threads on this so wanted to check what was current please? I'm reading up on apparmour currently as it's new to me
e.g.
do we still need to explicitely enable nfs in apparmour https://unix.stackexchange.com/ques...containers-to-mount-nfs-shares-on-the-network
as "But we plan to allow such mounts in future by adding feature flags, which can be set by the user more easily ... " - https://forum.proxmox.com/threads/nfs-file-system-mount-problem-apparmor.31706/
Am I right that lxc.aa_profile is now lxc.apparmor.profile in old threads- same thing?
Huge thanks in advance.
Code:
root@server2:pct set 102 -mp1 server1.rml:/mnt/fogimages,mp=/images
storage 'server1' does not exist
root@server2:~# pct set 102 -mp1 server1:/mnt/fogimages,mp=/images
shares seem to exist
Code:
root@server2:~# showmount -e server1
Export list for server1:
/mnt/prox-images *
/mnt/fog-images *
root@server2:~# pvesm nfsscan server1
/mnt/fog-images *
/mnt/prox-images *
container config
Code:
root@server2:~# cat /etc/pve/lxc/102.conf
arch: amd64
cores: 1
hostname: rmlfog
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=00:00:00:00:40:03,ip=dhcp,ip6=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-102-disk-0,size=15G
swap: 512
unprivileged: 1
Code:
root@server2:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
172.31.187.56 server2.rml server2
172.31.187.52 server1 server1.rml
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Last edited: