[Bug 1634304] Re: Unable to complete install: 'Couldn't find hvm kernel for Ubuntu tree

Dave Chiluk 1634304 at bugs.launchpad.net
Tue Nov 29 23:41:27 UTC 2016


This patch applies to both yakkety and zesty.

** Description changed:

  [Impact]
  
-  * Users are unable to virt-install from xenial and newer isos.
+  * Users are unable to virt-install using xenial and newer isos.
  
  [Test Case]
- 
-  #!/bin/bash
+  #!/bin/bash
  sudo virt-install \
  --connect qemu:///system \
  --virt-type kvm \
  --name labVM2 \
  --disk size=10 \
  --ram 2048 \
  --vcpus=2 \
  --graphics vnc \
  -l /home/student19s/ubuntu-16.04.1-server-amd64.iso \
  --os-variant ubuntu16.04
  
+ * Bad output 
+ WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
+ WARNING  No console to launch for the guest, defaulting to --wait -1
+ 
+ Starting install...
+ Retrieving file version.info...                                                                     |   58 B  00:00:00     
+ ERROR    Couldn't find hvm kernel for Ubuntu tree.
+ Domain installation does not appear to have been successful.
+ If it was, you can restart your domain by running:
+   virsh --connect qemu:///system start labVM2
+ otherwise, please restart your installation.
+ 
+ * Expected output 
+ Starting install...
+ Retrieving file version.info...                                                                  |   58 B  00:00:00     
+ Retrieving file linux...                                                                            | 6.7 MB  00:00:00     
+ Retrieving file initrd.gz...                                                                        |  36 MB  00:00:00     
+ Allocating 'labVM2-2.qcow2'                                                                         |  10 GB  00:00:00     
+ Creating domain...                                                                                  |    0 B  00:00:00     
+ Domain installation still in progress. Waiting for installation to complete.
+ 
  [Regression Potential]
  
-  * discussion of how regressions are most likely to manifest as a result
- of this change.
+  * Patch is accepted into upstream virt-install
  
-  * It is assumed that any SRU candidate patch is well-tested before
-    upload and has a low overall risk of regression, but it's important
-    to make the effort to think about what ''could'' happen in the
-    event of a regression.
- 
-  * This both shows the SRU team that the risks have been considered,
-    and provides guidance to testers in regression-testing the SRU.
+  * I have run virt-install against both iso's and netinstall trees
+ *(which previously worked and now continue to work).
  
  [Other Info]
-  
-  * Anything else you think is useful to include
-  * Anticipate questions from users, SRU, +1 maintenance, security teams and the Technical Board
-  * and address these questions in advance
  
  
  +++++++++++++++++++++++++ Original Description ++++++++++++++++++++++++
  I am trying to create a new virtual machine with Virtual Machine Manager but keep receiving this error "Unable to complete install: 'Couldn't find hvm kernel for Ubuntu tree". The OS guest I am trying to install on the VM is Ubuntu server 14.04.4, 64 bit. The host OS (where the virtual manager is installed) is KUbuntu 16.04 .
  
  Below is the full message that appears after completing the 5-steps VM
  creation process and clicking on finish on virt-manager:
  
  Unable to complete install: 'Couldn't find hvm kernel for Ubuntu tree.'
  
  Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
      callback(asyncjob, *args, **kwargs)
    File "/usr/share/virt-manager/virtManager/create.py", line 2277, in _do_async_install
      guest.start_install(meter=meter)
    File "/usr/share/virt-manager/virtinst/guest.py", line 482, 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 451, in _prepare
      self._prepare_kernel_url(guest, fetcher)
    File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 360, in _prepare_kernel_url
      kernel, initrd, args = store.acquireKernel(guest)
    File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 577, in acquireKernel
      {"distro": self.name, "type" : self.type})
  RuntimeError: Couldn't find hvm kernel for Ubuntu tree.
  
  And the package data are
  
  $ dpkg -s virt-manager
  Package: virt-manager
  Status: install ok installed
  Priority: optional
  Section: admin
  Installed-Size: 7285
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
  Architecture: all
  Version: 1:1.3.2-3ubuntu1.16.04.2
  Depends: dconf-gsettings-backend | gsettings-backend, python:any (>= 2.6.6-7~), python2.7:any, python-gi, python-gi-cairo, python-dbus, python-requests, librsvg2-common, python-libvirt (>= 0.7.1), gir1.2-appindicator3-0.1, gir1.2-libvirt-glib-1.0, gir1.2-gtk-vnc-2.0, gir1.2-gtk-3.0 (>= 3.10), gir1.2-vte-2.91, gir1.2-libosinfo-1.0, virtinst (>= 1:1.3.2-3ubuntu1.16.04.2), gconf2
  Recommends: libvirt-bin (>= 1.2.7), gnome-icon-theme, gir1.2-spice-client-gtk-3.0
  Suggests: virt-viewer, ssh-askpass, gnome-keyring, python-gnomekeyring, python-guestfs
  Description: desktop application for managing virtual machines
   It presents a summary view of running domains and their live performance &
   resource utilization statistics. A detailed view presents graphs showing
   performance & utilization over time. Ultimately it will allow creation of new
   domains, and configuration & adjustment of a domain's resource allocation &
   virtual hardware.  Finally an embedded VNC client viewer presents a full
   graphical console to the guest domain.
   .
   NOTE: the GUI is still considered experimental.
  Homepage: http://virt-manager.et.redhat.com/
  Original-Maintainer: Debian Libvirt Maintainers <pkg-libvirt-maintainers at lists.alioth.debian.org>
  
  According to this discussion http://askubuntu.com/a/815056 on
  Askubuntu.com, it is matter of an issue with the installer (virt-install
  looking for i386 installer but should be looking for amd64 installer).
  The bug is reportedly fixed on upstream, but not available yet for the
  packages.

