User Tools

Site Tools


virt:qemu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

virt:qemu [2010/08/02 13:35] – created - external edit 127.0.0.1virt:qemu [2025/03/11 21:13] (current) – added bits about hiding QEMU from the VM phil
Line 54: Line 54:
       -drive file=/tmp/dummy,cache=none,if=virtio \       -drive file=/tmp/dummy,cache=none,if=virtio \
       -net nic,model=virtio -net tap -boot c       -net nic,model=virtio -net tap -boot c
 +
 +===== Hiding the Hypervisor =====
 +
 +To avoid "special" behaviour of (usually windows-)software when running in a
 +virtualized host, some extra measures are advisable to make the VM unaware of
 +itself. Basically found the instructions
 +[[https://superuser.com/questions/1387935/hiding-virtual-machine-status-from-guest-operating-system|here]]:
 +
 +  * Make sure to not use "Hypervisor Default" CPU model, better go with "Copy host CPU configuration". (Has this become the standard meanwhile anyway?)
 +
 +For the remaining two, edit the VM's XML (``virsh edit <vm>``):
 +
 +  * Inside the ''<cpu>'' tag, add:
 +
 +  <feature policy='disable' name='hypervisor'/>
 +
 +  * Inside the ''<features>'' tag, add:
 +
 +  <kvm>
 +    <hidden state='on'/>
 +  </kvm>
 +
 +If everything went well, Task Manager's Performance tab should no longer read
 +''Virtual machine: yes'' but ''Virtualization: enabled'' instead.
 +
  
virt/qemu.txt · Last modified: 2025/03/11 21:13 by phil