Bug 919420

Summary: virt-manager: installation of vm on pp64le: Couldn't find hvm kernel for SUSE tree.
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Pluskal <mpluskal>
Component: BasesystemAssignee: Charles Arnold <carnold>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dvaleev
Version: 201502*   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: virt-manager --debug

Description Martin Pluskal 2015-02-25 08:50:51 UTC
Created attachment 624426 [details]
virt-manager --debug

When trying to install ppc64le powerkvm guest from virt-manager (factory, connected to hypervisor via ssh, following error occurs:
Unable to complete install: 'Couldn't find hvm kernel for SUSE tree.'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1958, in do_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 411, in start_install
    self._prepare_install(meter, dry)
  File "/usr/share/virt-manager/virtinst/guest.py", line 284, 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 463, in _prepare
    self._prepare_kernel_url(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 372, in _prepare_kernel_url
    kernel, initrd, args = store.acquireKernel(guest)
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 543, in acquireKernel
    {"distro": self.name, "type" : self.type})
RuntimeError: Couldn't find hvm kernel for SUSE tree.
Comment 1 Martin Pluskal 2015-02-25 09:17:25 UTC
hmm 
# virt-install --location http://download.suse.de/install/SLP/SLE-12-Server-GM/ppc64le/DVD1/ --name sles12-install --memory 1024 --disk size=10 --graphics vnc      

Starting install...
ERROR    Couldn't find hvm kernel for SUSE tree.

I am not sure if issue is in virt-manager (opensuse/sles) or poverkvm (ibm)
Comment 2 Dinar Valeev 2015-02-25 09:20:18 UTC
virt-manager is not supported with PowerKVM distro. Use Kimchi instead
Comment 3 Martin Pluskal 2015-02-25 09:22:56 UTC
See comment#2, is virt-install provided with powerkvm also not supposed to work?
Comment 4 Dinar Valeev 2015-02-25 10:53:09 UTC
You can run virt-install on the host. I haven't tried location though.
Comment 5 Charles Arnold 2015-02-25 15:09:36 UTC
(In reply to Martin Pluskal from comment #1)
> hmm 
> # virt-install --location
> http://download.suse.de/install/SLP/SLE-12-Server-GM/ppc64le/DVD1/ --name
> sles12-install --memory 1024 --disk size=10 --graphics vnc      
> 
> Starting install...
> ERROR    Couldn't find hvm kernel for SUSE tree.
> 
> I am not sure if issue is in virt-manager (opensuse/sles) or poverkvm (ibm)

I haven't worked on a ppc64le machine before so this is just a guess
but have you tried passing '--os-variant sles12' to see if that
makes a difference?
Comment 6 Martin Pluskal 2015-02-25 15:33:10 UTC
(In reply to Charles Arnold from comment #5)
> I haven't worked on a ppc64le machine before so this is just a guess
> but have you tried passing '--os-variant sles12' to see if that
> makes a difference?

Unfortunately it does not help:
[root@ps64vt1060 ~]# virt-install --location http://download.suse.de/install/SLP/SLE-12-Server-GM/ppc64le/DVD1/ --name sles12-install --memory 1024 --disk size=10 --graphics vnc  --os-variant sles12
ERROR    Distro 'sles12' does not exist in our dictionary

So only viable installation now is to use bundled kimchi.
Comment 7 Charles Arnold 2015-09-22 17:01:47 UTC
Factory is now updated with a virt-manager containing a patch that
addresses this problem.