Uh oh!
There was an error while loading. Please reload this page.
kvm: Enable virtio drivers based on guest os display name - #3879
Conversation
svenvogel
commented
Feb 11, 2020
@weizhouapache can you explain it me a little bit better. if i understand it correctly if guestosmapping and host is null then we set guestOS.getDisplayName(). why display name? maybe i stand on the line 😕 |
weizhouapache
commented
Feb 11, 2020
@svenvogel however, in guest_os_hypervisor, there is no record for these guest oses on kvm when we start a vm with Debian 9, in StartCommand it shows so vm is started with ide disk and e1000 nic. with this change, "platformEmulator" will be set to same value as "os" |
yadvr
commented
Feb 13, 2020
Some testing required - @DaanHoogland@andrijapanicsb |
andrijapanicsb
commented
Feb 13, 2020
@blueorangutan package |
blueorangutan
commented
Feb 13, 2020
@andrijapanicsb a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 13, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-856 |
| } | ||
| if (guestOsMapping == null || host == null) { | ||
| to.setPlatformEmulator("Other"); | ||
| to.setPlatformEmulator(guestOS.getDisplayName()); |
There was a problem hiding this comment.
@ustcweizhou how about we check and fallback to "Other" in case guestOS.getDisplayName() is null or empty (unlikely but just to make code more defensive)?
yadvr
left a comment
There was a problem hiding this comment.
LGTM, left a minor remark. Did not test it.
yadvr
commented
Feb 14, 2020
@blueorangutan test |
blueorangutan
commented
Feb 14, 2020
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
commented
Feb 14, 2020
sorry @weizhouapache, i editted according to @rhtyd 's comment (kinda, revert if you want) |
weizhouapache
commented
Feb 14, 2020
@DaanHoogland thanks Daan ! |
yadvr
commented
Feb 17, 2020
@blueorangutan package |
blueorangutan
commented
Feb 17, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 17, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-887 |
DaanHoogland
commented
Feb 17, 2020
@blueorangutan test |
blueorangutan
commented
Feb 17, 2020
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Feb 18, 2020
Trillian test result (tid-1015)
|
yadvr
commented
Feb 19, 2020
Tests LGTM, the failures are known issue |
shwstppr
left a comment
There was a problem hiding this comment.
LGTM based on code changes and travis
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
Description
When we add new guest os, sometimes we missed the records in guest_os_hypervisor.
However, the guest disk model (virtio/ide) is determined by record in the table.
It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk.
To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor.
Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?