Skip to content

Commit 2b1e986

Browse files
committed
windows: allow using Hyper-V in VM
Instruct virt-install to disable TSX (via no rtm / hle) in the emulated CPU. This is required to be able to use Hyper-V in the VM. Note that the Linux host has to have nested KVM enabled. Signed-off-by: Lorenz Bauer <[email protected]>
1 parent c221969 commit 2b1e986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/windows/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ sudo virt-install \
103103
--name "$VM_NAME" \
104104
--ram "$RAM_MB" \
105105
--vcpus "$(nproc),cores=$(nproc)" \
106-
--cpu "host-passthrough" \
106+
--cpu "host-passthrough,check=none,migratable=off,feature.vmx=require,feature.hle=disable,feature.rtm=disable" \
107107
--os-variant win11 \
108108
--network network=default,model=e1000 \
109109
--channel type=unix,source.mode=bind,target.type=virtio,target.name=org.qemu.guest_agent.0 \

0 commit comments

Comments
 (0)