I just installed Centos 5.5 with the xen kernel on an older machine. It has Xeon processors and a 700 Mhz processor speed, so I realize I must use para-virtualized guests. Reading the Centos/RH Virtualization Guide gives examples of the process of installing guest hosts, but it only lists installing Windows as a fully-virtualized host. Is that because they only showed those types of examples or is it that Windows hosts can't be para-virtualized? Secondly, what's the normal what to install a Centos guest when it comes to defining the installation media (it lists HTTP, FTP, or NFS). This machine only has a CD drive, so I'm a little confused about the best way to handle this since the Centos installation now consists of 6 CDs. A brief explanation would be handy. Thanks for any help and time offered. I'm sure there'll be more questions later. Steve Campbell
--- On Wed, 6/16/10, Steve Campbell <campbell at cnpapers.com> wrote:> From: Steve Campbell <campbell at cnpapers.com> > Subject: [CentOS-virt] new to xen - got questions, please > To: centos-virt at centos.org > Date: Wednesday, June 16, 2010, 9:11 AM > I just installed Centos 5.5 with the > xen kernel on an older machine. It > has Xeon processors and a 700 Mhz processor speed, so I > realize I must > use para-virtualized guests. Reading the Centos/RH > Virtualization Guide > gives examples of the process of installing guest hosts, > but it only > lists installing Windows as a fully-virtualized host. > > Is that because they only showed those types of examples or > is it that > Windows hosts can't be para-virtualized? > > Secondly, what's the normal what to install a Centos guest > when it comes > to defining the installation media (it lists HTTP, FTP, or > NFS). This > machine only has a CD drive, so I'm a little confused about > the best way > to handle this since the Centos installation now consists > of 6 CDs. A > brief explanation would be handy. >You want to boot into a PV install. The initrd.img and vmlinuz shown in the filelist below are the tools for this included on the first CD in the set. ------------------ locate netboot boot files ----------- tlviewer at ga-p45:~> sudo mount /data2/kvm/CentOS-5.5-i386-bin-1of7.iso /mnt/iso -o loop tlviewer at ga-p45:~> ls -al /mnt/iso/images/xen/ total 9573 drwxr-xr-x 2 root root 2048 2010-04-29 17:29 . drwxr-xr-x 4 root root 2048 2010-04-29 17:29 .. -rw-r--r-- 2 root root 7552658 2010-04-29 17:23 initrd.img -r--r--r-- 1 root root 441 2010-04-29 17:33 TRANS.TBL -rw-r--r-- 2 root root 2244980 2010-04-29 17:23 vmlinuz ------------------ snip ----------- copy the above 2 to a local dir #cat cent55.py ------------------- cent55.py --------- kernel = 'vmlinuz' ramdisk = 'initrd.img' name = "cent55" uuid = "442db20d-7a82-409b-b8aa-a352c1fe127c" maxmem = 512 memory = 512 vcpus = 2 #bootloader = "/usr/bin/pygrub" #bootargs = "-q" on_poweroff = "destroy" on_reboot = "restart" on_crash = "destroy" vfb = [ "type=vnc,vncunused=1,keymap=en-us" ] disk = [ "phy:/dev/maxvm/cent55,xvda,w" ] vif = [ "bridge=br0" ] extra = " install=http://mirrors.kernel.org/centos/5.5/os/i386/ console=tty0 console=ttyS0,38400n8 console=xvc0" ----------------- unsnip -------------- #xm create -c cent55.py this will start an http PV install. AFAIK the boot files are netboot only and won't allow access to your CD as ISO or otherwise. Before firstboot, comment out the kernel/ramdisk lines and uncomment the 2 pygrub lines. -- Mark
Windows guests can use drivers to work directly with the virtual-hardware devices that are presented to the guest. And since windows is acpi, etc. aware, with the right settings it works almost as if its paravirtualized. When installing, for me its easiest to d/l and store the .iso file for whatever OS I have running, and boot directly from the iso to install. There's no need to mount the iso separately - xen and kvm can work with the file. And guests should be able to use your CD drive directly as well. As for centos, I always use the network install iso, (which is tiny) and use that to install from the closest http mirror.
On Wed, 2010-06-16 at 12:11 -0400, Steve Campbell wrote:> I just installed Centos 5.5 with the xen kernel on an older machine. It > has Xeon processors and a 700 Mhz processor speed, so I realize I must > use para-virtualized guests. Reading the Centos/RH Virtualization Guide > gives examples of the process of installing guest hosts, but it only > lists installing Windows as a fully-virtualized host. > > Is that because they only showed those types of examples or is it that > Windows hosts can't be para-virtualized?I'm not sure how far the para-virtualized drivers for MS Windows (XP?) have gotten. I would only install a MS Windows XP virtual machine as a fully virtualized guest, at this time. I haven't begun to work with Vista or 7. If I were restricted to the older machine, I'd explore using VMWare. The bare metal version should be comparable to XEN performance, but the free version is restricted as far as the number (3?) of virtual machines that can be run. It'll virtualize MS Windows guests on older hardware. Evaluate why you are using virtual machines... If this is an evaluation period, the older equipment is OK; Explore the alternatives. If this is a production machine, you'll be happier with a newer computer.> Secondly, what's the normal what to install a Centos guest when it comes > to defining the installation media (it lists HTTP, FTP, or NFS). This > machine only has a CD drive, so I'm a little confused about the best way > to handle this since the Centos installation now consists of 6 CDs. A > brief explanation would be handy.Download the DVD and put it in /var/lib/xen/images/, set it as a virtual optical drive. The process is slightly different depending on whether you are creating the virtual machine using a xen config file, virt-install (command line) or virt-manager (gui).