Xen on FC5 ---------- 2006-07-03 Prepare your install for Xen: 1. Install minimal FC5 and run "yum update" to bring the system up2date 2. yum -y install kernel-xen0 kernel-xenU xen change SELinux level vi /etc/sysconfig/selinux SELINUX=disabled (or permissive) 3. boot to xen0 kernel (edit /etc/grub.conf to make this default, count starts at 0) 4. run xentop (if that works, you are done prepping) ---------- Prepare a guest OS: 1. At console or ssh into dom0 (dom0 = host OS) 2. mkdir /mnt/temp && mount ip.ad.dr.ess:/FC5 /mnt/temp/ #NFS share location 3. mkdir /mnt/fc5disc1 && mount -t iso9660 -o loop,ro /mnt/temp/FC-5-i386-disc1.iso /mnt/fc5disc1 4. cp /mnt/fc5disc1/images/xen/vmlinuz and initrd.img to /root/ 5. umount both mounts 6. lvcreate -n -L 10G guest1 will work for vgdisplay to get 7. vi /etc/xen/guest1 #give a different MAC address to each guest ---BEGIN--- name = "guest1" memory = "256" disk = ['phy:VolGroup00/guest1,xvda,w'] vif = ['mac=00:11:22:33:44:55'] on_reboot = 'restart' on_crash = 'restart' device_model = '/usr/lib/xen/bin/qemu-dm' ----END---- 8. xm create -c /etc/xen/guest1 ramdisk=/root/initrd.img kernel=/root/vmlinuz name=guest1 extra="vnc askmethod" 9. Start answering the install questions! ctrl + ] then enter to stop a borked install Start VNCviewer on a gui client machine and follow instructions on how to connect Do GUI install xvda is your "disc" so all partitions can be destroyed inside that. when install completes, click Reboot, the guest will shut down. "xm destroy guest1" to stop the guest 10. vi /etc/xen/guest1 add this line: bootloader = '/usr/bin/pygrub' 11. To start guest1 and attach to the console: "xm create -c guest1" start guest1: "xm create guest1" attach to guest1 console: "xm console guest1" 12. To start guest1 automatically at boot, put /etc/xen/guest1 in /etc/xen/auto (either mv it or symlink it from /etc/xen/ 13. To clone the guest1 virtual machine: lvcreate -n guestcopy dd if=/dev/VolGroup00/guest1 of=/dev/VolGroup/guestcopy see also lvcreate with the -s option (snapshot)