-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[KVM] Allow passing the OS type machine for KVM XML domains through VM setting #11569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 ? |
Would it make sense to have a documentation PR - adding a note on the limitation with retrieving UUID on a Windows VM, and how it can be mitigated using this @nvazquez. |
@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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
|
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
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?