From c573442b6f01a5eb86090c499c3b25463d511bae Mon Sep 17 00:00:00 2001 From: Dhruv Bhavsar Date: Mon, 24 Jul 2023 14:02:19 -0400 Subject: [PATCH] Add kvm amd support When starting any machine on AMD processor after running this script it errors with following error `TASK ERROR: KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS.` After adding this line install works as expected on AMD machines --- setup | 1 + 1 file changed, 1 insertion(+) diff --git a/setup b/setup index 9fbb5a3..0c9db6d 100755 --- a/setup +++ b/setup @@ -114,6 +114,7 @@ then else sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt video=vesafb:off video=efifb:off"/g' /etc/default/grub fi + echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf fi if [ ${OSX_PLATFORM} == "INTEL" ]