4 231
modifications
Ligne 613 : | Ligne 613 : | ||
</pre> | </pre> | ||
créez /vz/private/777/etc/init/openvz.conf : | |||
<pre> | <pre> | ||
# OpenVZ - Fix init sequence to have OpenVZ working with upstart | # OpenVZ - Fix init sequence to have OpenVZ working with upstart | ||
Ligne 670 : | Ligne 645 : | ||
init 2 | init 2 | ||
end script | end script | ||
</pre> | |||
Configuration de base du VE : | |||
<pre> | |||
vzctl set 777 --applyconfig basic --save | |||
echo OSTEMPLATE=\"ubuntu-11.04\" >> /etc/vz/conf/777.conf | |||
vzctl set 777 --ipadd 192.168.0.2 --save | |||
iptables -t nat -A POSTROUTING -s 192.168.0.2 -o vmbr0 -j SNAT --to 91.121.141.220 | |||
vzctl set 777 --nameserver 192.168.0.1 --save | |||
lancement | |||
vzctl start 777 | |||
vzctl exec 777 mount -t devpts devpts /dev/pts | |||
entrez dans le VE : | |||
vzctl enter 777 | |||
</pre> | |||
<pre> | |||
apt-get update | |||
apt-get install aptitude nano | |||
</pre> | </pre> | ||