Mount, bind, disk from host in CT - chmod - Function not implemented

Feb 1, 2015
16
3
23
Hi,
I'm trying to mount a folder on host in one virtual Container server. I have created the file /etc/vz/conf/109.mount and put this inside:

#!/bin/bash
. /etc/vz/vz.conf
. ${VE_CONFFILE}
SRC=/mnt/disk01
DST=/mnt/disk01
if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi
mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}

the I try to do it executible:
chmod +x /etc/vz/conf/109.mount
but I only get "chmod: changing permissions of `/etc/pve/local/openvz/109.mount': Function not implemented".

How can I solve this?

I'm using Proxmox 3.3.
 
Hi,
I'm trying to mount a folder on host in one virtual Container server. I have created the file /etc/vz/conf/109.mount and put this inside:

#!/bin/bash
. /etc/vz/vz.conf
. ${VE_CONFFILE}
SRC=/mnt/disk01
DST=/mnt/disk01
if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi
mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}

the I try to do it executible:
chmod +x /etc/vz/conf/109.mount
but I only get "chmod: changing permissions of `/etc/pve/local/openvz/109.mount': Function not implemented".

How can I solve this?

I'm using Proxmox 3.3.
Hi,
the file don't need the x-flag.

This work for me:
Code:
cat /etc/pve/openvz/300.mount 
#!/bin/bash
source /etc/vz/vz.conf
source ${VE_CONFFILE}
mount -n --bind /export/spool  ${VE_ROOT}/var/bacula/spool
Udo