Bug 626277
Summary: | qemu-dm defunct when vif model misspelled | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Lei Wang <leiwang> | ||||||||||
Component: | xen | Assignee: | Michal Novotny <minovotn> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | low | ||||||||||||
Version: | 5.6 | CC: | areis, minovotn, mrezanin, mshao, xen-maint, yuzhang | ||||||||||
Target Milestone: | rc | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | xen-3.0.3-119.el5 | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2011-01-13 22:23:49 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Bug Depends On: | |||||||||||||
Bug Blocks: | 514500 | ||||||||||||
Attachments: |
|
Description
Lei Wang
2010-08-23 03:18:39 UTC
Created attachment 440285 [details]
Full xend.log
Please neglect the output at step 6, reattach the full xend.log.
Created attachment 440286 [details]
xm dmesg info in the host
Well, unfortunately there's failure with error "Unsupported NIC" error in the code. We could either fallback to the some other default NIC (maybe hypervisor default which is rtl8139 for case Xen) or we could disable the network device entirely. Falling back to netfront is also the option but I don't know what's the best idea to solve this one. Michal Created attachment 448672 [details]
Check for emulated NIC model
Hi,
this is the patch to whitelist supported NIC models. This patch is checking the NIC model for ioemu (emulated) NIC devices only since according to my testing devices defined as netfront (PV drivers) are fine to be run with invalid model since this variable is not being used there. Prior to my patch the qemu-dm died saying that the NIC model is not supported into the qemu-dm log file and now it's failing with the error message that the NIC model is not supported.
The patch has been tested on x86_64 RHEL-5 dom0 and it was working fine not to create the guest with invalid (unsupported) model of NIC device, i.e. not letting qemu-dm die immediately.
Michal
Created attachment 448687 [details]
Check for emulated NIC model v2
Differences between v1 and v2:
- Check for 'ioemu' type (or None value for type) has been implement instead
of checking against 'netfront' since only devices with type == 'ioemu' or
None device should be treated like emulated devices (other values defines
that the PV drivers are being used)
- Check only HVM guest vif devices since for PV guests it doesn't fail
according to my testing
- Implement handling of None values for model and type
- Allow None value of model, default 'rtl8139' will be used instead
- Treat None value for type as type='ioemu', i.e. check model if type is None
- Tested with model unspecified (None), unsupported model specified, supported
model specified and also PV guests and everything was working fine
Michal
Could reproduce the issue with: xen-3.0.3-115.el5 host:rhel5.5 x86_64 guest:rhel5.5 i386 With xen-3.0.3-119, when create hvm guest with type=ioemu or None and vif model misspelled, there report error message immediately, no qemu-dm process left: # xm cr rhel-5.5-32-hvm.conf Using config file "./rhel-5.5-32-hvm.conf". Error: NIC model rtl8130 is not supported According to the test result above, move to VERIFIED. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0031.html |