Operating System: | Redhat 7.2 (kickstarted/custom) |
Kernel: | 2.4.17 (custom) |
Boot Manager: | LILO |
CPU(s): | 2 * 1GHZ Pentium 4 |
RAM: | 1GB PC133 |
Storage | 36GB SCSI-LVD drive |
vi /etc/inittab
s1:12345:respawn:/sbin/agetty -L 38400 ttyS0 xterm
vi /etc/securetty
ttyS0
cd /usr/src/linux/ make menuconfig
make bzImage (if it tells you to make deps, do that first) cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.17-serial
vi /etc/lilo.conf
serial = 0,38400n8 append = "console=ttyS0,38400n8"
default=linux-serial
image=/boot/vmlinuz-2.4.17-serial label=linux-serial read-only root=/dev/hda1
/sbin/lilo
linux * linux-serial
(dd if=/dev/sda bs=1M | ssh xenserver.domain.com dd of=/var/lib/xen/images/intranet.img bs=1M)
/sbin/lilo
*linux linux-serial (if you left it in)
import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen/boot/hvmloader" builder='hvm' memory = 1024 name = "intranet" vcpus=2 vif = [ 'type=ioemu, bridge=xenbr0' ] disk = [ 'file:/var/lib/xen/images/intranet.img,ioemu:hda,w' ] device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' sdl=0 vnc=0 vncpasswd='' nographic=1 stdvga=0 serial='pty'
xm create intranet.hvm -c
cd /var/spool/cron mkdir xen-disabled-cron mv * xen-disabled-cron
vi /etc/sysconfig/network vi /etc/sysconfig/network-scripts/ifcfg-eth0
cd /usr/src/linux/ make menuconfig
make modules make modules_install
vi /etc/modules.conf
alias eth0 8139cp