-
Notifications
You must be signed in to change notification settings - Fork 0
mkinney/pxe
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
My notes on getting a minimal PXE server for ESXi to boot from. Setup ansible: virtualenv venv source venv/bin/activate pip install ansible pip freeze > requirements.txt Spin up a new minimal centos7 vm (with bridged networking) hostname:pixie ip: 192.168.0.107 # Note: Ensure mikekinney has sudo no password # TODO: move stuff below into ansible # scp esxi67 iso to /tmp mkdir -p /mnt/iso cd /tmp mount -o loop VMware-VMvisor-Installer-6.7.0-8169922.x86_64.iso /mnt/iso mkdir -p /var/lib/tftpboot/images/esxi67 cp -rf /mnt/iso/* /var/lib/tftpboot/images/esxi67 umount /mnt/iso # If you do not do next step then it cannot find /b0 files sed -i 's/\///g' /var/lib/tftpboot/images/esxi67/boot.cfg # scp esxi65 iso to /tmp mkdir -p /mnt/iso cd /tmp mount -o loop VMware-VMvisor-Installer-6.5.0-4564106.x86_64.iso /mnt/iso mkdir -p /var/lib/tftpboot/images/esxi65 cp -rf /mnt/iso/* /var/lib/tftpboot/images/esxi65 umount /mnt/iso # If you do not do next step then it cannot find /b0 files sed -i 's/\///g' /var/lib/tftpboot/images/esxi65/boot.cfg # scp centos iso to /tmp cd /tmp mount -o loop CentOS-7-x86_64-DVD-1708.iso /mnt/iso mkdir -p /var/lib/tftpboot/images/centos7 cp /mnt/iso/images/pxeboot/vmlinuz /var/lib/tftpboot/images/centos7 cp /mnt/iso/images/pxeboot/initrd.img /var/lib/tftpboot/images/centos7 mkdir -p /var/ftp/pub/centos7 cp -av /mnt/iso/* /var/ftp/pub/centos7 chmod -R 755 /var/ftp/pub/centos7 umount /mnt/iso # scp ubuntu iso to /tmp scp ubuntu-18.04.2-server-amd64.iso root@pixie:/tmp # login to pixie (as root) cd /tmp mount -o loop ubuntu-18.04.2-server-amd64.iso /mnt/iso mkdir -p /var/lib/tftpboot/images/ubuntu18 cp -r /mnt/iso/install/netboot/* /var/lib/tftpboot/images/ubuntu18/ mkdir -p /var/ftp/pub/ubuntu18 cp -av /mnt/iso/* /var/ftp/pub/ubuntu18 chmod -R 755 /var/ftp/pub/ubuntu18 echo "d-i live-installer/net-image string ftp://192.168.0.107/pub/ubuntu/install/filesystem.squashfs" > /var/ftp/pub/ubuntu18/preseed/local-sources.seed umount /mnt/iso Testing: - Be sure to have at least 2gb ram for centos7 (otherwise weird out of disk space error) - Can add "ks=ftp://192.168.0.107/pub/centos7/centos7.ks" for kickstart - For testing, create a new linux vm (with bridged autodetect network option)
About
Experimentation with pxe boot ubuntu, centos, VMware ESXi
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published