Skip to content

Instantly share code, notes, and snippets.

@tomgoren
Created November 29, 2023 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomgoren/97cabde8685274b41406483804effaa5 to your computer and use it in GitHub Desktop.
Save tomgoren/97cabde8685274b41406483804effaa5 to your computer and use it in GitHub Desktop.
Infrastructure Notes

Ubuntu VM on MacOS with qemu

  • First get the image:
wget https://releases.ubuntu.com/22.04.3/ubuntu-22.04.3-live-server-amd64.iso
  • Create the virtual hard drive on to which the guest OS will be installed:
qemu-img create -f qcow2 ubuntu.qcow2 30g
  • Install the OS referencing the image we downladed and the virtual hard drive we created:
qemu-system-x86_64 \
  -cdrom "ubuntu-22.04.3-live-server-amd64.iso" \
  -hda "ubuntu.qcow2" \
  -m "4G"

An installation window should pop up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment