add MacOS (M1) instructions

bretello 2022-05-16 09:21:57 +02:00
parent f1dd7f04d4
commit 60ed08bdf2
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 18 additions and 1 deletions

View File

@ -4,7 +4,7 @@
`libvirt`, `qemu`, `virt-install`
On archlinux:
### Archlinux:
pacman -S virt-install libvirt qemu-desktop
@ -14,6 +14,23 @@ pacman -S qemu-emulators-full # optional, provides extra architectures emulation
systemctl enable libvirtd.socket # socket activation
### MacOS
brew install qemu libvirt virt-manager # installing virt-manager might take a while since it requires GTK
# optional
brew install virt-viewer
brew services start libvirt
The procedure for installing VMs on MacOS is similar to the standard processes, although some flags have to be changed when running on M1:
1. remove the `--virt-type kvm` flag as this is not supported, it will fallback to `qemu` hypervisor
2. remove the `--cpu host` flag and add `--arch x86_64` to `virt-install` in order to run an `x86_64` system (this might depends on the architecture you want to emulate)
Follow instructions below, editing commands as required.
## Installing VMs
### Archlinux