PXE netboot not booting localboot from virtio-disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
qemu-kvm (Fedora) |
Invalid
|
Medium
|
|||
qemu-kvm (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: qemu-kvm
lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04
apt-cache policy qemu-kvm
qemu-kvm:
Installiert: 0.12.3+
Kandidat: 0.12.3+
Versions-Tabelle:
*** 0.12.3+
500 http://
100 /var/lib/
Description of the problem:
Starting a guest like this:
vdekvm \
-m 256M \
-cpu host \
-smp 1 \
-name karmic \
-boot order=nc \
-drive file=/dev/
-net nic,vlan=
-net vde,vlan=
-watchdog i6300esb \
-vnc :0 \
-serial telnet:
-monitor tcp:127.
-runas kvmguest
On "telnet localhost" you can see that the following boot-menu appears:
- Boot Menu -
=============
local
rescue
It is loaded from this pxelinux.
SERIAL 0 9600n8
DISPLAY boot.txt
TIMEOUT 120
DEFAULT local
PROMPT 1
LABEL local
localboot 0
LABEL rescue
kernel lucid
append initrd=
After the timeout, the guest tries to boot, but fails and reloads the boot menu. This is an endless loop, until I break it or choose the rescue menu entry.
I would expect that it boots from first virtio-disk
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: qemu-kvm 0.12.3+
ProcVersionSign
Uname: Linux 2.6.32-18-generic x86_64
Architecture: amd64
Date: Tue Mar 30 11:40:59 2010
ExecutablePath: /usr/bin/
MachineType: MICRO-STAR INTERANTIONAL CO.,LTD MS-7368
ProcCmdLine: root=UUID=
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: qemu-kvm
dmi.bios.date: 10/31/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V1.5B2
dmi.board.
dmi.board.name: MS-7368
dmi.board.vendor: MICRO-STAR INTERANTIONAL CO.,LTD
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: MS-7368
dmi.product.
dmi.sys.vendor: MICRO-STAR INTERANTIONAL CO.,LTD
Changed in qemu-kvm (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Invalid |
Description of problem:
All QA automated systems rely on PXE local booting for proper provisioning and testing. All systems are configured in the BIOS to boot PXE first.
When we want to provision the systems, we modify the PXE target (using RHTS or now cobbler).
When we want to boot locally to run tests, we set the default PXE target to "local".
KVM guests do no honor the PXE "local" target. It seems that once you boot PXE, KVM doesn't attach the already installed disks.
Version-Release number of selected component (if applicable):
kernel- 2.6.27. 5-113.fc10. x86_64 0.4.6-3. fc10.x86_ 64 5.fc10. x86_64
libvirt-
kvm-74-
How reproducible:
Every time.
Steps to Reproduce:
1. Set KVM guest PXE target to "Network Boot" using virt-manager
2. Boot the KVM guest.
3. In the PXE menu, type "local"
Actual results:
* See attached screenshot, xml, and libvirt logfile.
Expected results:
The system should behave as a "real" system behaves and boot the local disk.
Additional info:
* This makes adding KVM guests into test automation a bit funky since we'll need to do a workaround which involves:
When you want to reprovision a guest:
1) virsh destroy $GUEST
2) virsh undefine $GUEST
3) Edit xml to boot off network
4) virsh define $XMLFILE
5) virsh start $GUEST
We'd then need to repeat to have it boot to local disk.