Author: gnichols
Date: 2012-04-24 20:49:09 +0000 (Tue, 24 Apr 2012)
New Revision: 1293
Modified:
trunk/tools/fv-guest/fv-domU-ks-x86_64.cfg
trunk/tools/fv-guest/fv-domU-readme.txt
Log:
updates
Modified: trunk/tools/fv-guest/fv-domU-ks-x86_64.cfg
===================================================================
--- trunk/tools/fv-guest/fv-domU-ks-x86_64.cfg 2012-04-20 14:12:57 UTC (rev 1292)
+++ trunk/tools/fv-guest/fv-domU-ks-x86_64.cfg 2012-04-24 20:49:09 UTC (rev 1293)
@@ -13,8 +13,14 @@
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr
-clearpart --initlabel --drives=hda
-autopart
+
+# Blank all disks and write disk labels, then install to disk /dev/sda ONLY.
+# NOTE: this may need to be set to sda rather than hda
+clearpart --all --initlabel
+part /boot --fstype ext3 --size=100 --ondisk=hda
+part swap --size=2000 --ondisk=hda
+part / --fstype ext3 --size=100 --grow --ondisk=hda
+
firstboot --disable
halt
Modified: trunk/tools/fv-guest/fv-domU-readme.txt
===================================================================
--- trunk/tools/fv-guest/fv-domU-readme.txt 2012-04-20 14:12:57 UTC (rev 1292)
+++ trunk/tools/fv-guest/fv-domU-readme.txt 2012-04-24 20:49:09 UTC (rev 1293)
@@ -2,6 +2,7 @@
Revised 2-10-12 for v7 1.5 to move images to RHEL 5.7
----------------------------------------------------------------------------
+0) rpms needed: mkisofs virt-install xen
1) get RHEL DVD iso from
download.devel.redhat.com:
@@ -15,12 +16,15 @@
3) mount the boot iso, copy it
- > mount -0 loop -t iso9660 boot.iso boot
+ > mkdir boot
+ > mount -o 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
+ NOTE: the install disk may be either sda or hda
+
5) set isolinux.cfg to automatically install:
vi boot-copy/isolinux/isolinux.cfg
@@ -40,10 +44,13 @@
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 .
+ > mkisofs -r -T -J -V "RedHatKSBoot" -b isolinux.bin -c boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table -v -o ~/new-boot.iso .
+ > mv ~/new-boot.iso /var/lib/xen/images/boot.iso
7) On a xen system, use virt-install to create the image:
+ service start xend
+ service start libvirtd
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