... | ... | @@ -16,7 +16,6 @@ |
|
|
- [*windows-virsh.sh* and *macos-virsh.sh*](#for-windows-virshsh-and-macos-virshsh)
|
|
|
- [*windows.sh* and *macos.sh*](#for-windowssh-and-macossh)
|
|
|
|
|
|
|
|
|
## Common software. For every script.
|
|
|
Install `qemu` and `ovmf`
|
|
|
```bash
|
... | ... | @@ -47,16 +46,16 @@ GRUB_CMDLINE_LINUX_DEFAULT="amd_iommu=on iommu=pt" |
|
|
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt"
|
|
|
```
|
|
|
And then automatically re-generate the `grub.cfg` file with:
|
|
|
```
|
|
|
# grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
```bash
|
|
|
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
```
|
|
|
**Reboot**. [Check if IOMMU works](#check-after-reboot-that-iommu-is-working)
|
|
|
|
|
|
---
|
|
|
|
|
|
### Check, after reboot, that IOMMU is working
|
|
|
```
|
|
|
$ dmesg | grep -e DMAR -e IOMMU
|
|
|
```bash
|
|
|
dmesg | grep -e DMAR -e IOMMU
|
|
|
--------------------------------------------
|
|
|
[ 0.492684] AMD-Vi: IOMMU performance counters supported
|
|
|
[ 0.494370] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
|
... | ... | @@ -64,32 +63,48 @@ $ dmesg | grep -e DMAR -e IOMMU |
|
|
```
|
|
|
|
|
|
## For `windows-basic.sh` and `macos-basic.sh`
|
|
|
If you did the previous, you are good to go.
|
|
|
If you did the previous, you are done. [Next step, get the GPU VBIOS][6].
|
|
|
|
|
|
## For `windows-network.sh` and `macos-network.sh`
|
|
|
Install `dnsmasq`, `iproute2`, `iptables` and `samba`
|
|
|
|
|
|
*Note: these packages **may** already be installed on your system.*
|
|
|
```
|
|
|
```bash
|
|
|
sudo pacman -S dnsmasq iproute2 iptables samba
|
|
|
```
|
|
|
|
|
|
[You may edit `dnsmasq.conf` and `smb.conf`, more info in the *edit script* wiki](edit config and script)
|
|
|
And delete the `dnsmasq.conf` file.
|
|
|
```bash
|
|
|
sudo rm /etc/dnsmasq.conf
|
|
|
```
|
|
|
|
|
|
[You may edit `dnsmasq.conf` and `smb.conf`, more info in the *edit script* wiki](edit-config-and-script)
|
|
|
|
|
|
[Next step, get the GPU VBIOS][6].
|
|
|
|
|
|
## For `windows-virsh.sh` and `macos-virsh.sh`
|
|
|
Install `libvirt`.
|
|
|
```
|
|
|
```bash
|
|
|
sudo pacman -S libvirt
|
|
|
```
|
|
|
*Note: the scripts already handle `libvirtd` so you don't have to start the service.*
|
|
|
|
|
|
[Next step, get the GPU VBIOS][6].
|
|
|
|
|
|
## For `windows.sh` and `macos.sh`
|
|
|
Install `dnsmasq`, `iproute2`, `iptables`, `samba` and `libvirt`.
|
|
|
```
|
|
|
```bash
|
|
|
sudo pacman -S dnsmasq iproute2 iptables samba libvirt
|
|
|
```
|
|
|
|
|
|
[You may edit `dnsmasq.conf` and `smb.conf`, more info in the *edit script* wiki](edit config and script)
|
|
|
And delete the `dnsmasq.conf` file.
|
|
|
```bash
|
|
|
sudo rm /etc/dnsmasq.conf
|
|
|
```
|
|
|
|
|
|
[You may edit `dnsmasq.conf` and `smb.conf`, more info in the *edit script* wiki](edit-config-and-script)
|
|
|
|
|
|
[Next step, get the GPU VBIOS][6].
|
|
|
|
|
|
## For more information refer to this guides
|
|
|
|
... | ... | @@ -100,3 +115,6 @@ sudo pacman -S dnsmasq iproute2 iptables samba libvirt |
|
|
[How to setup a gaming virtual machine with gpu passthrough qemu kvm libvirt and vfio](https://www.se7ensins.com/forums/threads/how-to-setup-a-gaming-virtual-machine-with-gpu-passthrough-qemu-kvm-libvirt-and-vfio.1371980/)
|
|
|
|
|
|
[VM performance](https://rokups.github.io/#!pages/gaming-vm-performance.md)
|
|
|
|
|
|
<!-- Links -->
|
|
|
[6]: vbios "VBIOS guide" |