I use Proxmox 5.4-13, just one node. Today I installed LXC Centos 7. I want to use NFS server in LXC. I did this:
I installed NFS on the node
Then I installed LXC centos 7 (ID 111)
I Now start the LXC Centos 7 and install NFS.
Everything seems to be all right. I want now to destroy the LXC. I can't destroy the LXC because
Can anyone advise me how to destroy the LXC?
I installed NFS on the node
Code:
apt-get install nfs-kernel-server
Code:
nano /etc/pve/lxc/111.conf
Code:
lxc.apparmor.profile = unconfined
Code:
yum -y install nfs-utils
systemctl enable nfs-server.service
systemctl start nfs-server.service
Code:
mkdir -p /nfs/abc
chown nfsnobody:nfsnobody /nfs/abc
chmod 755 /nfs/abc
Code:
nano /etc/exports
Code:
/nfs/abc *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,no_subtree_check)
Code:
exportfs -a
Everything seems to be all right. I want now to destroy the LXC. I can't destroy the LXC because
Code:
TASK ERROR: lvremove 'pve/vm-111-disk-0' error: Logical volume pve/vm-111-disk-0 contains a filesystem in use.
Can anyone advise me how to destroy the LXC?