preserving permissions for `/etc/hosts.20': Operation not supported

  • Thread starter Thread starter xav
  • Start date Start date
X

xav

Guest
Hello,

When starting a container on a NFS share, I have the following error :

Code:
#vzctl restart 101
Restarting container
Stopping container ...
Container was stopped
Container is unmounted
Starting container ...
Container is mounted
Adding IP address(es): 192.168.0.7
Setting CPU units: 1000
Setting CPUs: 1
/bin/cp: preserving permissions for `/etc/hosts.20': Operation not supported
 ERROR: Can't copy file /etc/hosts
Container start in progress...

any suggestions ?

xav
 
Maybe the 'root' user is disabled on NFS share (this is a NFS server setting)?

Doesn't seems so. if I mount the share manually :

Code:
root@srv4:~# mount /home/vms 
root@srv4:~# touch /home/vms/test.txt
root@srv4:~# ls -all /home/vms/test.txt
-rw-r--r--+ 1 root root 0 Apr  6 19:22 /home/vms/test.txt

and if y do it on the path mounted by pve:

Code:
root@srv4:~# touch /mnt/pve/zpool-001209/test2.txt
root@srv4:~# ls -all /mnt/pve/zpool-001209/test2.txt 
-rw-r--r--+ 1 root root 0 Apr  6 19:23 /mnt/pve/zpool-001209/test2.txt

seems that root is enable.

xav