Automated install of Ubuntu 18.04 LTS (Bionic Beaver) from Vagrant, Open Virtual Appliance (OVA), or custom boot image (ISO) to fully working system.
You can use this repo to install a fresh copy of Ubuntu 18.04 LTS. This autoinstall also includes useful configs for the new system. Add any extra shell commands to the first boot script.
Please note this project uses Vagrant's insecure key pair and login.
+--------------------------------------------------+
| |
| +---------------------------------+ |
| | Vagrant or OVA or ISO |--+
| +---------------------------------+
| +------+
+->| iPXE |--+ +-----------------+
+------+ | +->|Installer Preseed|----+
| | +-----------------+ | +-----------------------+
+---------+ | +---->| Custom Config Scripts |
| +------+ +---------+ +-----------------------+
| | | | |
| +----------------+ | | v |
+->| Ubuntu Netboot |--+ | +---------------+ |
+----------------+ | | Fresh Beaver! | |
| +---------------+ |
| |
+----------------------------+
- Vagrant, OVA, or ISO
- iPXE
- Ubuntu Netboot
- Installer Preseed
- Custom Config Scripts
- Full Working System!
- Login to an Ubuntu 18.04 LTS system.
- Clone this repository.
git clone --depth 1 https://github.com/wohlford/bionic.git - Execute build script.
./build.sh
- Install Vagrant.
- Install virtualization software:
- Virtualbox; or
- VMware Fusion or VMware Workstation along with the Vagrant VMware plugin.
- Download the Vagrantfile into a directory.
mkdir bionic && wget https://boot.wohlford.co/bionic/Vagrantfile - Change into the directory.
cd bionic - Start the virtual machine.
vagrant up - Wait for install to complete.
- Download our custom iPXE ISO.
- Boot a network connected machine with our custom image.
- Wait for the install to complete.
- Download the netboot.xyz ISO.
- Boot a network connected machine with the netboot.xyz image.
- Under 'Tools', select the 'iPXE shell'.
- Enter the following line in the iPXE shell.
chain --autofree http://boot.wohlford.co/bionic/boot.ipxe - Wait for the install to complete.
- Open the vSphere Web Client interface.
e.g. https://192.168.100.100/ui/#/login - Login.
- Click on the 'Virtual Machines' link in the left-hand pane.
- Click the 'Create/Register VM' link.
- Choose 'Deploy a virtual machine from an OVF or OVA file'.
- Click 'Next'.
- Name the virtual machine.
e.g. Bionic - Add the 'bionic.ova' file.
- Click 'Next'.
- In "Select storage," choose your datastore.
e.g. datastore1 - Click 'Next'.
- In "Deployment options," click 'Next'.
- In "Ready to complete," click 'Finish'.
- Click on your virtual machine.
- Click the 'Console' link.
- Click the 'Open browser console' link.
- Wait for install to complete.
- Download our custom Linux kernel.
- Copy 'ipxe.lkrn' into existing '/boot' directory.
scp ipxe.lkrn [host]:/boot - Enable GRUB boot menu.
sed -i -e 's/^GRUB_TIMEOUT_STYLE=hidden$/#GRUB_TIMEOUT_STYLE=hidden/' /etc/default/grub
sed -i -e 's/^GRUB_TIMEOUT=0$/GRUB_TIMEOUT=900/' /etc/default/grub - Add GRUB boot menu item.
echo 'menuentry "boot.wohlford.co" {linux16 /ipxe.lkrn}' >> /etc/grub.d/40_custom - Update GRUB.
update-grub - Select 'boot.wohlford.co' GRUB menu at startup.
- Wait for the install to complete.