Open tbals opened 1 year ago
without setting the <cpu>
feature in main.tf, the deployed VM looks like:
<cpu mode='custom' match='exact' check='none'>
<model fallback='forbid'>qemu64</model>
</cpu>
But with this CPU setting a live migration is not possible:
# virsh migrate --live u22-migtest qemu+ssh://dest-system/system
error: operation failed: guest CPU doesn't match specification: extra features: vmx
Hi, I think it is just not implemented and it's a possible feature.
System Information
Linux distribution
Ubuntu 20.04.6 LTS
Terraform version
Terraform v1.4.6
Provider and libvirt versions
dmacvicar/libvirt v0.7.1
Checklist
[ x] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
Description of Issue/Question
Setup
(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)
Additional information:
For enable libvirt live migration I need to set a specific CPU model in XML definition file.
Live migration dont work with "Host passthrough", you need to set a Named model. In my case it looks like:
Also a specific os machine type is needed for live migration:
I could not find any documentation for setting a CPU model and nothing for set an OS machine type. Is there any way to do this?
Documentation: https://qemu-project.gitlab.io/qemu/system/qemu-cpu-models.html