Bugzilla – Bug 155924
Booting a domU with a kernel / initrd from domU image file doesn't work
Last modified: 2006-03-08 19:14:00 UTC
Hi, I'm not sure, if this is a common feature lack of xen 3.0, but I'm not able to start a domU domain by booting a kernel / initrd from a path within the domU image file (disk = [ 'file:... ]). It's only possible to start domU domains from a path within the dom0 directory tree. This is long winded, because when I do a kernel upgrade or kernel changes (e.g. mkinitrd after modifying the parameter INITRD_MODULES in the file /etc/sysconfig/kernel) within a domU domain, I must not forget to mount the domU image file within domain dom0 and copy the new kernel / initrd files to the dom0 path configured in the xen dumU configuration file for the parameters "kernel" and "ramdisk". I think, that there is a need for separate kernel / initd files for each domU domain (e.g. because dom1 could have got a xfs image file for root, dom2 could have got reiserfs image file for root, ...), which is automatically updated when the kernel is changed within a domU. Thanks in advance.
Indeed. This is done by using domUloader (or some people prefer pygrub, but that doesn't support reiserfs last time I checked, so we're using domUloader.) Look in /etc/xen/xmexample.domUloader for a sample setup (or in older builds, that file was called /etc/xen/xen-domUloader, I think.)