Weblog entry #2 for mnaumann

Xen DomU: command failed: Not a block device
Posted by mnaumann on Thu 30 Apr 2009 at 23:10
If you run into this error message while booting a Xen DomU which does not have encrypted devices and your Dom0 is on an encrypted partition, then you'll be as puzzled as I am and these people. So far, the only workaround I know is to start the DomU with serial console attached (xm create -c domuname.cfg) and hit return a couple times until it gives up to mount the seemingly encrypted root device and continues to boot the DomU.

This issue is, however, very annoying and breaks any attempts of automation of DomU startups. The problem seems to be a combination of two facts:

* the DomU uses the same initrd image as the DomO

* cryptsetup-root (as contained in the initrd) does not actually test whether the target device it is to mount is actually a compatible device but dumbly expects that it must be one if it is configured as such and thus keeps trying to mount it.

A better workaround or even a fix would be greatly appreciated. I know of at least three other parties who are running into the same issue but have not yet found a better solution. I guess I should file a bug but I'm not sure which package to file it against.

 

Comments on this Entry

Posted by mnaumann (91.64.xx.xx) on Fri 1 May 2009 at 00:49
[ Send Message | View Weblogs ]
IRC rocks (actually it's the people who rock, or some of them). Someone who I'm not sure wants to be credited told a friend of mine this:

Here is a recipe for fixing the Xen initrd problem.
* bootstrap the domU...
* mount the domU...
* chroot to the domU's root...
* apt-get install initramfs-tools
* cd
* mkinitramfs -v -o initrd.img-`uname -r`-domU
* get out of chroot...
* cp /mnt/root/initrd.img-blahblabhah /where/you/want/it
* reference the initrd in your domU's conf file

Of course, because the DomU has just been freshly bootstrapped, that file will work for any DomU created in the same way.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search