virt-Install reports Could not find an installable distribution at '/images/ubuntu-16.04-server-ppc64el.iso'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Do |
Invalid
|
Undecided
|
Unassigned |
Bug Description
virt-install --debug \
--name=
--controller type=scsi,
--graphics none \
--console pty,target_
--disk pool=virtimages
--vcpus=2 \
--ram=2048 \
--os-type=linux \
--os-variant ubuntu16.04 \
--network bridge=vlan91 \
--location=
--boot cdrom,hd,
-x "console=ttyS0"
===
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (guest:241) Setting Guest.os_variant to 'ubuntu16.04'
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (virt-install:731) Guest.has_
Starting install...
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:56) Using scratchdir=
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:296) Preparing mount at /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:306) mount cmd: ['/bin/mount', '-o', 'ro,loop', '/images/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:463) Finding distro store for location=
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:485) Prioritizing distro store=<class 'virtinst.
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:00 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:89) Fetching URI: /var/lib/
Retrieving file info... | 69 B 00:00:00
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:1220) Regex didn't match, not a ALT Linux distro
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (urlfetcher:320) Cleaning up mount at /var/lib/
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] DEBUG (cli:305) File "/usr/share/
sys.
File "/usr/share/
start_
File "/usr/share/
fail(e, do_exit=False)
File "/usr/share/
logging.
[Mon, 06 Jun 2016 15:47:01 virt-install 6438] ERROR (cli:306) Could not find an installable distribution at '/images/
From Canonical internal support team:
After a bit of investigating (including my own trial and error) I believe this is working as intended. I think the key take away here is we need to define the purpose of the '--location' option.
"Distribution tree installation source" <--
You'll notice in the debug information that after mounting the iso it's trying to reach a MANIFEST, which it's not going to find in the directory structure of the .iso... but it will find via a proper distribution tree.
[Tue, 14 Jun 2016 17:59:06 virt-install 22411] DEBUG (urlfetcher:306) mount cmd: ['/bin/mount', '-o', 'ro,loop', '/media/ external/ passport/ iso/trusty- server- amd64.iso' , '/var/lib/ libvirt/ boot/virtinstmn t.hgKkVy' ] /media/ external/ passport/ iso/trusty- server- amd64.iso urlfetcher. UbuntuDistro' > libvirt/ boot/virtinstmn t.hgKkVy/ current/ images/ MANIFEST
[Tue, 14 Jun 2016 17:59:06 virt-install 22411] DEBUG (urlfetcher:463) Finding distro store for location=
[Tue, 14 Jun 2016 17:59:06 virt-install 22411] DEBUG (urlfetcher:485) Prioritizing distro store=<class 'virtinst.
[Tue, 14 Jun 2016 17:59:06 virt-install 22411] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/
Now, with that information handy I was able to get your configuration to work two different ways.
1. By dropping the kernel arguments and options, and changing '--location' to '--cdrom' You don't have access to pass arguments to the the kernel/initrd via the install ISO. (AFAIK)
2. You could keep your configuration as is, and change --location to http:// us.archive. ubuntu. com/ubuntu/ dists/xenial/ main/installer- amd64/