Skip to contentSkip to conversation

booting Netboot images created by mknbi

Qemu-devel David Ahern 3 participants 4 messages Jul 15, 2010

lore
Share & tools
lore
#0 lore raw

Is it possible to run qemu with a netboot image -- something created by mknbi? If so any notes on how to do that?

David

#1 lore raw
Quoted 2 lines · David Ahern

Is it possible to run qemu with a netboot image -- something created by mknbi? If so any notes on how to do that?

Yes, QEMU ships with a gPXE network boot ROM. Previously it shipped with a legacy Etherboot boot ROM.

You can use the -boot n command-line option to enable the network bootloader.

Stefan

#2 lore raw
Quoted 8 lines · Stefan Hajnoczi
Quoted 2 lines · David Ahern

Is it possible to run qemu with a netboot image -- something created by mknbi? If so any notes on how to do that?

Yes, QEMU ships with a gPXE network boot ROM. Previously it shipped with a legacy Etherboot boot ROM.

You can use the -boot n command-line option to enable the network bootloader.

I've tried that without success. DHCP is configured, and it gets an IP address just fine. From there it's not clear what to do.

For pxe boot I tell it to load pxelinux.0. After that it retrieves the mac addr file. For pxe boots the mac addr file is something like:

label linux
kernel vmlimuz
append initrd=initrd.img

Should the same work for netboot images? If so, is it:

kernel image.nbi?

David

Quoted 2 lines

Stefan

#3 lore raw
Quoted 16 lines · David Ahern
Quoted 7 lines · Stefan Hajnoczi
Quoted 2 lines · David Ahern

Is it possible to run qemu with a netboot image -- something created by mknbi? If so any notes on how to do that?

Yes, QEMU ships with a gPXE network boot ROM. Previously it shipped with a legacy Etherboot boot ROM.

You can use the -boot n command-line option to enable the network bootloader.

I've tried that without success. DHCP is configured, and it gets an IP address just fine. From there it's not clear what to do.

For pxe boot I tell it to load pxelinux.0. After that it retrieves the mac addr file. For pxe boots the mac addr file is something like:

Quoted 8 lines

label linux
kernel vmlimuz
append initrd=initrd.img

Should the same work for netboot images? If so, is it:

kernel image.nbi?

-net user,bootfile=yourimage,tftp=/path/

or set up your own (real) dhcp and tftp servers when using bridged networking.

Jan