** Patch added: "lp1634304.yakkety.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/1634304/+attachment/4784946/+files/lp1634304.yakkety.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1634304

Title:
  Unable to complete install: 'Couldn't find hvm kernel for Ubuntu tree

Status in virt-manager package in Ubuntu:
  Confirmed

Bug description:
  [Impact]

   * Users are unable to virt-install using xenial and newer isos.

  [Test Case]
   #!/bin/bash
  sudo virt-install \
  --connect qemu:///system \
  --virt-type kvm \
  --name labVM2 \
  --disk size=10 \
  --ram 2048 \
  --vcpus=2 \
  --graphics vnc \
  -l /home/student19s/ubuntu-16.04.1-server-amd64.iso \
  --os-variant ubuntu16.04

  * Bad output 
  WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
  WARNING  No console to launch for the guest, defaulting to --wait -1

  Starting install...
  Retrieving file version.info...                                                                     |   58 B  00:00:00     
  ERROR    Couldn't find hvm kernel for Ubuntu tree.
  Domain installation does not appear to have been successful.
  If it was, you can restart your domain by running:
    virsh --connect qemu:///system start labVM2
  otherwise, please restart your installation.

  * Expected output 
  Starting install...
  Retrieving file version.info...                                                                  |   58 B  00:00:00     
  Retrieving file linux...                                                                            | 6.7 MB  00:00:00     
  Retrieving file initrd.gz...                                                                        |  36 MB  00:00:00     
  Allocating 'labVM2-2.qcow2'                                                                         |  10 GB  00:00:00     
  Creating domain...                                                                                  |    0 B  00:00:00     
  Domain installation still in progress. Waiting for installation to complete.

  [Regression Potential]

   * Patch is accepted into upstream virt-install

   * I have run virt-install against both iso's and netinstall trees
  *(which previously worked and now continue to work).

  [Other Info]

  
  +++++++++++++++++++++++++ Original Description ++++++++++++++++++++++++
  I am trying to create a new virtual machine with Virtual Machine Manager but keep receiving this error "Unable to complete install: 'Couldn't find hvm kernel for Ubuntu tree". The OS guest I am trying to install on the VM is Ubuntu server 14.04.4, 64 bit. The host OS (where the virtual manager is installed) is KUbuntu 16.04 .

  Below is the full message that appears after completing the 5-steps VM
  creation process and clicking on finish on virt-manager:

  Unable to complete install: 'Couldn't find hvm kernel for Ubuntu
  tree.'

  Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
      callback(asyncjob, *args, **kwargs)
    File "/usr/share/virt-manager/virtManager/create.py", line 2277, in _do_async_install
      guest.start_install(meter=meter)
    File "/usr/share/virt-manager/virtinst/guest.py", line 482, 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 451, in _prepare
      self._prepare_kernel_url(guest, fetcher)
    File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 360, in _prepare_kernel_url
      kernel, initrd, args = store.acquireKernel(guest)
    File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 577, in acquireKernel
      {"distro": self.name, "type" : self.type})
  RuntimeError: Couldn't find hvm kernel for Ubuntu tree.

  And the package data are

  $ dpkg -s virt-manager
  Package: virt-manager
  Status: install ok installed
  Priority: optional
  Section: admin
  Installed-Size: 7285
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
  Architecture: all
  Version: 1:1.3.2-3ubuntu1.16.04.2
  Depends: dconf-gsettings-backend | gsettings-backend, python:any (>= 2.6.6-7~), python2.7:any, python-gi, python-gi-cairo, python-dbus, python-requests, librsvg2-common, python-libvirt (>= 0.7.1), gir1.2-appindicator3-0.1, gir1.2-libvirt-glib-1.0, gir1.2-gtk-vnc-2.0, gir1.2-gtk-3.0 (>= 3.10), gir1.2-vte-2.91, gir1.2-libosinfo-1.0, virtinst (>= 1:1.3.2-3ubuntu1.16.04.2), gconf2
  Recommends: libvirt-bin (>= 1.2.7), gnome-icon-theme, gir1.2-spice-client-gtk-3.0
  Suggests: virt-viewer, ssh-askpass, gnome-keyring, python-gnomekeyring, python-guestfs
  Description: desktop application for managing virtual machines
   It presents a summary view of running domains and their live performance &
   resource utilization statistics. A detailed view presents graphs showing
   performance & utilization over time. Ultimately it will allow creation of new
   domains, and configuration & adjustment of a domain's resource allocation &
   virtual hardware.  Finally an embedded VNC client viewer presents a full
   graphical console to the guest domain.
   .
   NOTE: the GUI is still considered experimental.
  Homepage: http://virt-manager.et.redhat.com/
  Original-Maintainer: Debian Libvirt Maintainers <pkg-libvirt-maintainers at lists.alioth.debian.org>

  According to this discussion http://askubuntu.com/a/815056 on
  Askubuntu.com, it is matter of an issue with the installer (virt-
  install looking for i386 installer but should be looking for amd64
  installer). The bug is reportedly fixed on upstream, but not available
  yet for the packages.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/1634304/+subscriptions



More information about the Ubuntu-sponsors mailing list