Monday, May 25, 2009

RedHat Virtualization Guide

I've read the RedHat Virtualization Guide. Get's you going but contains lots or redundant sections: point 1.x will be exactly the same as point 1.x+y (it's as if it was moved via a copy/paste not a cut/paste). I found the following useful so this post will contain my bookmarks:
  • yum install xen kernel-xen libvirt libvirt-python libvirt-python python-virtinst
  • CLI virt-install of guest (can accept kickstart URL)
  • Paravirtualized guests need a xen kernel too so during installation of a guest, select Customize Now and install the kernel-xen package in the System directory (I don't see this option on a new install on metal). If possible, kickstart files for guests should specify this kernel. If you try to boot from a non-xen kernel try this. Update: the menus during the text install did not offer this option. Fortunately the following CLI install method worked well for me and I got a xen kernel without having to select anything related to a Xen Kernel during the install:
    virt-install \
    --paravirt \
    --file=/var/lib/xen/images/webhost0.img  \
    --name webhost0 \
    --vcpus=2 \
    --ram 512 \
    --file-size=4 \
    --check-cpu \
    --nographics \
    --location=http://astromirror.uchicago.edu/fedora/linux/releases/10/Fedora/x86_64/os/
    
    A local http mirror containing a RHEL DVD mounted in /var/www/html worked well for the --location option for RedHat. Otherwise the Fedora example above should work too.
  • Adding Storage
  • Xen bridging (bridging overview)
  • Live migration
  • Remote management with Virtual Machine Manager: I wouldn't install GTK on a VM server but I might on a workstation for remote control.
  • Tips and Tricks
  • Troubleshooting
  • Commands to know:

No comments: