Posts

Showing posts from December, 2024

Enable UEFI in your VMWare machine

Image
VMWare Workstation 8, 9, and 10 support booting to a UEFI environment. Create a new virtual machine Open the .VMX file of your virtual machine in Notepad (or similar) and add the following line to it: firmware="efi" Save the .VMX file.         In addition, order to be able to select network boot, it is advisable to add a boot delay to the startup of the virtual machine. This can be done by adding the line "bios.bootdelay = 5000" (time is in milliseconds)

Provisions a Ubuntu 20.04 VM in QEMU on Mac OSX using Cloud-Init

#!/usr/bin/env bash #Install brew and qemu + cloud init metadata dependencies /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh )" brew install qemu brew install cdrtools rm -rf /tmp/ubuntuqemuboot #download Ubuntu 20.04 Cloud Image and resize to 30 Gigs mkdir -p /tmp/ubuntuqemuboot/images cd /tmp/ubuntuqemuboot/images curl https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img --output focal-server-cloudimg-amd64.img qemu-img resize focal-server-cloudimg-amd64.img 30G #create the cloud-init NoCloud metadata disk file mkdir -p /tmp/ubuntuqemuboot/cloudinitmetadata cd /tmp/ubuntuqemuboot/cloudinitmetadata ssh-keygen -b 2048 -t rsa -f id_rsa_ubuntu2004boot -P "" chmod 0600 /tmp/ubuntuqemuboot/cloudinitmetadata/id_rsa_ubuntu2004boot PUBLIC_KEY=$(cat id_rsa_ubuntu2004boot.pub) cat <<EOF >/tmp/ubuntuqemuboot/cloudinitmetadata/meta-data instance-id: circle-the-wagons-local716 local-hostname: ci...