summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-08-07 10:32:37 +0300
committerLars Wirzenius <liw@liw.fi>2020-08-07 10:33:43 +0300
commit1e6aa57f2a81cd4b2e162b463636ba9abc223865 (patch)
tree1487314ee369af0a553904f51f494a1fe22739e0
parent5db5edd48626aec755065edea3859f187410ca84 (diff)
downloadansibleness-1e6aa57f2a81cd4b2e162b463636ba9abc223865.tar.gz
fix: create-vm to use --cpu=host-passthrough
This lets my VM host with a new AMD CPU created a VM that supports nested VMs. <type>[optional scope]: <description> [optional body] [optional footer(s)]
-rwxr-xr-xcreate-vm2
1 files changed, 1 insertions, 1 deletions
diff --git a/create-vm b/create-vm
index c4d645f..ecb760a 100755
--- a/create-vm
+++ b/create-vm
@@ -130,7 +130,7 @@ virt-install --connect qemu:///system \
--quiet \
--name="$name" \
--memory=1024 \
- --cpu=host \
+ --cpu=host-passthrough \
--import \
--os-variant=debian9 \
--disk="path=$lvpath,cache=none" \