If you do a straight install of CentOS to an image with virt-manager, you'll get partitions in there. To mount the first partition:
# lomount -t ext3 -partition 1 -diskimage /var/lib/xen/images/testimage /mnt/image
This won't work well for logical volumes (LVM), use kpartx for that:
# kpartx -a /dev/vg0/lv0 # ls -l /dev/mapper
You'll have a new device called /dev/mapper/lv0p1 or something like that.
See also Fedora Wiki
Optimizing CentOS as a virtual machine
Xen on Debian installation notes
http://www.debian-administration.org/articles/304
http://www.debian-administration.org/articles/360 Xen Networking
http://mark.foster.cc/wiki/index.php/Debian_Sarge_on_Xen (Debian Sarge on Xen backup copy)
http://wiki.xensource.com/xenwiki/DebianSarge
Notes:
There is a guide available for installing Xen on Fedora Core 4, however I didn't get this working: I bumped into a kernel error message concerning the APIC when booting the new kernel.
The XenSource website does however have its own RPMs which work flawlessly. Just add the following lines in your /etc/grub.conf:
title Xen
root (hd0,2)
kernel /xen-3.0.gz noapic
module /vmlinuz-2.6-xen root=LABEL=/
module /initrd-2.6.16-xen3_86.1_fc4.imgI assume here that you have a separate partition for /boot, and root / which is pointed to by the first line, root (hd0,2). After adding this bit, save the output of a free -m. Then reboot using the new Xen entry in the Grub boot menu.
http://www.howtoforge.com/perfect_xen_setup_debian_ubuntu_p4
32 bit SMP:
http://bits.xensource.com/Xen/latest/xen-3.0.2-install-x86_32.tgz
32 bit SMP PAE:
http://bits.xensource.com/Xen/latest/xen-3.0.2-install-x86_32p.tgz
64 bit SMP:
http://bits.xensource.com/Xen/latest/xen-3.0.2-install-x86_64.tgz
The source is here:
http://bits.xensource.com/Xen/latest/xen-3.0.2-src.tgz
Live Demo CD (no installation required, boot from CD):
http://bits.xensource.com/ISO/latest/xen-3.0-demo-livecd-3.0.iso
Useful: this CD contains a CentOS and a Debian image.