grub pxe not working in qemu

Bug #1001325 reported by Pali
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Debian)
Fix Released
Unknown
grub2 (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
High
Unassigned

Bug Description

I installed grub into /var/lib/tftpboot/ (which is root of tftpd-hpa)
$ sudo grub-mknetdir --net-directory=/var/lib/tftpboot/

Then I created tap0 interface:
$ sudo tunctl -t tap0 -u pali

I trying to boot grub via pxe, but only rescue grub mode is started. I show error "error: no such disk."
$ qemu-system-x86_64 -curses -net tap,ifname=tap0,script=/bin/true,downscript=/bin/true -net nic

iPXE (http://ipxe.org) 00:03.0 C900 PCI2.10 PnP PMM+17FC92A0+17F892A0 C900

Booting from DVD/CD...
Boot failed: Could not read from CDROM (code 0003)
Booting from ROM...
iPXE (PCI 00:03.0) starting execution...ok
iPXE initialising devices...ok

iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org
Features: HTTP iSCSI DNS TFTP AoE bzImage COMBOOT ELF MBOOT PXE PXEXT

net0: 52:54:00:12:34:56 using rtl8139 on PCI00:03.0 (open)
 [Link:up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net0 52:54:00:12:34:56)...... ok
net0: 10.0.0.10/255.255.255.0 gw 10.0.0.1
Next server: 10.0.0.1
Filename: /boot/grub/i386-pc/core.0
tftp://10.0.0.1//boot/grub/i386-pc/core.0... ok
error: no such disk.
grub rescue>

I have 64bit Ubuntu Precise and DHCP and TFTP server are correctly running on tap0 interface.

Look like this is same problem as reported in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635877

Revision history for this message
Daniel Letzeisen (dtl131) wrote :
Steve Langasek (vorlon)
affects: grub (Ubuntu) → grub2 (Ubuntu)
Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Pali (pali) wrote :

In that debian bug is written that problem was fixed in upstream. Can be patch from upstrem backported to ubuntu?

Changed in grub2 (Debian):
status: Unknown → Confirmed
Revision history for this message
Pali (pali) wrote :

So what it state of this bug? When will be patch in ubuntu?

Changed in grub2 (Debian):
status: Confirmed → Fix Committed
Changed in grub2 (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Pali (pali) wrote :

Still not fixed in precise.

Revision history for this message
Pali (pali) wrote :

BUMP!

Revision history for this message
Colin Watson (cjwatson) wrote :

It's fixed in Ubuntu 12.10 and newer, but perhaps we should backport this patch for 12.04.5.

Changed in grub2 (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
milestone: none → ubuntu-12.04.5
Changed in grub2 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Pali (pali) wrote :

So, when it will be fixed?

Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in grub2 (Ubuntu Precise):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.