[xen-tools-discuss] Re: Updating kernel image on DomU

Steve Kemp steve at steve.org.uk
Fri Jan 23 16:20:52 CET 2009


On Fri Jan 23, 2009 at 10:18:18 -0500, Girish Venkatasubramanian wrote:

> 1) Updating kernel images
> To understand Xen better, I would like to add printk's in the Xen code
> and recompile the unified kernel. To carry out these changes in the
> domU image, is there anything I need to do, apart from copying the new
> lib/modules/2.6.18.8-xen from the dom0 to the domU?

  Thats all you need to do - and rebuild the initrd located in /boot
 on the host (assuming you use one.)

> /usr/share/doc/xen-tools/examples/ - but I don't seem to have the
> examples directory at all. Is this something which was added in
> xen-tools releases later than 2.8?

  Yes.

> 2) Compiling new programs:
> Can I loopback mount the domU disk image on some mount point in dom0,
> chroot to it and compile new programs on the guest - instead of
> booting up the domain and then compiling the programs?

  Yes, but you'll be on the host and not in a virtual environment.
 (Probably no real difference, but you might have a 64-bit dom0 and
 32-bit domU so that could cause issues.)

Steve
-- 
Debian GNU/Linux System Administration
http://www.debian-administration.org/






More information about the xen-tools-discuss mailing list