[KVM] Allow passing the OS type machine for KVM XML domains through VM setting#11569
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11569 +/- ##
============================================
- Coverage 17.36% 17.36% -0.01%
+ Complexity 15237 15236 -1
============================================
Files 5888 5888
Lines 525741 525743 +2
Branches 64164 64165 +1
============================================
- Hits 91274 91270 -4
- Misses 424167 424172 +5
- Partials 10300 10301 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
...ypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
Outdated
Show resolved
Hide resolved
...ypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
Outdated
Show resolved
Hide resolved
cd9929f to
019c925
Compare
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
019c925 to
7140bed
Compare
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 14836 |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14837 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
@nvazquez Can it be set by regular user ? |
|
@nvazquez |
|
Thanks @Pearl1594 I'll create a doc PR for that. @weizhouapache as discussed offline let's keep it targeted to main branch to avoid feature loss on upgrade to 4.21 |
|
@nvazquez is this worth raising the PR for 4.20 branch, could you check & change the base branch? |
yadvr
left a comment
There was a problem hiding this comment.
LGTM; ideally the machine type could be detected automatically though?
|
[SF] Trillian test result (tid-14206)
|
|
This looks like it will fix my issue with booting a Juniper VSRX on cloudstack, but I think an option to set other parameters on the underlying qemu virtual machine would be more sustainable. Specifically, you can set |
@rohityadavcloud my opinion is, unless very necessary, let's not introduce new api params, api responses, settings or db changes in minor versions. |
|
Hi @jmgsky thanks for your input. I think that can be addressed on a separate PR. |
|
@nvazquez - I'm actually not sure if that's right or not. I was trying to do it with |
|
@jmgsky thanks, the extraconfig will attempt to append the snippet as well on the XML domain, should have similar results than editing the XML directly. I couldn't find it mentioned on: https://libvirt.org/formatdomain.html, however checking the example you mentioned can you try the following? |
|
Hi @harikrishna-patnala @Pearl1594 I have created the documentation PR: apache/cloudstack-documentation#559 |
| } | ||
| } | ||
| guest.setIothreads(customParams.containsKey(VmDetailConstants.IOTHREADS)); | ||
| if (customParams.containsKey(VmDetailConstants.KVM_GUEST_OS_MACHINE_TYPE)) { |
There was a problem hiding this comment.
can this be set by every user ?
Description
This PR allows passing the OS type machine for KVM XML domains through the VM setting with name:
kvm.guest.os.machine.type.Fixes: #11512
Documentation PR: apache/cloudstack-documentation#559
Specifically, this allows fixing UUID retrieval of Windows VMs on Ubuntu 24 when passing the machine type = 'pc-i440fx-8.0' (see #11512 and https://gitlab.com/libvirt/libvirt/-/issues/807#note_2724045702)
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested on Ubuntu 24 KVM host - deploying Windows VM and retrieving the UUID through the wmic command
How did you try to break this feature and the system with this change?