Alright, so when you do
virsh edit [vm name] you’ll see the xml config for you VM.
This is vi or vim, which I am definitely not an expert with. Basically you need to enter insert mode by pressing
i. You press
esc to exit insert mode. You press
:wq to save and exit virsh.
Under the line
<vcpu placement='static'>4</vcpu>, copy/paste this:
<vcpupin vcpu='0' cpuset='2'/>
<vcpupin vcpu='1' cpuset='3'/>
<vcpupin vcpu='2' cpuset='6'/>
<vcpupin vcpu='3' cpuset='7'/>
This may change based on what CPU you have. Mine is 4 core, 8 thread, so I give the VM two physical cores and their corresponding threads.
Then, for the hiding part, under
features you should see a couple lines for acpi and apic. Under those add this:
You can also delete anything related to ‘hyperv’ and anything else that looks like it’s related to virtual machine stuff. The spot where you put in the above section has a hyperv section. Just delete that. There’s also a timer in the clock section that needs to be removed.
Also, back in the VM setup in Virtual Machine Manager under CPUs, make sure you have the model set to ‘host-passthrough’. You’ll probably have to type that in.
That should give you a good start. Any other questions just ask.