I've followed the Mounting NFS share to an unprivileged LXC tutorial to mount a NFS share in a container.
The mount on Proxmox node works (I can read/write
I've started the container using
A simpler
Removing the
What's the issue there?
Here is LXC's configuration:
I am using PVE 9.1.1 ("pve-manager/9.1.1/42db4a6cf33dac83 (running kernel: 6.17.2-1-pve)")
The mount on Proxmox node works (I can read/write
/mnt/nfsshare) but as soon as I add the mp0: /mnt/nfsshare/,mp=/foo line to the LXC configuration file (/etc/pve/lxc/100.conf) the container won't start anymore, from the GUI:run_buffer: 571 Script exited with status 13
lxc_init: 845 Failed to run lxc.hook.pre-start for container "100"
__lxc_start: 2047 Failed to initialize container "100"
TASK ERROR: startup for container '100' failed
I've started the container using
lxc-start -n 100 -F -lDEBUG -o lxc-100.log for more helpful messages but it started just fine:And GUI can access LXC's shellOpenRC 0.62.3 is starting up Linux 6.17.2-1-pve (x86_64) [LXC]
* /proc is already mounted
* /run/lock: creating directory
* /run/lock: correcting owner
* Caching service dependencies ... [ ok ]
* Mounting local filesystems ... [ ok ]
* Creating user login records ... [ ok ]
* Cleaning /tmp directory ... [ ok ]
* Remounting devtmpfs on /dev ...mount: mounting dev on /dev failed: Permission denied
[ !! ]
* Mounting /dev/mqueue ... [ ok ]
* Starting networking ... * lo ... [ ok ]
* eth0 ... [ ok ]
* Starting busybox syslog ... [ ok ]
* Starting busybox crond ... [ ok ]
Welcome to Alpine Linux 3.22
Kernel 6.17.2-1-pve on x86_64 (/dev/console)
acmecontainer login:
A simpler
lxc-start -n 100 also works.Removing the
mp0: /mnt/nfsshare/,mp=/foo allows starting the LXC from the GUI.What's the issue there?
Here is LXC's configuration:
arch: amd64
cores: 1
hostname: acmecontainer
memory: 512
mp0: /mnt/nfsshare/,mp=/foo
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.0.1,hwaddr=BC:24:11:ff:ff:ff,ip=192.168.0.2/24,type=veth
onboot: 1
ostype: alpine
rootfs: local-lvm:vm-100-disk-0,size=2G
swap: 512
tags: test
unprivileged: 1
I am using PVE 9.1.1 ("pve-manager/9.1.1/42db4a6cf33dac83 (running kernel: 6.17.2-1-pve)")
Last edited: