Author: gnichols
Date: 2012-02-15 19:15:29 +0000 (Wed, 15 Feb 2012)
New Revision: 1178
Modified:
trunk/tools/fv-guest/fv-domU-ks-i386.cfg
trunk/tools/fv-guest/fv-domU-readme.txt
Log:
update for RHEL5.7 image
Modified: trunk/tools/fv-guest/fv-domU-ks-i386.cfg
===================================================================
--- trunk/tools/fv-guest/fv-domU-ks-i386.cfg 2012-02-14 15:58:50 UTC (rev 1177)
+++ trunk/tools/fv-guest/fv-domU-ks-i386.cfg 2012-02-15 19:15:29 UTC (rev 1178)
@@ -3,9 +3,9 @@
keyboard us
lang en_US
langsupport --default en_US en_US
-network --device eth0 --bootproto dhcp
+network --device eth0 --noipv6 --bootproto dhcp
# please change the nfs to the correct value
-nfs --server=mohe.nay.redhat.com --dir=/share/iso/rhel5.3/i386
+url --url
http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/i386/os
rootpw redhat
skipx
firewall --disabled
Modified: trunk/tools/fv-guest/fv-domU-readme.txt
===================================================================
--- trunk/tools/fv-guest/fv-domU-readme.txt 2012-02-14 15:58:50 UTC (rev 1177)
+++ trunk/tools/fv-guest/fv-domU-readme.txt 2012-02-15 19:15:29 UTC (rev 1178)
@@ -1,8 +1,67 @@
-following are the steps to create a FV image for i386 and x86_64:
-1) config the yum repos and prepare the ks file
-2) run a "virt-install" command to install the FV, e.g.:
- # virt-install --hvm --name=v7i386 --ram=512 --vcpus=1 --network=bridge:xenbr0 --vnc
--file=/var/lib/xen/images/v7i386.img --file-size=6 --cdrom
/var/lib/xen/images/rhel-server-5.3-i386-dvd.iso
+Revised 2-10-12 for v7 1.5 to move images to RHEL 5.7
+----------------------------------------------------------------------------
-3) after the install, install dt/lmbench/stress in the FV and then replace the FV's
/etc/rc.d/rc.local
+1) get RHEL DVD iso from
download.devel.redhat.com:
+
+ > wget
http://download.devel.redhat.com/released/RHEL-5-Server/U7/x86_64/iso/RHE...
+
+2) mount it and pull out the boot.iso
+
+ > mkdir /mnt/RHEL5.7.iso
+ > mount -o loop -t iso9660 RHEL5.7-Server-20110711.5-x86_64-DVD.iso
/mnt/RHEL5.7.iso
+ > cp /mnt/RHEL5.7.iso/images/boot.iso .
+
+3) mount the boot iso, copy it
+
+ > mount -0 loop -t iso9660 boot.iso boot
+ > cp -r boot boot-copy
+
+4) add the kickstart file to the boot image
+ > cp v7/tools/fv-guest/fv-domU-ks-<arch>.cfg boot-copy/isolinux/ks.cfg
+
+5) set isolinux.cfg to automatically install:
+
+ > vi boot-copy/isolinux/isolinux.cfg
+
+
+default linux
+prompt 0
+timeout 60
+[...]
+label linux
+ kernel vmlinuz
+ append initrd=initrd.img ks=cdrom:/ks.cfg console=ttyS0,115200
+
+
+ - note the console=ttyS0,114500 - needed for text console!
+
+6) build the revised boot.iso:
+
+ > cd boot-copy/isolinux
+ > mkisofs -r -T -J -V "RedHatKSBoot" -b isolinux.bin -c boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table -v -o /home/gnichols/fv-guest/boot.iso .
+
+7) On a xen system, use virt-install to create the image:
+
+ virt-install --hvm --name=v7i386 --ram=512 --vcpus=1 --network=bridge:xenbr0 --vnc
--file=/var/lib/xen/images/v7i386.img --file-size=6 --cdrom /var/lib/xen/images/boot.iso
+
+8) add the v7-dependant packages: dt/lmbench/stress
+
+ > virsh start v7i386
+ > virsh console v7i386
+
+ On the guest console, use rpm or yum to install dt, lmbench, and stress packages.
+
+9) edit rc.local
+
+ copy the rc.local from v7 source tree: v7/tools/fv-guest/fv-domU-rc.local to
/etc/rc.local on the guest
+
+ shutdown the guest (poweroff)
+
+10) tar and stamp the image:
+
+ > cd /var/lib/xen/images
+ > tar jcvf v7i386-20120215.tar.bz2 v7i386.img
+
+