Page 1 of 1

[ Solved ] SIMPLE UBUNTU SERVER / CLIENT NETBOOT v10.10

Posted: 1. Mar 2011, 00:01
by mr.deek
Hello,

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
Run:

Code: Select all

sudo su
apt-get install tftpd-hpa dhcp3-server
Configure Network cards for dhcp server:
( In my case I'm using eth2 (INTERNET) and eth1 (NETBOOT NETWORK LOOPBACK)
Run:

Code: Select all

 nano /etc/network/interfaces
Change to example:

Code: 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
Run:

Code: Select all

/etc/init.d/networking restart
Run:

Code: Select all

nano /etc/defaults/dhcp3-server
Update:

Code: Select all

INTERFACE=""
TO

Code: Select all

INTERFACE="eth1"
Run:

Code: Select all

nano /etc/dhcp3/dhcpd.conf
Update:

Code: 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";
}

Run:

Code: Select all

/etc/init.d/dhcp3-server restart
Run:

Code: Select all

mount /dev/sr0 /media/cdrom
cp -a /media/cdrom/install/netboot/* /var/lib/tftpboot/
At this point you can now setup a webserver or NFS filesystem to share out your install CD but this is not covered in this document.

Please enjoy!
Thank you
Mr.Deek

My Other Posts: