Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkinney/pxe
Experimentation with pxe boot ubuntu, centos, VMware ESXi
https://github.com/mkinney/pxe
ansible centos esxi pxe pxe-boot pxe-server ubuntu vmware vsftpd
Last synced: 24 days ago
JSON representation
Experimentation with pxe boot ubuntu, centos, VMware ESXi
- Host: GitHub
- URL: https://github.com/mkinney/pxe
- Owner: mkinney
- Created: 2018-04-28T23:56:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T23:21:13.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T17:21:49.218Z (about 1 month ago)
- Topics: ansible, centos, esxi, pxe, pxe-boot, pxe-server, ubuntu, vmware, vsftpd
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
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.txtSpin 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/isoTesting:
- 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)