Hi, assuming I have a guest that just needs an amd64 CPU (generic Debian) and I want to provide it with the CPU setting that has the lowest overhead, what settings do I use for that (with qemu/linux-kvm)? virt-manager initially set it to <cpu mode='host-model' check='partial'/> but maybe host-passthrough is better? Or a generic amd64 model? Or…? The guests won’t care really. Live migration is not a criterium. In fact, if there is a domxml way to say “disable live migration for this VM”, so an admin does not accidentally attempt that, I’d also like to hear about that. Thanks in advance, //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: “[…]uhr.gz is a reason to install mksh on every system.”)
On Sat, Nov 14, 2026 at 12:12:52AM +0000, Thorsten Glaser wrote:
Hi,
assuming I have a guest that just needs an amd64 CPU (generic Debian) and I want to provide it with the CPU setting that has the lowest overhead, what settings do I use for that (with qemu/linux-kvm)?
virt-manager initially set it to <cpu mode='host-model' check='partial'/> but maybe host-passthrough is better? Or a generic amd64 model? Or…?
The guests won’t care really.
Live migration is not a criterium. In fact, if there is a domxml way to say “disable live migration for this VM”, so an admin does not accidentally attempt that, I’d also like to hear about that.
If you don't care about live migration, or save/restore to file (which is implemented in terms of live migration), then just go for host-passthrough. With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
On Mon, 16 Nov 2026, Daniel P. Berrangé wrote:
If you don't care about live migration, or save/restore to file (which is implemented in terms of live migration), then just go for host-passthrough.
Thank you! Went for… <cpu mode='host-passthrough' migratable='off'/> … which libvirt made into… <cpu mode='host-passthrough' check='none' migratable='off'/> … which sounds sensible. bye, //mirabilos -- 15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)
participants (2)
-
Daniel P. Berrangé -
Thorsten Glaser