
Ich hoste Ubuntu 18 mit QEMU KVM. Virtuelle Maschine Windows 10 (Hyper-V aktiviert)
Ich möchte den Android Studio-Emulator auf einer Windows-VM ausführen.
Auf dem Host habe ich kvm_amd nested=1
VM-Einstellungen Nr. 1:
<vcpu placement='static'>8</vcpu>
<cpu mode='host-model' check='partial'>
<model fallback='allow'/>
<feature policy='disable' name='hypervisor'/>
</cpu>
mit diesen Einstellungen hat die Windows-VM:
- Virtualisierung in Firmaware: Ja
- VM Monitor Mode-Erweiterung: Nein
VM-Einstellungen Nr. 2:
<vcpu placement='static'>8</vcpu>
<cpu mode='host-passthrough' check='none'/>
mit diesen Einstellungen hat die VM:
- Virtualisierung in Firmaware: Ja
- VM-Monitor-Modus-Erweiterung: Ja
- aber VM ist sehr langsam, kann nicht daran arbeiten
- Wenn ich die Topologie auf etwas anderes als die Standardtopologie ändere, gerät die VM in eine Bootschleife
Bitte lassen Sie mich wissen, ob Sie weitere Informationen benötigen. Können Sie mir helfen?
Antwort1
Ich habe qemu-kvm endlich mit einem Windows 11 Professional-Client zum Laufen gebracht, wobei Hyper-V und Docker Desktop reibungslos laufen.
Das ist mein Setup, vielleicht hilft es anderen. KEINE WERBUNG GEDACHT! Hardware:
Gigabyte X570 I AORUS PRO WIFI
BIOS-Version F37a (Virtualization enabled, Hyperthreading disabled)
AMD Ryzen 9 3950X 16-Core Processor
64Gb RAM
Software:
OS: Centos Stream 8
Kernel: 4.18.0-448.el8.x86_64
libvirt 8.0.0
QEMU 6.2.0
/etc/modprobe.d/kvm.conf
options kvm ignore_msrs=1
options kvm_amd nested=1
Virsh-Einstellungen:
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
<vcpu placement='static'>12</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-q35-rhel8.2.0'>hvm</type>
</os>
<features>
<acpi/>
<apic/>
<hyperv mode='custom'>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
<vpindex state='on'/>
<runtime state='on'/>
<synic state='on'/>
<stimer state='on'/>
<reset state='on'/>
<vendor_id state='on' value='1234567890ab'/>
<frequencies state='on'/>
<reenlightenment state='on'/>
<tlbflush state='on'/>
<ipi state='on'/>
<evmcs state='off'/>
</hyperv>
<kvm>
<hidden state='on'/>
<hint-dedicated state='on'/>
<poll-control state='on'/>
</kvm>
<vmport state='off'/>
<smm state='on'/>
</features>
<cpu mode='host-passthrough' check='none' migratable='off'>
<topology sockets='1' dies='1' cores='12' threads='1'/>
<cache mode='passthrough'/>
<feature policy='require' name='topoext'/>
<feature policy='require' name='svm'/>
<feature policy='require' name='x2apic'/>
<feature policy='require' name='hypervisor'/>
<feature policy='require' name='invtsc'/>
</cpu>
<clock offset='localtime'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
<timer name='hypervclock' present='yes'/>
<timer name='tsc' present='yes' mode='native'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
Ich habe Windows 11 Pro ohne SecureBoot und TPM installiert. Bitte Google-Details.
Shift+F10 to launch cmd in windows setup regedit goto “HKEY_LOCAL_MACHINE\SYSTEM\Setup”
right-click “New ⇒ Key ⇒ LabConfig” “New ⇒ DWORD (32-bit) ⇒
BypassTPMCheck ⇒ 1” same for “BypassRAMCheck” and “BypassSecureBootCheck”