casfront.blogg.se

Ubuntu vm on mac
Ubuntu vm on mac








That window also has a handy "Power Down" dropdown option in the "Machine" item in the menu bar.

ubuntu vm on mac

This command will open a QEMU window you can Alt-Tab to in order to monitor machine startup and proceed with installation.

ubuntu vm on mac

  • -netdev and -device set up networking so we can ssh into the VM on port 2222.
  • ubuntu vm on mac

  • -m is the max amount of memory the machine may use.
  • -machine uses the latest machine type and the macOS native hypervisor.
  • -hda specifies the hard drive file we'll be using.
  • Drop it on subsequent boots once Ubuntu is installed.
  • -cdrom boots the VM from the ISO file for installation.
  • device "virtio-net-pci,netdev=n1,bus=pcie.0,addr=0x19"Įxplanation of options (many of these are lifted from ): Next, run this command to boot the VM (I put this in a script I call boot.sh): qemu-system-x86_64 \

    ubuntu vm on mac

    Now create the file that will serve as the hard drive for the VM: qemu-img create -f qcow2 ubuntu.qcow2 50gĭownload an Ubuntu ISO file (or any other linux): curl -LO I landed on libvirt for the VM, then realized I could remove libvirt from the equation to finally end up at this quick, simple setup for an Ubuntu VM on macOS with QEMU.įirst, install QEMU (see for other options): brew install qemu I realized I would be happy SSHing into a local Linux VM but passed on VirtualBox to avoid depending on legacy system extensions. With the Docker Desktop license changes I looked into minikube and Multipass but both failed when I got on our VPN with Cisco An圜onnect due to bridged networking in hyperkit (see links at bottom). For work I have an Intel Core i5 MacBook.










    Ubuntu vm on mac