Bug 1379653 - virt-install failed with install SLES 11 PPC vm
Summary: virt-install failed with install SLES 11 PPC vm
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: ppc64le
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1401400
TreeView+ depends on / blocked
 
Reported: 2016-09-27 10:46 UTC by Dan Zheng
Modified: 2019-06-16 17:54 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-16 17:54:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Dan Zheng 2016-09-27 10:46:28 UTC
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))

Comment 2 Cole Robinson 2019-06-16 17:54:05 UTC
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


Note You need to log in before you can comment on or make changes to this bug.