summaryrefslogtreecommitdiff
path: root/README
blob: bd069d73937ff27d1c5b81e02ef596028b11d1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cp /usr/lib/syslinux/pxelinux.0 $PWD/tftproot
cp /usr/lib/syslinux/menu.c32 $PWD/tftproot
cp /usr/lib/syslinux/memdisk $PWD/tftproot
cp /usr/lib/syslinux/mboot.c32 $PWD/tftproot
cp /usr/lib/syslinux/chain.c32 $PWD/tftproot
mkdir $PWD/tftproot/pxelinux.cfg

cp -av var/www/html/* /var/www/html/.

mkdir -p /var/www/html/Centos/6.4/

wget -O tftproot/images/centos/6.4/x86_64/vmlinuz \
	http://mirror.switch.ch/ftp/mirror/centos/6.4/os/x86_64/images/pxeboot/vmlinuz
wget -O tftproot/images/centos/6.4/x86_64/initrd.img \
	http://mirror.switch.ch/ftp/mirror/centos/6.4/os/x86_64/images/pxeboot/initrd.img

qemu-img create centos6.img 1G

/usr/local/qemu-1.0.1/bin/qemu-system-x86_64 -hda centos6.img -net nic \
	-net user,tftp=$PWD/tftproot,bootfile=pxelinux.0 -m 1024 -nographic \
	-machine accel=kvm -redir tcp:2222::22

#local mirror of Centos files (HTTP):
wget 'http://mirror.switch.ch/ftp/mirror/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-bin-DVD1.iso'
wget 'http://mirror.switch.ch/ftp/mirror/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-bin-DVD2.iso'
mount -ro loop CentOS-6.4-x86_64-bin-DVD1.iso /mnt  
mkdir -p var/www/html/Centos/6.4/{os,updates,extras,centosplus,contrib}/x86_64
rsync -avHPS /mnt/* var/www/html/Centos/6.4/os/x86_64/
umount /mnt
mount -ro loop CentOS-6.4-x86_64-bin-DVD2.iso /mnt  
rsync -avHPS /mnt/* var/www/html/Centos/6.4/os/x86_64/ 
umount /mnt
ln -s 6.4 var/www/html/Centos/6
./sync_centos.sh

copy cfengine rpms to /var/www/html/cfengine