Skip to content

Commit

Permalink
Move machine type to Q35.
Browse files Browse the repository at this point in the history
I think it's time, and it'll enable us to add PCIE support.
Later, hopefully we'll be able to do device-passthrough.
I've added the following devices, which will be later used:
pcie-root
dmi-to-pci-bridge
pci-bridge
pcie-expander-bus

I've also took the opportunity to get rid of the video device.
It's not needed.

Lastly, I've explicitly disabled the PM S3 and S4 functions.
I kinda remember we've had them turned off, but anyway, added explicitly.
  • Loading branch information
Yaniv Kaul committed Feb 27, 2018
1 parent 802e6d1 commit 7cde684
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions lago/providers/libvirt/templates/dom_template-base.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,31 @@
<suspend-to-mem enabled='no'/>
</pm>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<type arch='x86_64' machine='q35'>hvm</type>
<bootmenu enable='no'/>
<bios useserial='no'/>
</os>
<features>
<acpi/>
<apic/>
<apic eoi='on'/>
<pae/>
<vmport state='off'/>
</features>
<pm>
<suspend-to-disk enabled='no'/>
<suspend-to-mem enabled='yes'/>
</pm>
<devices>
<emulator>{{ qemu_kvm }}</emulator>
<memballoon model='none'/>
<controller type='usb' model='none'>
<controller type='usb' model='none'/>
<controller type='pci' index='0' model='pcie-root'/>
<controller type='pci' index='1' model='dmi-to-pci-bridge'/>
<controller type='pci' index='2' model='pci-bridge'/>
<controller type='pci' index='3' model='pcie-expander-bus'>
<target>
<node>0</node>
</target>
</controller>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
Expand All @@ -39,14 +50,8 @@
<console type='pty'>
<target type='virtio' port='0'/>
</console>
<video>
<model type='cirrus' vram='16384' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
</devices>
<clock offset='utc'>
<timer name='kvmclock'>
</timer>
<timer name='kvmclock'/>
</clock>
</domain>

0 comments on commit 7cde684

Please sign in to comment.