Here is my success story for enabling net booting from Ubuntu x64 server using virtual box as a server and client.
NOTICE:
PXE NETBOOT DOSE NOT WORK IF INTEL PRO NETWORK CARDS ARE USED?
Requirements:
VBOX 4.0.4 (As I tested on windows)
UBUNTU-X64-ALTERNATE CD (i386 will work) but not covered here for say)
Setup the VBOX VM's
- CREATE THE CLIENT VM
- Network adapter 1 (LOOP BACK FOR NETBOOT VM )
- Set network attached to [internal Network]
- Give the network a [Name] as (EX: NETBOOT)
- From advanced section; select [adapter type] as [PCNET-FAST III ***]
- SELECT THE SERVER VM
- Network adapter 1 (INTERNET ACCESS)
- Set network attached to [Bridged]
- Network adapter 2 (LOOP BACK FOR NETBOOT VM'S )
- Set network attached to [internal Network]
- Give the network a [Name] (EX: NETBOOT)
- From advanced section; select [adapter type] as [PCNET-FAST III ***]
Procedure:
- Install ubuntu server minimal command line server. (PRESS F4 AT CD BOOT SCREEN)
Run:
Code: Select all
sudo su
apt-get update
apt-get upgrade
apt-get dist-upgrade
reboot
Code: Select all
sudo su
apt-get install tftpd-hpa dhcp3-server
( In my case I'm using eth2 (INTERNET) and eth1 (NETBOOT NETWORK LOOPBACK)
Run:
Code: Select all
nano /etc/network/interfacesCode: Select all
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.50.1
netmask 255.255.255.0
network 192.168.50.0
broadcast 192.168.50.255
gateway 192.168.50.1
auto eth2
iface eth2 inet dhcp
Code: Select all
/etc/init.d/networking restartCode: Select all
nano /etc/defaults/dhcp3-serverCode: Select all
INTERFACE=""Code: Select all
INTERFACE="eth1"Code: Select all
nano /etc/dhcp3/dhcpd.confCode: Select all
#
ddns-update-style none;
option domain-name "infocode.net";
option domain-name-servers 192.168.50.1;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.50.0 netmask 255.255.255.0 {
range 192.168.50.100 192.168.50.200;
option broadcast-address 192.168.50.255;
option routers 192.168.50.1;
}
host netbootpc1 {
hardware ethernet 08:00:27:AA:BB:CC;
filename "pxelinux.0";
fixed-address 192.168.50.40;
server-name "192.168.50.1";
}
Code: Select all
/etc/init.d/dhcp3-server restart
Code: Select all
mount /dev/sr0 /media/cdrom
cp -a /media/cdrom/install/netboot/* /var/lib/tftpboot/
Please enjoy!
Thank you
Mr.Deek
My Other Posts:
- [ Solved ] SIMPLE UBUNTU SERVER / CLIENT NETBOOT v10.10
http://forums.virtualbox.org/viewtopic.php?f=3&t=39474 - [ Solved ] Win VBOX 4.0.4 vboxmanage createhd split2g
http://forums.virtualbox.org/viewtopic.php?f=6&t=39250 - [ Solved ] Moving UBUNTU to a new hard drive (HD)
http://forums.virtualbox.org/viewtopic.php?f=3&t=39292