OpenVZ Forum


Home » General » Support » Parameters could not be applied to a running container (Some of the parameters could not be applied to a running container. Please consider using --setmode option)
Parameters could not be applied to a running container [message #50738] Tue, 22 October 2013 21:45
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Hello, i tried to install Tuntap and assign it to a VM using this OpenVZ manual: http://openvz.org/VPN_via_the_TUN/TAP_device

My commands history:
[root@ns308105 ~]# lsmod | grep tun
[root@ns308105 ~]# modprobe tun
[root@ns308105 ~]# lsmod | grep tun
tun                    83840  0
[root@ns308105 ~]# cd /etc/sysconfig/modules/
[root@ns308105 modules]# ls
udev-stw.modules
[root@ns308105 modules]# vi /etc/modules.conf
[root@ns308105 modules]# vzctl set 480 --devnodes net/tun:rw --save
Setting devices
CT configuration saved to /etc/vz/conf/480.conf
[root@ns308105 modules]# vzctl set 480 --devices c:10:200:rw --save
Setting devices
CT configuration saved to /etc/vz/conf/480.conf
[root@ns308105 modules]# vzctl set 480 --capability net_admin:on --save
Unable to set capability on a running container
WARNING: Some of the parameters could not be applied to a running container.
        Please consider using --setmode option
CT configuration saved to /etc/vz/conf/480.conf
[root@ns308105 modules]# vzctl set 480 --capability net_admin:on --save
[root@ns308105 modules]# vzctl set 480 --capability net_admin:on --save --setmode restart --save
CT configuration saved to /etc/vz/conf/480.conf
[root@ns308105 modules]# vzctl exec 480 mkdir -p /dev/net
[root@ns308105 modules]# vzctl exec 480 mknod /dev/net/tun c 10 200
[root@ns308105 modules]# vzctl exec 480 chmod 600 /dev/net/tun


So currently im unsure if it went properly, and mainly regarding that warning: "Some of the parameters could not be applied to a running container.
Please consider using --setmode option"

i executed "vzctl set 480 --capability net_admin:on --save --setmode restart --save" as seen above, but im unsure if it was proper command?

Also how to make that Tun service run at startup at Centos host server?
Previous Topic: Debian 7 (wheezy) in a 32-bit hardware node
Next Topic: OpenVZ troubles
Goto Forum:
  


Current Time: Fri Dec 08 09:16:10 GMT 2023

Total time taken to generate the page: 0.02005 seconds