| Summary: | virt-install failed with install SLES 11 PPC vm | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Dan Zheng <dzheng> |
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | berrange, crobinso, dyuan, gscrivan, gsun, juzhou, tzheng, xiaodwan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | ppc64le | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-16 17:54:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1401400 | ||
Thanks for the report. This is fixed upstream now
commit 03ded3e2bc4329d248f10c39e5885592cfb327dd (HEAD -> master)
Author: Cole Robinson <crobinso>
Date: Sun Jun 16 13:50:36 2019 -0400
urldetect: Fix sles11 ppc64 media detection
https://bugzilla.redhat.com/show_bug.cgi?id=1379653
|
Description of problem: virt-install failed when install SLES 11 PPC guest, the hvm kernel path dir is not right for SLES 11. Version-Release number of selected component (if applicable): virt-install-1.4.0-2.el7.noarch virt-manager-common-1.4.0-2.el7.noarch How reproducible: 100% Steps to Reproduce: virt-install --name sles11be_iso_virtio_virtio_iscsi -l /mnt/nfs/isos/linux/SLES-11-SP4-DVD-ppc64-GM-DVD1.iso --ram=2048 --vcpus=2 --hvm --debug --graphics vnc --accelerate --network=network:default,model=virtio --disk path=/dev/sdd,size=8,bus='virtio' --extra-args "serial console=tty0 console=hvc0 " --check path_in_use=off [Fri, 23 Sep 2016 16:44:34 virt-install 26472] DEBUG (cli:307) File "/usr/share/virt-manager/virt-install", line 996, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 990, in main start_install(guest, options) File "/usr/share/virt-manager/virt-install", line 716, in start_install fail(e, do_exit=False) File "/usr/share/virt-manager/virtinst/cli.py", line 307, in fail logging.debug("".join(traceback.format_stack())) [Fri, 23 Sep 2016 16:44:34 virt-install 26472] ERROR (cli:308) Couldn't find hvm kernel for SUSE tree. [Fri, 23 Sep 2016 16:44:34 virt-install 26472] DEBUG (cli:310) Traceback (most recent call last): File "/usr/share/virt-manager/virt-install", line 695, in start_install transient=options.transient) File "/usr/share/virt-manager/virtinst/guest.py", line 443, in start_install self._prepare_install(meter, dry) File "/usr/share/virt-manager/virtinst/guest.py", line 303, in _prepare_install self.installer.prepare(self, meter) File "/usr/share/virt-manager/virtinst/installer.py", line 200, in prepare self._prepare(guest, meter) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 220, in _prepare self._prepare_kernel_url(guest, fetcher) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 128, in _prepare_kernel_url kernel, initrd, args = store.acquireKernel(guest) File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 591, in acquireKernel {"distro": self.name, "type" : self.type}) RuntimeError: Couldn't find hvm kernel for SUSE tree. Actual results: Virt-install return failure. Expected results: VM can be installed successfully. Additional info: it is a workaround to insert below lines in /usr/share/virt-manager/virtinst/urlfetcher.py +998: + # Tested with SLES 11 for ppc64 + self._hvm_kernel_paths.append(("suseboot/linux64", + "suseboot/initrd64")) # Tested with SLES 12 for ppc64le self._hvm_kernel_paths.append(("boot/%s/linux" % self.arch, "boot/%s/initrd" % self.arch))