startup script for openvz
Hi all,
First, I always look for similar topics, but weirdly enough I didn't find anything; maybe I used the wrong search terms. Anyway here's my question. When a server running OpenVZ (host and 5 containers) is restarted, obviously the containers are restarted too. This causes to erase some important iptables configurations in one of the containers. My solution is to run a script from the host machine every time the server (unintentionally) restarts. the easy script should do something like this. Code:
vzctl start 101 PS: my guess is it is better to run the sript from the host instead of the container. Thanks in advance!! |
How did you install OpenVZ (assuming you installed it with hypervm since you can only have host.) If that is how you insatlled I would recommend you install openVZ then install hypervm with
Code:
sh ./hypervm-install-master.sh --virtualization-type=NONE |
Quote:
So what I need is a location on the host to place this script (above). Thx |
Quote:
|
Quote:
|
Then add the lines to /etc/rc.local
|
Quote:
|
All times are GMT -5. The time now is 04:21 AM. |