« Proxmox et OpenVZ » : différence entre les versions

Aller à la navigation Aller à la recherche
Ligne 644 : Ligne 644 :
./arch-bootstrap.sh /vz/private/777 x86_64
./arch-bootstrap.sh /vz/private/777 x86_64
chroot /vz/private/777
chroot /vz/private/777
pacman -S sed initscripts net-tools iputils nano
pacman -S sed initscripts net-tools iputils nano iproute
</pre>
</pre>


Ligne 668 : Ligne 668 :
ln -s /proc/mounts /etc/mtab
ln -s /proc/mounts /etc/mtab
sed -i -e '/getty/d' /etc/inittab
sed -i -e '/getty/d' /etc/inittab
pacman -S openssh
echo "ssh: ALL : ALLOW" >> /etc/hosts.allow
</pre>
</pre>


Ligne 682 : Ligne 684 :
<pre>
<pre>
DAEMONS=(hwclock syslog-ng network netfs crond ssh)
DAEMONS=(hwclock syslog-ng network netfs crond ssh)
</pre>
==postinstallation==
<pre>
exit
</pre>
<pre>
cd /vz/private/777/
echo "etc/resolv.conf" >> ../exclude.list
find ./var/cache/ -name '*.tar.gz' >> ../exclude.list
find ./var/cache/ -name '*.tar.gz' >> ../exclude.list
find ./root/.bash_history >> ../exclude.list
tar --numeric-owner -X ../exclude.list -czf /vz/template/cache/arch-2010.05-amd64-minimal.tar.gz ./
</pre>
</pre>


4 231

modifications

Menu de navigation