Difference between revisions of "Virtualization"
Jump to navigation
Jump to search
↑ https://gitlab.com/libvirt/libvirt/-/issues/227#note_705948269
Chatcannon (talk | contribs) (Tip for running 64k guests on a 4k host) |
Chatcannon (talk | contribs) m (→Running 64k guests on 4k hosts: Add reference to describe libvirt XML section) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
<nowiki>qemu-system-ppc64: Can't support 64 kiB guest pages with 4 kiB host pages with this KVM implementation</nowiki> | <nowiki>qemu-system-ppc64: Can't support 64 kiB guest pages with 4 kiB host pages with this KVM implementation</nowiki> | ||
− | There is an easy workaround for this. If running QEMU directly, add the argument <code>-machine pseries,cap-hpt-max-page-size=4096</code>. If running QEMU via libvirt, add the following section to the guest's libvirt XML (via <code>virsh edit [guest name]</code> or the XML tab in virt-manager): | + | There is an easy workaround for this. If running QEMU directly, add the argument <code>-machine pseries,cap-hpt-max-page-size=4096</code>. If running QEMU via libvirt, add the following section<ref>https://gitlab.com/libvirt/libvirt/-/issues/227#note_705948269</ref> to the guest's libvirt XML (via <code>virsh edit [guest name]</code> or the XML tab in virt-manager): |
<nowiki> | <nowiki> | ||
<features> | <features> | ||
Line 13: | Line 13: | ||
</hpt> | </hpt> | ||
</features></nowiki> | </features></nowiki> | ||
+ | |||
+ | ==Further Information== | ||
+ | |||
+ | * [https://docs.voidlinux-ppc.org/configuration/virtualization.html VoidLinux PPC documentation on Virtualization] | ||
+ | * [https://wiki.qemu.org/Documentation/Platforms/POWER QEMU documentation about POWER guests] |
Revision as of 13:41, 8 November 2021
Running 64k guests on 4k hosts
When trying to start a VM on a host running with 4k pages, you might see the following error message:
qemu-system-ppc64: Can't support 64 kiB guest pages with 4 kiB host pages with this KVM implementation
There is an easy workaround for this. If running QEMU directly, add the argument -machine pseries,cap-hpt-max-page-size=4096
. If running QEMU via libvirt, add the following section[1] to the guest's libvirt XML (via virsh edit [guest name]
or the XML tab in virt-manager):
<features> <hpt> <maxpagesize unit='KiB'>4</maxpagesize> </hpt> </features>