qemu -drive boot=on flag causes boot to hang.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt |
Invalid
|
Undecided
|
Unassigned | ||
qemu-kvm |
Fix Released
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: qemu-kvm
I'm working on getting a UI to start qemu. In debugging I am working exclusively on the command line. I'm able to reproduce and correct this bug from the command line. The UI is libvirt.
The testing I did was to remove part of the command each part at a time and add it back in until I discovered the one option that caused the problem.
This command boot's just fine.
/usr/bin/qemu -snapshot -M pc-0.12 -no-kvm -m 1024 -smp 1 -localtime -boot c -drive file=/dev/
These commands do not:
/usr/bin/qemu -snapshot -M pc-0.12 -no-kvm -m 1024 -smp 1 -localtime -boot c -drive file=/dev/
/usr/bin/qemu -snapshot -M pc-0.12 -no-kvm -m 1024 -smp 1 -localtime -drive file=/dev/
/usr/bin/qemu -snapshot -boot c -drive file=/dev/
/usr/bin/qemu -snapshot -drive file=/dev/
/usr/bin/qemu -boot c -drive file=/dev/
/usr/bin/qemu -drive file=/dev/
The boot hangs presumably when the BIOS passes control to the MBR or during the MBR load, ect, ect, ect. In other words the BIOS parts seam to work, except it never boots anything.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: qemu 0.12.3+
ProcVersionSign
Uname: Linux 2.6.32-
Architecture: i386
Date: Tue Jun 8 14:17:31 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
MachineType: Dell Inc. OptiPlex GX620
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: qemu-kvm
dmi.bios.date: 11/30/2006
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A11
dmi.board.name: 0HH807
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: OptiPlex GX620
dmi.sys.vendor: Dell Inc.
tags: | added: apparmor |
tags: | removed: apparmor |
Changed in qemu-kvm: | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
Changed in qemu-kvm: | |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
Changed in libvirt (Ubuntu): | |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
Changed in qemu-kvm: | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
status: | Fix Committed → Fix Released |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
I wrote a little script that should have solved my problems, however libvirt has other ideas.
http:// pastebin. com/HgwtQ3iL
#!/bin/bash
out_args=( )
while (( $# ))
do if [[ "$1" = "-drive" ]]
then out_args+=( "$1" "$(<<<"$2" sed \
-e s/,boot=on//g \
-e s/boot=on,//g \
-e s/boot=on//g \
)" )
shift 2
else out_args+=( "$1" )
shift
fi
done
exec "${0}-original" "${out_args[@]}"
http:// pastebin. com/7SKxnJGV
Some strace output, the exec on line 15 fails with a permission problem.