dotfiles/setup_arch_kvm

19 lines
489 B
Plaintext
Raw Normal View History

2023-12-07 21:55:10 +00:00
#!/bin/bash
echo "Setting up KVM for Arch Linux"
2023-12-08 02:20:39 +00:00
sudo pacman -S qemu libvirt edk2-ovmf virt-manager ebtables dnsmasq qemu-audio-pa dmidecode
2023-12-07 21:55:10 +00:00
# Check if IOMMU is supported
dmesg_iommu_out=$(sudo dmesg | grep -i -e DMAR -e IOMMU)
if [[ $dmesg_iommu_out ]]; then
echo "IOMMU Supported:"
echo "$dmesg_iommu_out"
else
echo "IOMMU not supported"
fi
2023-12-08 03:49:54 +00:00
echo "Ensuring default network is autostarted"
sudo virsh net-autostart default
2023-12-07 21:55:10 +00:00
echo "It's probably a good idea to reboot now..."