virt-install cant find mounted iso to use for install

Bug #1647628 reported by Erik Lönroth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

root@rd0029386:/tmp# lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

=== Context ====
I try to install a virtual desktop: ubuntu-16.04.1-desktop-amd64.iso

I mount it:

 sudo mount /tmp/ubuntu-16.04.1-desktop-amd64.iso /mnt2

Then i do:

virt-install -d \
--connect qemu:///system \
--name ubuntu0 \
--ram 2048 \
--disk pool=default,size=5,bus=virtio,sparse=false \
--network network=default,model=virtio \
--location /mnt2 \
--initrd-inject=/home/sssler/virtinstall/preeseed.cfg \
--extra-args="locale=en_US.utf8 console-setup/ask_detect=false keyboard-configuration/layoutcode=sv file=file:/preseed.cfg vga=788 quiet" \
--os-type=linux \
--os-variant=generic \
--arch x86_64 \
--virt-type kvm \
--video=vga \
--noreboot

==== Expected result ====
I would hope that it would install

=== Actual outcome ====
It fails with the following output
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (cli:256) Launched with command line: /usr/share/virt-manager/virt-install -d --connect qemu:///system --name ubuntu0 --ram 2048 --disk pool=default,size=5,bus=virtio,sparse=false --network network=default,model=virtio --location /mnt2 --initrd-inject=/home/sssler/virtinstall/preeseed.cfg --extra-args=locale=en_US.utf8 console-setup/ask_detect=false keyboard-configuration/layoutcode=sv file=file:/preseed.cfg vga=788 quiet --os-type=linux --os-variant=generic --arch x86_64 --virt-type kvm --video=vga --noreboot
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (cli:266) Requesting libvirt URI qemu:///system
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (cli:270) Received libvirt URI qemu:///system
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (virt-install:357) Requesting virt method 'default', hv type 'kvm'.
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (virt-install:576) Received virt method 'kvm'
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (virt-install:577) Hypervisor name is 'hvm'
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (virt-install:269) Distilled --network options: ['network=default,model=virtio']
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (virt-install:182) Distilled --disk options: ['pool=default,size=5,bus=virtio,sparse=false']
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (devicedisk:391) Creating volume 'ubuntu0.qcow2' on pool 'default'
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (devicedisk:513) disk.set_vol_install: name=ubuntu0.qcow2 poolxml=
<pool type='dir'>
  <name>default</name>
  <uuid>574fd4a7-d4aa-4a17-a132-4090ebd9b0d5</uuid>
  <capacity unit='bytes'>217529507840</capacity>
  <allocation unit='bytes'>6729175040</allocation>
  <available unit='bytes'>210800332800</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0711</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (distroinstaller:411) DistroInstaller location is a network source.
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:56) Using scratchdir=/var/lib/libvirt/boot
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:463) Finding distro store for location=/mnt2
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/Fedora
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/current/images/MANIFEST
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/daily/MANIFEST
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/current/images/MANIFEST
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/install/netboot/version.info
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/SL
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/CentOS
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/VERSION
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:89) Fetching URI: /mnt2/.disk/info
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:1220) Regex didn't match, not a ALT Linux distro
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/Server
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/Client
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/RedHat
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/images/pxeboot/vmlinuz
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/images/boot.iso
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/boot/boot.iso
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/current/images/netboot/mini.iso
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/install/images/boot.iso
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (cli:305) File "/usr/share/virt-manager/virt-install", line 1063, in <module>
    sys.exit(main())
  File "/usr/share/virt-manager/virt-install", line 1048, in main
    guest = build_guest_instance(conn, options, parsermap)
  File "/usr/share/virt-manager/virt-install", line 614, in build_guest_instance
    options.distro_variant)
  File "/usr/share/virt-manager/virt-install", line 403, in set_install_media
    fail(_("Error validating install location: %s") % str(e))
  File "/usr/share/virt-manager/virtinst/cli.py", line 305, in fail
    logging.debug("".join(traceback.format_stack()))

[tis, 06 dec 2016 10:23:40 virt-install 29253] ERROR (cli:306) Error validating install location: Could not find an installable distribution at '/mnt2'

The location must be the root directory of an install tree.
See virt-install man page for various distro examples.
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (cli:308)
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 396, in set_install_media
    guest.installer.check_location(guest)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 489, in check_location
    ignore = self._get_store(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 346, in _get_store
    self._cached_store = urlfetcher.getDistroStore(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 514, in getDistroStore
    (fetcher.location, extramsg)))
ValueError: Could not find an installable distribution at '/mnt2'

The location must be the root directory of an install tree.
See virt-install man page for various distro examples.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: virtinst 1:1.3.2-3ubuntu1.16.04.2
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Dec 6 10:18:39 2016
InstallationDate: Installed on 2016-11-28 (7 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
PackageArchitecture: all
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Erik Lönroth (erik-lonroth) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.