[Pkg-libvirt-maintainers] Bug#900343: Couldn't find hvm kernel for Ubuntu tree

Patrick Brunswyck brunswyck at gmail.com
Tue May 29 11:50:22 BST 2018


Package: virtinst
Version: 1:1.4.3-1

patrick at lab:~$ sudo apt-cache policy virtinst
virtinst:
  Installed: 1:1.4.3-1
  Candidate: 1:1.4.3-1
  Version table:
 *** 1:1.4.3-1 500
        500 http://ftp.be.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status


I am unable to install an ubuntu virtual machine with the command
virt-install. Using this same command to create a Debian VM gives no errors
and is successful.

I have also tried using the 16.04 LTS version but that resulted in the same
error
Couldn't find hvm kernel for Ubuntu tree

~$ sudo virt-install --hvm --virt-type=kvm --name gns3server --os-variant
ubuntu16.04 --location
/mnt/store/kvm/images/ubuntu-18.04-live-server-amd64.iso --memory 24576
--disk pool=default,size=150,format=qcow2 --vcpus=6,maxvcpus=12 --cpu host
--network=network=br0 --extra-args console=ttyS0 --graphics none --debug
[sudo] password for patrick:
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (cli:264) Launched with
command line: /usr/share/virt-manager/virt-install --hvm --virt-type=kvm
--name gns3server --os-variant ubuntu16.04 --location
/mnt/store/kvm/images/ubuntu-18.04-live-server-amd64.iso --memory 24576
--disk pool=default,size=150,format=qcow2 --vcpus=6,maxvcpus=12 --cpu host
--network=network=br0 --extra-args console=ttyS0 --graphics none --debug
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (cli:278) Requesting
libvirt URI default
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (cli:281) Received
libvirt URI qemu:///system
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (virt-install:358)
Requesting virt method 'hvm', hv type 'kvm'.
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (virt-install:583)
Received virt method 'kvm'
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (virt-install:584)
Hypervisor name is 'hvm'
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (virt-install:270)
Distilled --network options: ['network=br0']
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (virt-install:183)
Distilled --disk options: ['pool=default,size=150,format=qcow2']
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (devicedisk:401)
Creating volume 'gns3server-2.qcow2' on pool 'default'
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (devicedisk:526)
disk.set_vol_install: name=gns3server-2.qcow2 poolxml=
<pool type='dir'>
  <name>default</name>
  <uuid>563fdcba-158d-432e-8144-8bb8ae937b7e</uuid>
  <capacity unit='bytes'>11904302391296</capacity>
  <allocation unit='bytes'>253962735616</allocation>
  <available unit='bytes'>11650339655680</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0755</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (guest:251) Setting
Guest.os_variant to 'ubuntu16.04'
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (virt-install:697)
Guest.has_install_phase: True

Starting install...
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:57) Using
scratchdir=/var/lib/libvirt/boot
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:304)
Preparing mount at /var/lib/libvirt/boot/virtinstmnt.VdEDeO
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:314) mount
cmd: ['/bin/mount', '-o', 'ro,loop',
'/mnt/store/kvm/images/ubuntu-18.04-live-server-amd64.iso',
'/var/lib/libvirt/boot/virtinstmnt.VdEDeO']
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:479)
Finding distro store for
location=/mnt/store/kvm/images/ubuntu-18.04-live-server-amd64.iso
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:498)
variant=ubuntu16.04 has distro=ubuntu, looking for matching distro store to
prioritize
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:505)
Prioritizing distro store=<class 'virtinst.urlfetcher.UbuntuDistro'>
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:1113) Found
treearch=amd64 in uri
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:145)
hasFile(/var/lib/libvirt/boot/virtinstmnt.VdEDeO/current/images/MANIFEST)
returning False
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:145)
hasFile(/var/lib/libvirt/boot/virtinstmnt.VdEDeO/daily/MANIFEST) returning
False
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:145)
hasFile(/var/lib/libvirt/boot/virtinstmnt.VdEDeO/.disk/info) returning True
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:90)
Fetching URI: /var/lib/libvirt/boot/virtinstmnt.VdEDeO/.disk/info
Retrieving file info...
                                                         |   66 B
00:00:00
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:519)
Detected distro name=Ubuntu osvariant=None
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:145)
hasFile(/var/lib/libvirt/boot/virtinstmnt.VdEDeO/linux) returning False
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (urlfetcher:328)
Cleaning up mount at /var/lib/libvirt/boot/virtinstmnt.VdEDeO
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (cli:316)   File
"/usr/share/virt-manager/virt-install", line 1008, in <module>
    sys.exit(main())
  File "/usr/share/virt-manager/virt-install", line 1002, in main
    start_install(guest, options)
  File "/usr/share/virt-manager/virt-install", line 728, in start_install
    fail(e, do_exit=False)
  File "/usr/share/virt-manager/virtinst/cli.py", line 316, in fail
    logging.debug("".join(traceback.format_stack()))

[Tue, 29 May 2018 10:06:38 virt-install 2545] ERROR (cli:317) Couldn't find
hvm kernel for Ubuntu tree.
[Tue, 29 May 2018 10:06:38 virt-install 2545] DEBUG (cli:319)
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 707, in start_install
    transient=options.transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 480, in
start_install
    self._prepare_install(meter, dry)
  File "/usr/share/virt-manager/virtinst/guest.py", line 313, 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 598, in
acquireKernel
    {"distro": self.name, "type": self.type})
RuntimeError: Couldn't find hvm kernel for Ubuntu tree.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-maintainers/attachments/20180529/f2863a8c/attachment.html>


More information about the Pkg-libvirt-maintainers mailing list