mirror of
https://git.decapod.one/brethil/libvirt-notes.git
synced 2024-12-22 12:01:50 +01:00
add MacOS (M1) instructions
This commit is contained in:
parent
f1dd7f04d4
commit
60ed08bdf2
19
README.md
19
README.md
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
`libvirt`, `qemu`, `virt-install`
|
`libvirt`, `qemu`, `virt-install`
|
||||||
|
|
||||||
On archlinux:
|
### Archlinux:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pacman -S virt-install libvirt qemu-desktop
|
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
|
systemctl enable libvirtd.socket # socket activation
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### MacOS
|
||||||
|
|
||||||
|
```bash
|
||||||
|
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
|
## Installing VMs
|
||||||
|
|
||||||
### Archlinux
|
### Archlinux
|
||||||
|
|
Loading…
Reference in New Issue
Block a user