VirtualBox

Opened 16 years ago

Closed 5 years ago

#2759 closed enhancement (obsolete)

VirtualBox Should permit to specify nextserver/filename in DHCP => Fixed in SVN

Reported by: Luiz Angelo Daros de Luca Owned by:
Component: network/NAT Version: VirtualBox 2.1.0
Keywords: Cc:
Guest type: other Host type: other

Description

I know that using vmname.pxe is simple but I can't use my enterprise boot server (tftp) with NAT computer. If I could define those two fields in DHCP response, I could point them easily to the remote boot server.

Attachments (3)

bootp_permitExternalTftp.diff (2.6 KB ) - added by Luiz Angelo Daros de Luca 16 years ago.
Modification of TFTPPrefix to allow external ip address
Diskless-2010-03-09-11-52-22.log (59.2 KB ) - added by Luiz Angelo Daros de Luca 15 years ago.
Log of a failed pxe boot
VBox.log (60.4 KB ) - added by pvdputte 15 years ago.
Another log of a failed pxe boot

Download all attachments as: .zip

Change History (16)

comment:1 by Frank Mehnert, 16 years ago

Have a look at the VBox.log file. You will find a configuration entry which is named BootFile. Use the following command to overwrite the bootfile:

VBoxManage setextradata VM_NAME \
   VBoxInternal/Devices/pcnet/0/LUN#0/Config/BootFile "foo"

Note that you have to change the key if you use an E1000 network adapter.

comment:2 by Frank Mehnert, 16 years ago

Component: networknetwork/NAT

comment:3 by Luiz Angelo Daros de Luca, 16 years ago

This enhancement depends on

http://www.virtualbox.org/ticket/3112

by Luiz Angelo Daros de Luca, 16 years ago

Modification of TFTPPrefix to allow external ip address

comment:4 by Luiz Angelo Daros de Luca, 16 years ago

I added a patch that changes the behavior of

VBoxInternal/Devices/pcnet/0/LUN#0/Config/TFTPPrefix

If it is a dir, it is used as before. If not, if it is an IP address, it replaces the "nextserver" field (siaddr) in DHCP response to point to an external server.

comment:5 by vasily Levchenko, 16 years ago

please try with 2.2 beta. next server and boot file is configurable

comment:6 by Frank Mehnert, 16 years ago

Summary: VirtualBox Should permit to specify nextserver/filename in DHCPVirtualBox Should permit to specify nextserver/filename in DHCP => Fixed in SVN

comment:7 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: newclosed

comment:8 by pvdputte, 15 years ago

Resolution: fixed
Status: closedreopened

Is this functionality still present in current releases? I can get PXE boot to work in NAT mode (using a TFTP/<vmname>.pxe file at the right location), I can change this BootFile filename by configuring "VBoxInternal/Devices/pcnet/0/LUN#0/Config/BootFile", but pointing at an external "next-server" using the above method with TFTPPrefix does not work.

Am I looking in the wrong places? I'm using 3.1.4 r57640.

comment:9 by Luiz Angelo Daros de Luca, 15 years ago

I don't think so. I guess this feature is broken, or at least the documentation about it. It seems that they changed the network structure but do not updated docs.

comment:10 by Luiz Angelo Daros de Luca, 15 years ago

I tried today with 3.1.4. It seems that the config is correct:

00:00:00.701 Devices/pcnet/0/LUN (level 4) 00:00:00.704 Driver <string> = "NAT" (cb=4) 00:00:00.704 00:00:00.704 Devices/pcnet/0/LUN (level 5) 00:00:00.704 BootFile <string> = "/pxelinux.0" (cb=12) 00:00:00.704 NextServer <string> = "150.162.64.204" (cb=15) 00:00:00.704 TFTPPrefix <string> = "/home/luizd/.VirtualBox/TFTP" (cb=29)

But PXE client claims that it got no boot filename and, this way,no TFTP package comes out of my host network interface.

comment:11 by Frank Mehnert, 15 years ago

Please attach the whole VBox.log file.

by Luiz Angelo Daros de Luca, 15 years ago

Log of a failed pxe boot

by pvdputte, 15 years ago

Attachment: VBox.log added

Another log of a failed pxe boot

comment:12 by pvdputte, 15 years ago

I notice we use different settings. I thought the NextServer var only configures the IP of the integrated TFTP server, and wasn't meant to point at an external one? At least that's what I conclude if I read "2009-01-23 16:23:25 changed by luizluca" above.

I totally love VirtualBox, having this work would make it that much cooler :-)

comment:13 by Michael Thayer, 5 years ago

Resolution: obsolete
Status: reopenedclosed
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette