[gPXE] Booting xen-3.3 with gpxe as a multiboot image
Nathan Mitchell
nmitchel at mcs.anl.gov
Fri Jun 11 11:45:25 EDT 2010
Everyone,
I have an existing installation of pxelinux from which I am booting a xen hypervisor.
DEFAULT xen
SERIAL 0 57600
PROMPT 1
TIMEOUT 1
label xen
KERNEL mboot.c32
APPEND xen-3.3.gz dom0_mem=1024M noreboot --- vmlinuz-2.6.24-24-xen ro root=/dev/sda1 all-generic-ide irqpoll panic=0 --- initrd.img-2.6.24-24-xen
LABEL localboot
LOCALBOOT 0
I wish to translate this config into a gpxe compatible one. I've been looking around online, and I've seen two solutions, one using the native mulitboot support and the other using the mboot.c32.
However neither will successfully boot the machine. I will post both configs and the resulting logs:
NATIVE GPXE MULTIBOOT METHOD
#!gpxe
dhcp net0
kernel http://140.221.37.24/xen-3.3 dom0_mem=1024M noreboot
module http://140.221.37.24/vmlinuz-2.6.24-24-xen ro root=/dev/sda1 all-generic-ide irqpoll panic=0
module http://140.221.37.24/initrd.img-2.6.24-24-xen
imgstat
boot
------------
gPXE 1.0.0+ -- Open Source Boot Firmware -- http://etherboot.org
Features: HTTP HTTPS TFTP DNS AoE iSCSI bzImage ELF PXE Multiboot COMBOOT PXEXT
net0: 00:17:31:f9:c8:7f on UNDI (open)
[Link:up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net0 00:17:31:f9:c8:7f)DHCP 0x1c504 entering discovery state
.DHCP 0x1c504 DHCPDISCOVER
DHCP 0x1c504 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31
.DHCP 0x1c504 DHCPDISCOVER
DHCP 0x1c504 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31 dup
..DHCP 0x1c504 entering request state
DHCP 0x1c504 DHCPREQUEST to 140.221.37.24:67 for 140.221.37.31
DHCP 0x1c504 DHCPACK from 140.221.37.24:67 for 140.221.37.31
DNS using nameserver 140.221.9.6
DNS local domain mcs.anl.gov
ok
net0: 140.221.37.31/255.255.255.0 gw 140.221.37.1
Booting from filename "http://140.221.37.24:8089/bootconfig"
http://140.221.37.24:8089/bootconfig.HTTP 0x1c5e4 response "HTTP/1.1 200 OK"
HTTP 0x1c5e4 header "Date: Fri, 11 Jun 2010 15:42:53 GMT"
HTTP 0x1c5e4 header "Content-Length: 247"
HTTP 0x1c5e4 header "Content-Type: text/html;charset=utf-8"
HTTP 0x1c5e4 header "Server: CherryPy/3.2.0rc1"
HTTP 0x1c5e4 start of data
MULTIBOOT 0x1c504 has no multiboot header
COMBOOT 0x1c504: name 'bootconfig'
COMBOOT 0x1c504: no extension
. ok
DHCP (net0 00:17:31:f9:c8:7f)DHCP 0x1c9f4 entering discovery state
.DHCP 0x1c9f4 DHCPDISCOVER
DHCP 0x1c9f4 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31
.DHCP 0x1c9f4 DHCPDISCOVER
DHCP 0x1c9f4 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31 dup
..DHCP 0x1c9f4 entering request state
DHCP 0x1c9f4 DHCPREQUEST to 140.221.37.24:67 for 140.221.37.31
DHCP 0x1c9f4 DHCPACK from 140.221.37.24:67 for 140.221.37.31
DNS using nameserver 140.221.9.6
DNS local domain mcs.anl.gov
ok
http://140.221.37.24/xen-3.3.HTTP 0x1c834 response "HTTP/1.1 200 OK"
HTTP 0x1c834 header "Date: Fri, 11 Jun 2010 15:42:57 GMT"
HTTP 0x1c834 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1c834 header "Last-Modified: Fri, 11 Jun 2010 13:44:58 GMT"
HTTP 0x1c834 header "ETag: "3fe44-fc7f4-488c15847aa80""
HTTP 0x1c834 header "Accept-Ranges: bytes"
HTTP 0x1c834 header "Content-Length: 1034228"
HTTP 0x1c834 header "Connection: close"
HTTP 0x1c834 header "Content-Type: text/plain"
HTTP 0x1c834 start of data
MULTIBOOT 0x1c6b4 found header with flags 00000003
ok
http://140.221.37.24/vmlinuz-2.6.24-24-xen.HTTP 0x1cd04 response "HTTP/1.1 200 OK"
HTTP 0x1cd04 header "Date: Fri, 11 Jun 2010 15:42:57 GMT"
HTTP 0x1cd04 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1cd04 header "Last-Modified: Fri, 11 Jun 2010 13:45:34 GMT"
HTTP 0x1cd04 header "ETag: "3fe41-1ceacb-488c15a6cfb80""
HTTP 0x1cd04 header "Accept-Ranges: bytes"
HTTP 0x1cd04 header "Content-Length: 1895115"
HTTP 0x1cd04 header "Connection: close"
HTTP 0x1cd04 header "Content-Type: text/plain"
HTTP 0x1cd04 start of data
ok
http://140.221.37.24/initrd.img-2.6.24-24-xen.HTTP 0x1cf04 response "HTTP/1.1 200 OK"
HTTP 0x1cf04 header "Date: Fri, 11 Jun 2010 15:42:58 GMT"
HTTP 0x1cf04 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1cf04 header "Last-Modified: Fri, 11 Jun 2010 13:45:45 GMT"
HTTP 0x1cf04 header "ETag: "3fe42-758d7c-488c15b14d440""
HTTP 0x1cf04 header "Accept-Ranges: bytes"
HTTP 0x1cf04 header "Content-Length: 7703932"
HTTP 0x1cf04 header "Connection: close"
HTTP 0x1cf04 header "Content-Type: text/plain"
HTTP 0x1cf04 start of data
. ok
xen-3.3: 1034228 bytes [Multiboot] [LOADED] "dom0_mem=1024M noreboot"
vmlinuz-2.6.24-: 1895115 bytes "ro root=/dev/sda1 all-generic-ide irqpoll panic=0"
initrd.img-2.6.: 7703932 bytes ""
MULTIBOOT 0x1c6b4 module 0 is [d749c000,d7bf4d7c)
MULTIBOOT 0x1c6b4 module 1 is [d7bf5000,d7dc3acb)
MULTIBOOT 0x1c6b4 starting execution at 100000
... And it just hangs here forever.
MBOOT.C32 METHOD
#!gpxe
dhcp net0
kernel -n mboot.c32 http://140.221.37.24/mboot.c32
imgfetch -n xen-3.3 http://140.221.37.24/xen-3.3 dom0_mem=1024M noreboot
imgfetch -n vmlinuz-2.6.24-24-xen http://140.221.37.24/vmlinuz-2.6.24-24-xen ro root=/dev/sda1 all-generic-ide irqpoll panic=0
imgfetch -n initrd.img-2.6.24-24-xen http://140.221.37.24/initrd.img-2.6.24-24-xen
imgargs mboot.c32 xen-3.3 dom0_mem=1024M noreboot --- vmlinuz-2.6.24-24-xen ro root=/dev/sda1 all-generic-ide irqpoll panic=0 --- initrd.img-2.6.24-24-xen
imgstat
boot mboot.c32
--------
gPXE 1.0.0+ -- Open Source Boot Firmware -- http://etherboot.org
Features: HTTP HTTPS TFTP DNS AoE iSCSI bzImage ELF PXE Multiboot COMBOOT PXEXT
net0: 00:17:31:f9:c8:7f on UNDI (open)
[Link:up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net0 00:17:31:f9:c8:7f)DHCP 0x1c504 entering discovery state
.DHCP 0x1c504 DHCPDISCOVER
DHCP 0x1c504 DHCPOFFER from 140.221.37.24:67 has bad transaction ID
DHCP 0x1c504 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31
.DHCP 0x1c504 DHCPDISCOVER
DHCP 0x1c504 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31 dup
DHCP 0x1c504 DHCPOFFER from 140.221.37.24:67 has bad transaction ID
.DHCP 0x1c504 entering request state
.DHCP 0x1c504 DHCPREQUEST to 140.221.37.24:67 for 140.221.37.31
DHCP 0x1c504 DHCPACK from 140.221.37.24:67 for 140.221.37.31
DNS using nameserver 140.221.9.6
DNS local domain mcs.anl.gov
ok
net0: 140.221.37.31/255.255.255.0 gw 140.221.37.1
Booting from filename "http://140.221.37.24:8089/bootconfig"
http://140.221.37.24:8089/bootconfig.HTTP 0x1c5e4 response "HTTP/1.1 200 OK"
HTTP 0x1c5e4 header "Date: Fri, 11 Jun 2010 15:29:24 GMT"
HTTP 0x1c5e4 header "Content-Length: 534"
HTTP 0x1c5e4 header "Content-Type: text/html;charset=utf-8"
HTTP 0x1c5e4 header "Server: CherryPy/3.2.0rc1"
HTTP 0x1c5e4 start of data
MULTIBOOT 0x1c504 has no multiboot header
COMBOOT 0x1c504: name 'bootconfig'
COMBOOT 0x1c504: no extension
. ok
DHCP (net0 00:17:31:f9:c8:7f)DHCP 0x1c9f4 entering discovery state
.DHCP 0x1c9f4 DHCPDISCOVER
DHCP 0x1c9f4 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31
DHCP 0x1c9f4 DHCPACK from 140.221.37.24:67 has bad transaction ID
.DHCP 0x1c9f4 DHCPDISCOVER
DHCP 0x1c9f4 DHCPOFFER from 140.221.37.24:67 for 140.221.37.31 dup
..DHCP 0x1c9f4 entering request state
DHCP 0x1c9f4 DHCPREQUEST to 140.221.37.24:67 for 140.221.37.31
DHCP 0x1c9f4 DHCPACK from 140.221.37.24:67 for 140.221.37.31
DNS using nameserver 140.221.9.6
DNS local domain mcs.anl.gov
ok
http://140.221.37.24/mboot.c32.HTTP 0x1c834 response "HTTP/1.1 200 OK"
HTTP 0x1c834 header "Date: Fri, 11 Jun 2010 15:29:28 GMT"
HTTP 0x1c834 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1c834 header "Last-Modified: Fri, 11 Jun 2010 15:10:24 GMT"
HTTP 0x1c834 header "ETag: "3fe43-76ac-488c289d03800""
HTTP 0x1c834 header "Accept-Ranges: bytes"
HTTP 0x1c834 header "Content-Length: 30380"
HTTP 0x1c834 header "Connection: close"
HTTP 0x1c834 header "Content-Type: text/plain"
HTTP 0x1c834 header "X-Pad: avoid browser bug"
HTTP 0x1c834 start of data
MULTIBOOT 0x1c6b4 has no multiboot header
ok
http://140.221.37.24/xen-3.3.HTTP 0x1ca54 response "HTTP/1.1 200 OK"
HTTP 0x1ca54 header "Date: Fri, 11 Jun 2010 15:29:29 GMT"
HTTP 0x1ca54 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1ca54 header "Last-Modified: Fri, 11 Jun 2010 13:44:58 GMT"
HTTP 0x1ca54 header "ETag: "3fe44-fc7f4-488c15847aa80""
HTTP 0x1ca54 header "Accept-Ranges: bytes"
HTTP 0x1ca54 header "Content-Length: 1034228"
HTTP 0x1ca54 header "Connection: close"
HTTP 0x1ca54 header "Content-Type: text/plain"
HTTP 0x1ca54 start of data
ok
http://140.221.37.24/vmlinuz-2.6.24-24-xen.HTTP 0x1cf04 response "HTTP/1.1 200 OK"
HTTP 0x1cf04 header "Date: Fri, 11 Jun 2010 15:29:29 GMT"
HTTP 0x1cf04 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1cf04 header "Last-Modified: Fri, 11 Jun 2010 13:45:34 GMT"
HTTP 0x1cf04 header "ETag: "3fe41-1ceacb-488c15a6cfb80""
HTTP 0x1cf04 header "Accept-Ranges: bytes"
HTTP 0x1cf04 header "Content-Length: 1895115"
HTTP 0x1cf04 header "Connection: close"
HTTP 0x1cf04 header "Content-Type: text/plain"
HTTP 0x1cf04 start of data
ok
http://140.221.37.24/initrd.img-2.6.24-24-xen.HTTP 0x1d0b4 response "HTTP/1.1 200 OK"
HTTP 0x1d0b4 header "Date: Fri, 11 Jun 2010 15:29:30 GMT"
HTTP 0x1d0b4 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1d0b4 header "Last-Modified: Fri, 11 Jun 2010 13:45:45 GMT"
HTTP 0x1d0b4 header "ETag: "3fe42-758d7c-488c15b14d440""
HTTP 0x1d0b4 header "Accept-Ranges: bytes"
HTTP 0x1d0b4 header "Content-Length: 7703932"
HTTP 0x1d0b4 header "Connection: close"
HTTP 0x1d0b4 header "Content-Type: text/plain"
HTTP 0x1d0b4 start of data
. ok
mboot.c32: 30380 bytes [COM32] [LOADED] "xen-3.3 dom0_mem=1024M noreboot --- vmlinuz-2.6.24-24-xen ro root=/dev/sda1 all-generic-ide irqpoll panic=0 --- initrd.img-2.6.24-24-xen"
xen-3.3: 1034228 bytes "dom0_mem=1024M noreboot"
vmlinuz-2.6.24-: 1895115 bytes "ro root=/dev/sda1 all-generic-ide irqpoll panic=0"
initrd.img-2.6.: 7703932 bytes ""
Loading xen-3.3... HTTP 0x1d264 response "HTTP/1.1 200 OK"
HTTP 0x1d264 header "Date: Fri, 11 Jun 2010 15:29:32 GMT"
HTTP 0x1d264 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1d264 header "Last-Modified: Fri, 11 Jun 2010 13:44:58 GMT"
HTTP 0x1d264 header "ETag: "3fe44-fc7f4-488c15847aa80""
HTTP 0x1d264 header "Accept-Ranges: bytes"
HTTP 0x1d264 header "Content-Length: 1034228"
HTTP 0x1d264 header "Connection: close"
HTTP 0x1d264 header "Content-Type: text/plain"
HTTP 0x1d264 start of data
ok
Loading vmlinuz-2.6.24-24-xen... HTTP 0x1d464 response "HTTP/1.1 200 OK"
HTTP 0x1d464 header "Date: Fri, 11 Jun 2010 15:29:32 GMT"
HTTP 0x1d464 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1d464 header "Last-Modified: Fri, 11 Jun 2010 13:45:34 GMT"
HTTP 0x1d464 header "ETag: "3fe41-1ceacb-488c15a6cfb80""
HTTP 0x1d464 header "Accept-Ranges: bytes"
HTTP 0x1d464 header "Content-Length: 1895115"
HTTP 0x1d464 header "Connection: close"
HTTP 0x1d464 header "Content-Type: text/plain"
HTTP 0x1d464 start of data
ok
Loading initrd.img-2.6.24-24-xen... HTTP 0x1d464 response "HTTP/1.1 200 OK"
HTTP 0x1d464 header "Date: Fri, 11 Jun 2010 15:29:33 GMT"
HTTP 0x1d464 header "Server: Apache/2.2.14 (Ubuntu)"
HTTP 0x1d464 header "Last-Modified: Fri, 11 Jun 2010 13:45:45 GMT"
HTTP 0x1d464 header "ETag: "3fe42-758d7c-488c15b14d440""
HTTP 0x1d464 header "Accept-Ranges: bytes"
HTTP 0x1d464 header "Content-Length: 7703932"
HTTP 0x1d464 header "Connection: close"
HTTP 0x1d464 header "Content-Type: text/plain"
HTTP 0x1d464 start of data
ok
mboot.c32: boot failed
No more network devices
I'm not sure what I should try next, and I'm hoping this list will have some ideas I haven't thought of.
-- Nathan Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://etherboot.org/pipermail/gpxe/attachments/20100611/10458b73/attachment-0001.html
More information about the gPXE
mailing list