mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 07:58:41 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			384 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			384 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo "Setting up KVM for Arch Linux"
							 | 
						||
| 
								 | 
							
								sudo pacman -S qemu libvirt edk2-ovmf virt-manager ebtables dnsmasq
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# 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..."
							 |