virt-install cant find mounted iso to use for install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
root@rd0029386:
Description: Ubuntu 16.04.1 LTS
Release: 16.04
=== Context ====
I try to install a virtual desktop: ubuntu-
I mount it:
sudo mount /tmp/ubuntu-
Then i do:
virt-install -d \
--connect qemu:///system \
--name ubuntu0 \
--ram 2048 \
--disk pool=default,
--network network=
--location /mnt2 \
--initrd-
--extra-
--os-type=linux \
--os-variant=
--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/
[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=
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (virt-install:182) Distilled --disk options: ['pool=
[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_
<pool type='dir'>
<name>
<uuid>
<capacity unit='bytes'
<allocation unit='bytes'
<available unit='bytes'
<source>
</source>
<target>
<path>
<permissions>
<
<
<
</permissions>
</target>
</pool>
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (distroinstalle
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:56) Using scratchdir=
[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/
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/daily/
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/current/
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/install/
[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/
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/images/
[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/
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (urlfetcher:268) local hasFile: Couldn't find /mnt2/install/
[tis, 06 dec 2016 10:23:40 virt-install 29253] DEBUG (cli:305) File "/usr/share/
sys.
File "/usr/share/
guest = build_guest_
File "/usr/share/
options.
File "/usr/share/
fail(_("Error validating install location: %s") % str(e))
File "/usr/share/
logging.
[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/
guest.
File "/usr/share/
ignore = self._get_
File "/usr/share/
self.
File "/usr/share/
(fetcher.
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-
ProcVersionSign
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=
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.
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)