[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
Launchpad has imported 37 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=472236. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2008-11-19T15:07:54+00:00 James wrote: 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 libvirt-0.4.6-3.fc10.x86_64 kvm-74-5.fc10.x86_64 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. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/0 On 2008-11-19T15:08:23+00:00 James wrote: Created attachment 324048 Screenshot Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/1 On 2008-11-19T15:08:44+00:00 James wrote: Created attachment 324049 Guest XML configuration Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/2 On 2008-11-19T15:09:06+00:00 James wrote: Created attachment 324050 /var/log/libvirt/qemu/vguest2.log Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/3 On 2008-11-19T15:25:27+00:00 Michael wrote: Being able to boot KVM-via-PXE statefully would be highly useful for my testing in Cobbler land as well, and would help with virtual deployment (and re-deployment) of non-Linux guests. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/4 On 2008-11-19T15:33:38+00:00 Daniel wrote: The XML only specifies a single device for booting. Can you try setting multiple devices Which should tell the BIOS to try to boot network, then cdrom, then harddisk in that order. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/5 On 2008-11-19T15:47:41+00:00 James wrote: Using ... hvm Results in ... # cat /var/log/libvirt/qemu/vguest2.log /usr/bin/qemu-kvm -S -M pc -m 1024 -smp 2 -name vguest2 -monitor pty -boot ndc -drive file=/dev/VolGroup00/vguest2,if=virtio,index=0,boot=on -net nic,macaddr=54:52:00:29:89:e5,vlan=0,model=virtio -net tap,fd=16,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -vnc 127.0.0.1:1 -k en-us char device redirected to /dev/pts/3 char device redirected to /dev/pts/4 Too many option ROMS Amy I doing that right? Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/6 On 2008-11-19T15:50:57+00:00 Cole wrote: Wow! I didn't know you could specify multiple boot devs. Using And then pressing 'q' to not boot from networking successfully boots from disk. James, try just the above and see if it does the job for you. Reply at: https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/551545/comments/7 On 2008-11-19T16:13:53+00:00 Michael wrote: Cole, what we are looking for is when the bootloader is fed the following PXE configuration it should boot from the local disk: DEFAULT local PROMPT 0 TIMEOUT 0 TOTALTIMEOUT 0 ONTIMEOUT local LABEL local LOCALBOOT 0 This will enable us to create a KVM "empty shell" that we can assign what OS it is runni
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
There hasn't been a reply to my question in the last comment within months, so I assume this has been fixed in upstream, too. Closing this ticket now... ** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/551545/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
Since it has been fixed in Precise ... I assume this has also been fixed in upstream QEMU? Or is there still anything left to do here? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/551545/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
This issue should be fixed in the qemu-kvm version included in precise. ** Changed in: qemu-kvm (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/551545/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
Still a problem in Lucid, making automatic installation and deployment of VMs (using Cobbler or Foreman) pretty much impossible without manual intervention. This, of course, defeats the whole point of automatic installation and deployment. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/551545/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
lucid-updates and lucid-proposed ship the same package and from the changelog I cannot see what change would be related to this big. I've just confirmed by testing that the bug still applies to the most uptodate packages that are available for lucid. ** Changed in: qemu-kvm (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
Hi, could you test whether you still have this problem with lucid-proposed? ** Changed in: qemu-kvm (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
** Also affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/551545 Title: PXE netboot not booting localboot from virtio-disk -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
this bug has nothing to do with VDE. It seems that ubuntu's current version of libvirt/kvm-qemu does not implement boot ordering correctly. this seems to be present in fedora as well: https://bugzilla.redhat.com/show_bug.cgi?id=472236 ** Bug watch added: Red Hat Bugzilla #472236 https://bugzilla.redhat.com/show_bug.cgi?id=472236 ** Also affects: qemu-kvm (Fedora) via https://bugzilla.redhat.com/show_bug.cgi?id=472236 Importance: Unknown Status: Unknown ** Changed in: qemu-kvm (Ubuntu) Status: Incomplete => Confirmed -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
VDE is very great. I use it since many months and had NEVER any problems. There is no better solution than cde. And I do not understand, why you do not put it into main repo. Sayin: insecure is not a good answer without telling where. So does it mean, the wrapper vdekvm will be kicked in Lucid? That would break all servers, which used it! -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
Also, vde networking will not work with Lucid's kvm. To use vde networking, we'd need to build qemu-kvm with libvde2, which we cannot do because it's in Universe. Please consider using one of the other more secure, officially supported networking models: * https://help.ubuntu.com/community/KVM/Networking -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
By the way: PXELinux ignores timeout, if prompt is set. So this seems to be a second bug (this worked on karmic). -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
Directly from the manpage: -boot [order=drives][,once=drives][,menu=on|off] Specify boot order drives as a string of drive letters. Valid drive letters depend on the target achitecture. The x86 PC uses: a, b (floppy 1 and 2), c (first hard disk), d (first CD-ROM), n-p (Etherboot from network adapter 1-4), hard disk boot is the default. To apply a particular boot order only on the first startup, specify it via once. Interactive boot menus/prompts can be enabled via menu=on as far as firmware/BIOS supports them. The default is non-interactive boot. # try to boot from network first, then from hard disk qemu -boot order=nc So this should work?? Don't know. Even does not work with not specifying if=virtio. -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
According to your command line: -boot order=nc \ I don't think that this include a local hard disk as part of the list of devices to be considered for booting. ** Changed in: qemu-kvm (Ubuntu) Status: New => Incomplete ** Changed in: qemu-kvm (Ubuntu) Importance: Undecided => Medium -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551545] Re: PXE netboot not booting localboot from virtio-disk
** Attachment added: "BootDmesg.txt" http://launchpadlibrarian.net/42477592/BootDmesg.txt ** Attachment added: "CurrentDmesg.txt" http://launchpadlibrarian.net/42477593/CurrentDmesg.txt ** Attachment added: "Dependencies.txt" http://launchpadlibrarian.net/42477594/Dependencies.txt ** Attachment added: "KvmCmdLine.txt" http://launchpadlibrarian.net/42477595/KvmCmdLine.txt ** Attachment added: "Lspci.txt" http://launchpadlibrarian.net/42477596/Lspci.txt ** Attachment added: "Lsusb.txt" http://launchpadlibrarian.net/42477597/Lsusb.txt ** Attachment added: "ProcAttrCurrent.gz" http://launchpadlibrarian.net/42477598/ProcAttrCurrent.gz ** Attachment added: "ProcCpuinfo.txt" http://launchpadlibrarian.net/42477599/ProcCpuinfo.txt ** Attachment added: "ProcInterrupts.txt" http://launchpadlibrarian.net/42477600/ProcInterrupts.txt ** Attachment added: "ProcMaps.txt" http://launchpadlibrarian.net/42477601/ProcMaps.txt ** Attachment added: "ProcModules.txt" http://launchpadlibrarian.net/42477602/ProcModules.txt ** Attachment added: "ProcStatus.txt" http://launchpadlibrarian.net/42477603/ProcStatus.txt ** Attachment added: "RelatedPackageVersions.txt" http://launchpadlibrarian.net/42477604/RelatedPackageVersions.txt ** Attachment added: "UdevDb.txt" http://launchpadlibrarian.net/42477606/UdevDb.txt ** Attachment added: "UdevLog.txt" http://launchpadlibrarian.net/42477607/UdevLog.txt -- PXE netboot not booting localboot from virtio-disk https://bugs.launchpad.net/bugs/551545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs