The "once" parameter does not work with "-boot"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Fix Released
|
Low
|
Serge Hallyn | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: qemu-kvm
Package: qemu-kvm
The "once" parameter does not seem to work with the "-boot" option.
To reproduce:
create an image file to be used as a hard disk:
qemu-img create test-img 1G
Starting a VM guest using "once" + "order" ignores the "once":
/usr/bin/
Starting a VM guest using "once" ignores the "once":
/usr/bin/
Starting a VM guest without "once" works fine:
/usr/bin/
# lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
# apt-cache policy qemu-kvm
qemu-kvm:
Installed: 0.12.3+
Candidate: 0.12.3+
Thanks for the help, Deric
=======
SRU justification:
=======
Impact: users (and management software) cannot use a single qemu command to boot the first time from install media (network or cdrom) and afterward from hard disk.
How addressed: the bug is fixed upstream. The relevant code was patched to match the upstream code.
Patch: see the associated bzr tree
TEST CASE: Install a valid OS, say lucid, on disk.img Download a valid ISO, say natty-server-
kvm -hda disk.img -cdrom natty-server-
It will boot from hard disk
5. Regression potential: The code which was updated affects only the 'once' and 'order' options to the '-boot' flag. Regressions could cause advanced users to boot from the wrong device. For that matter, any users who are mis-using these flags could end up with different (correct) results.
description: | updated |
description: | updated |
tags: | added: verification-done |
tags: | removed: verification-done |
tags: | added: testcase |
Hm,
on a fresh install of 10.04.2 server, I did:
kvm -hda natty.img -cdrom natty-server- amd64.iso -m 1024M -smp 2 -vnc :1 -boot once=d
It proceeded to install, reboot, and then boot from hard disk.
I wonder whether this is particular to net-booting.