On Sun, Jun 20, 2010 at 02:48:39PM +0200, Olivier Berger wrote: > > I replaced "-drive > file=/mnt/xptests/xp.img,if=none,id=drive-ide0-0-0,format=raw -device > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0" by "-hda > /mnt/xptests/xp.img", and then it works. > > That's coherent with respect to > http://lists.nongnu.org/archive/html/qemu-devel/2010-03/msg01725.html. > > Hope this workaround helps. >
Actually, that solved the problem of booting off the partition, but afterwards, I loose some of the settings that worked when invoked inside virt-manager/libvirt. So I've tricked libvirt config file in order to start with this -hda option. Here's what I've done : 1. change the /etc/libvirt/qemu/myguest.xml to remove the <disk> block for the problematic drive 2. change the emulator to <emulator>/usr/local/sbin/qemu</emulator> 3. add a /usr/local/sbin/qemu script that contains : #!/bin/sh echo "$@" | grep -q uuid if [ $? -eq 0 ]; then exec /usr/bin/qemu -hda /mnt/xptests/xp.img $@ else exec /usr/bin/qemu $@ fi 4. render the script executable Now, I can start the VM with virt-manager and it executes with the -hda option, and the rest of the settings unchanged (network over tap, etc.) Hope this helps. Best regards, -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

