mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 02:18:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			489 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			489 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
echo "Setting up KVM for Arch Linux"
 | 
						|
sudo pacman -S qemu libvirt edk2-ovmf virt-manager ebtables dnsmasq qemu-audio-pa dmidecode
 | 
						|
 | 
						|
# 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
 | 
						|
 | 
						|
echo "Ensuring default network is autostarted"
 | 
						|
sudo virsh net-autostart default
 | 
						|
 | 
						|
echo "It's probably a good idea to reboot now..."
 |