I am bit new to this and trying to setup PXE server on Ubuntu 14.04 VM using Virtual Box 4.3. For this I have followed following link for my installation: PXE Boot Server Installation Steps in Ubuntu Server VM
- Installed Virtual Box on Mac Yosemite.
- Deployed Ubuntu VM 14.04 on Virtual box.
Installed and configured DHCP server on Ubuntu. Edited
/etc/default/isc-dhcp-server
foreth0
.dhcp.d
has following configurationdefault-lease-time 600; max-lease-time 7200; subnet 192.168.10.0 netmask 255.255.255.0 { range 192.168.10.50 192.168.10.100; option subnet-mask 255.255.255.0; option routers 192.168.10.123; option broadcast-address 192.168.10.255; filename "pxelinux.0"; next-server 192.168.10.123; }
Configured static IP address on Ubuntu VM
# interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.10.123 netmask 255.255.255.0 network 192.168.10.0 gateway 192.168.10.2 dns-nameservers 8.8.8.8 8.8.4.4 broadcast 192.168.10.255
Setup TFTP service
/etc/inetd.conf # <service_name> <sock_type> <proto> <flags> <user> <server_path> <args> tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
Added PXE boot files with following structure
/var/lib/tftpboot/ |-- pxelinux.0 |-- pxelinux.cfg/ | `-- default `-- pmagic/ |-- bzimage `-- initramfs
On Mac configured
en06
interface withIP Addr: 192.168.10.30 Router : 192.168.10.1 DNS Server 8.8.8.8
made network adapter bridged on virtual box. Disabled WiFi.
- Host and VM both can ping each other now.
- Connected Mac with Cat6 Ethernet cable to remote Lenovo machine which I want to PXE boot.
When I try to boot Lenovo using PXE as first preference it show error that:
no dhcp offer received
Could you help me here to figure out what I am missing? Thanks