Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ipxe on virtualbox
2019-01-14, 00:44
Post: #1
ipxe on virtualbox
Hello,

I "think" I have successfully ipxe boot kickstart a vm client but somehow it did not feel right because it looks just like a regular pxe boot kickstart. I am new to ipxe and hoping for some clarification.

My testing environment is running on VirtualBox. The ipxe configuration and the related files + path are:
Quote:[root@vmserver tftpboot]# pwd
/var/lib/tftpboot
[root@vmserver tftpboot]# ls
chain.c32 mboot.c32 menu.c32 pxelinux.0 undionly.kpxe
ipxe.lkrn memdisk networkboot pxelinux.cfg
Quote:[root@vmserver tftpboot]# cat pxelinux.cfg/default
default 2
prompt 0
timeout 300
ONTIMEOUT local

LABEL 2
MENU LABEL CentOS 7_X64
KERNEL ipxe.lkrn
APPEND dhcp && chain http://192.168.56.101/centos7.ipxe
Quote:cat /var/www/html/centos7.ipxe
#!ipxe
set base http://192.168.56.101
kernel -n img ${base}/images/pxeboot/vmlinuz ks=${base}/kickstart.cfg inst.repo=${base}
initrd ${base}/images/pxeboot/initrd.img
boot img
Quote:[b]cat /etc/dhcp/dhcpd.conf[b]
subnet 192.168.56.0 netmask 255.255.255.0 {
range 192.168.56.102 192.168.56.253;
option domain-name-servers 192.168.56.101;
option domain-name "vms.zen.edu";
option routers 192.168.56.101;
option broadcast-address 192.168.56.255;
default-lease-time 600;
max-lease-time 7200;

host node001 { hardware ethernet 08:00:....; fixed-address 192.168.56.111; }

next-server 192.168.56.101;
filename "pxelinux.0";
}

Booted up the client vm(node001) and received log message. It then successfully provision node001.
Quote:Loading ipxe.lkrn....ready.
IPXE initialising devices...ok
....

Did it actually ipxe provision node001? Ultimately, I would like to be able to provision hundreds of nodes. Thanks for reading and I would greatly appreciate your feedback and any recommendation using ipxe to provision hundreds of nodes.
Find all posts by this user
Quote this message in a reply
2019-01-14, 10:38
Post: #2
RE: ipxe on virtualbox
It mostly seem that you are using pxelinux, which is not iPXE
I don't understand what your question is.

If you want to use iPXE instead of pxelinux then you need to create scripts accordingly - no need to involve pxelinux at all

Virtualbox uses a minimal limited iPXE as it's base, but it's just a standard NBP.
If you want http etc from Virtualbox you first have to load a full featured iPXE

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
2019-01-14, 15:24
Post: #3
RE: ipxe on virtualbox
Thanks NiKiZe.
I'll setup a new VM environment and play around, follow tutorial on http://ipxe.org/.
Can you please recommend a tutorial link for a complete noob?



(2019-01-14 10:38)NiKiZe Wrote:  It mostly seem that you are using pxelinux, which is not iPXE
I don't understand what your question is.

If you want to use iPXE instead of pxelinux then you need to create scripts accordingly - no need to involve pxelinux at all

Virtualbox uses a minimal limited iPXE as it's base, but it's just a standard NBP.
If you want http etc from Virtualbox you first have to load a full featured iPXE
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)