|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Converting full virtualized Linux domUs to use paravirtu
>> I am mainly wanting to convert HVM as para domU, is there any docs about
>> that?
>>
>
> Hmm.. basicly it should be something like:
>
> - in HVM guest: yum install kernel-xen
> - in HVM guest: make sure /boot/grub/menu.lst contains kernel-xen as a kernel
> to boot
> - in dom0: update your guest/domU cfgfile, make sure you use pygrub to load
> the kernel+initrd from domU.
>
> That should be it..
>
> -- Pasi
>
I have converted a HVM installation of Trixbox(based on CentOS) to a
PVM running on Ubuntu 8.04 Dom0.
I didn't use pygrub as that doesn't play with DRBD. So below is
another method. After doing the first two steps above you can follow
my installation notes below. Sorry if it is a bit messy, am about to
put it into a howto but haven't found the time yet...
CONVERT TRIXBOX HVM to PVM
apt-get install kpartx
losetup /dev/loop0 /dev/drbd6
kpartx -av /dev/loop0
mount /dev/mapper/loop0p2 /mnt/
Create an LVM for root and swap.
mkfs.ext3 and
rsync -a /dev/mapper/loop0p2 to new LVM
Edit /etc/fstab on the DomU disk to map /dev/xvda to root and /dev/xvdb to swap
Ran the following within the HVM to create new initrd which loads xen
drivers. otherwise kernel panic.:
mkinitrd /boot/initrd-2.6.18-92.1.6.el5xenU2.img 2.6.18-92.1.6.el5xen
--with=xenblk --with=xennet --preload=xenblk --preload=xennet
Copy kernel and initrd from HVM to Dom0.
Modified the xen config file with the kernel and initrd above.
Removed: xencons=tty1 from the "extra=" line. like this:
extra="clock=jiffies"
as needed in other configs.
Problem with network, DomU tried to start eth1 only.
Modified: /etc/sysconfig/network-scripts like this:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
NETWORK=10.111.1.0
NETMASK=255.255.255.0
IPADDR=10.111.1.160
GATEWAY=10.111.1.254
MACADDR=00:16:3E:AA:35:32
/etc/init.d/network restart
---------
I actually had a problem using the original kernel. Performing a live
migration or even shutting down the DomU made it hang. It couldn't not
unload one or two block devices.
So I ended up using the Dom0 kernel instead. I copied the modules from
Dom0 to the DomU as usual.
To early to say if this is really stable, but at least it works. ;)
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|