slitaz-vz rev 3
!Add some docs
author | erjo@Portable |
---|---|
date | Tue Nov 01 09:56:05 2011 +0100 (2011-11-01) |
parents | 2d20f72ffb19 |
children | 53a1af07cb88 |
files | docs/README.proxmox docs/Slitaz Template HOWTO.txt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docs/README.proxmox Tue Nov 01 09:56:05 2011 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +Slitaz VZ - Configuring Proxmox server for SliTaz templates. 1.5 +============================================================ 1.6 + 1.7 + 1.8 +Advice: All scripts files have been tested only on PROXMOX provided by OVH. 1.9 +Network config may différ from the legacy PROXMOX distro. 1.10 + 1.11 +Any suggestion or bug reports are welcomed : erjo@slitaz.org 1.12 + 1.13 +1) Download the config file slitaz.conf. This file goes in /etc/vz/dists 1.14 + 1.15 + # wget http://hg.slitaz.org/slitaz-vz/file/2d20f72ffb19/vz-scripts/proxmox-ovh/slitaz.conf 1.16 + 1.17 +2) Download and copy slitaz-add_ip.sh, slitaz-del_ip.sh, slitaz-set_hosname.sh to /etc/vz/dists/scripts 1.18 + 1.19 + # cd /etc/vz/dists 1.20 + # wget http://hg.slitaz.org/slitaz-vz/file/2d20f72ffb19/vz-scripts/proxmox-ovh/slitaz-add_ip.sh 1.21 + # wget http://hg.slitaz.org/slitaz-vz/file/2d20f72ffb19/vz-scripts/proxmox-ovh/slitaz-del_ip.sh 1.22 + # wget http://hg.slitaz.org/slitaz-vz/file/2d20f72ffb19/vz-scripts/proxmox-ovh/slitaz-set_dns.sh 1.23 + 1.24 + 1.25 +3) Now you can create your VM with vzctl or proxmox Web GUI.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/docs/Slitaz Template HOWTO.txt Tue Nov 01 09:56:05 2011 +0100 2.3 @@ -0,0 +1,35 @@ 2.4 +Slitaz template for OpenVZ 2.5 +========================== 2.6 + 2.7 + 2.8 +1) Télécharger l'image ISO 2.9 + 2.10 +2) Monter l'ISO sur un répertoire. 2.11 + 2.12 +3) Créez un répertoire temporaire pour y extraire le rootfs et placez dans ce répertoire. 2.13 + 2.14 + # mkdir 777 2.15 + # cd 777 2.16 + 2.17 +4) Extraie le fichier rootfs de l'image dans le répertoire temporaire 2.18 + 2.19 + # lzma -d -c -S gz /mnt/boot/rootfs.gz | cpio -iv 2.20 + 2.21 +5) Installez bash et tous les programmes que vous souhaitez trouver dans votre template. 2.22 + 2.23 + # chroot 777 2.24 + # tazpkg get-install bash 2.25 + 2.26 +Note: Pensez à vider le cache avant de quitter le chroot (tazpkg clean_cache). 2.27 + 2.28 +6) Quittez le répertoire temporaire et lancez la commande make 2.29 + 2.30 + # make -f Makefile.vz template 2.31 + 2.32 +* network.sh, hwconf.sh are moved from $RUN_SCRIPTS 2.33 + hald, dbus, slim form $RUN_DAEMONS 2.34 + 2.35 + 2.36 + 2.37 + 2.38 +