mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 07:58:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			408 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			408 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 "It's probably a good idea to reboot now..."
 |