User Tools

Site Tools


doc:appunti:linux:sa:virtualization

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:linux:sa:virtualization [2019/08/28 11:53] niccolodoc:appunti:linux:sa:virtualization [2019/08/28 12:03] – [Libvirt to manage KVM hosts: install, start, stop] niccolo
Line 269: Line 269:
  
 **NOTICE**: The attributes **arch** and **machine** of tag **%%<os><type>%%** are madatory with **Libvirt 3.0.0** (provided by **Debian 9 Stretch**), they were instead not required in previous versions. To view the the list of supported machines, execute **''qemu-system-x86_64  -machine help''**. **NOTICE**: The attributes **arch** and **machine** of tag **%%<os><type>%%** are madatory with **Libvirt 3.0.0** (provided by **Debian 9 Stretch**), they were instead not required in previous versions. To view the the list of supported machines, execute **''qemu-system-x86_64  -machine help''**.
- 
  
 The VNC port can be assigned automatically (seting it to **''%%port='autoport'%%''**), or assigned statically, e.g. **''%%port='5901'%%''**. The VNC port can be assigned automatically (seting it to **''%%port='autoport'%%''**), or assigned statically, e.g. **''%%port='5901'%%''**.
 +
 +The **%%<os><type>%%** and **%%<cpu>%%** tags of the XML configuration file, determines what CPU is offered to the guest machine. Here it is the default choosed by ''virt-install'' on a Xeon host (Debian 10 Buster with libvirt 5.0):
 +
 +<code xml>
 +  <os>
 +    <type arch='x86_64' machine='pc'>hvm</type>
 +  </os>
 +  <cpu mode='host-model' check='partial'>
 +    <model fallback='allow'/>
 +  </cpu>
 +</code>
 +
 +You can use a **specific option** if you have an **Intel CPU**:
 +
 +<code xml>
 +  <cpu mode='custom' match='exact'>
 +    <model fallback='allow'>Skylake-Client</model>
 +  </cpu>
 +</code>
 +
 +or this one if you have an **AMD CPU**:
 +
 +<code xml>
 +  <cpu mode='custom' match='exact'>
 +    <model fallback='allow'>Opteron_G3</model>
 +  </cpu>
 +</code>
  
 ===== Libvirt and ACPI ===== ===== Libvirt and ACPI =====
doc/appunti/linux/sa/virtualization.txt · Last modified: 2019/08/28 12:09 by niccolo