[Fedora-xen] Xen status for FC7

Dale Bewley dlbewley at lib.ucdavis.edu
Tue Jul 3 19:46:33 UTC 2007


> And kudos to those running everything under the sun on an F7 dom0, but
> can 
> someone give those of us who aren't in the secret club a break and
> publish a 
> full step-by-step of how you did it and some config files/settings.

Wrapper for virt-install worked on F7 dom0 for FC6 and F7 domU
http://bewley.net/linux/fedora/xen/mkxen.sh


> Did you 
> use a copy of the DVD** exactly as it was or change some magical files
> after 

I created a mirror by rsyncing another site. DVD copy should work fine.

> copying to disk? Has GUI-less domU installs or installs using a
> manually 
> assigned IPv4 address ever worked for anyone using an F7 dom0, if so
> how?

I used DHCP.
 
> ** I also didn't know that a remote repo would fail during domU
> installs until 
> someone mentioned it among some other attempts at troubleshooting my
> install 
> failures.

My FC6 install was fine against my personal repo over HTTP. My F7 was fine, but quite quite slow. I could watch the http access log and tell it was still working though.

My F7 kickstart file which hasn't been optimized but basically it looks like this:

## upgrade or install?
install
# upgrade
## comment out if you want the machine to wait for you to reboot manually
reboot
## install source on URL or CDROM?
url --url http://ks/fedora/linux/releases/7/Fedora/x86_64/os
#cdrom
## use text mode install since i'll be spying on the serial console
text
skipx
lang en_US.UTF-8
keyboard us
timezone America/Los_Angeles
## network setup
network --device eth0 --bootproto dhcp
#network --device eth1 --onboot no --bootproto dhcp
## we'll redo firewalling by hand later
firewall --enabled --port=22:tcp
## this could be annoying for now so leave it off
selinux --disabled
authconfig --enableshadow --enablemd5
## change this after install
rootpw something
################################################################################
# Setup the disk drives.
# Clear the Master Boot Record
zerombr
# nuke all existing partitions
clearpart --all --initlabel
# raw partition for boot and a LVM physical volume on remainder
part /boot --fstype ext3 --size=100
part pv.01 --size=1 --grow
# LVM setup on physical volume
volgroup VG0 pv.01
logvol /     --fstype=ext3 --name=LVRoot --vgname=VG0 --size=512
logvol /var  --fstype=ext3 --name=LVVar  --vgname=VG0 --size=1024
logvol /var/www  --fstype=ext3 --name=LVVarWww  --vgname=VG0 --size=2048
logvol /usr  --fstype=ext3 --name=LVUsr  --vgname=VG0 --size=2048
logvol /home --fstype=ext3 --name=LVHome --vgname=VG0 --size=100
logvol swap  --fstype swap --name=LVSwap --vgname=VG0 --size=512
# install grub
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
%packages
vim-enhanced
################################################################################
# Final Configuration
%post --nochroot
cp /tmp/ks.cfg /mnt/sysimage/root/install-ks.cfg
cp /proc/cmdline /mnt/sysimage/root/install-cmdline

%post
echo xvc0 >> /etc/securetty
# this was done auto on FC6 domU
echo "co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav" >> /etc/inittab
# we'll use these values in the extended final config
EMAIL=root at mail
DIST=f7
MAC_ADDR=`ifconfig eth0 | grep HWaddr | \
    sed -e 's/^.*HWaddr \([A-Fa-f0-9:]*\).*$/\1/; s/:/-/g;'`
# put /tmp on swap cuz it's fast and junk goes away on reboot
echo -e "none\t\t\t/tmp\t\t\ttmpfs\tdefaults\t0 0" >> /etc/fstab
# setup root's profile
echo 'alias vi=vim' >> /root/.bash_profile
# I want to know about things...
echo -e "root:\t\t$EMAIL" >> /etc/aliases
newaliases
# tell daddy we are all done
cat /root/install.log /root/install-ks.cfg \
    | mail -s "${DIST} ks install ${MAC_ADDR}" $EMAIL


--
Dale Bewley - Unix Administrator - Shields Library - UC Davis
GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD  1753 064D 2583 B098 A0F3




More information about the Fedora-xen mailing list