Bug 1576473 - Add support on virt-install for Ubuntu 18 ( Bionic Beaver )
Summary: Add support on virt-install for Ubuntu 18 ( Bionic Beaver )
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: Unspecified
OS: All
unspecified
low
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-09 14:38 UTC by mm8778
Modified: 2018-10-03 23:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-03 23:35:58 UTC


Attachments (Terms of Use)

Description mm8778 2018-05-09 14:38:52 UTC
Description of problem:

Cannot create a VM with Ubuntu 18 since the parameter --os-variant does not support ubuntu18.04

Version-Release number of selected component (if applicable):


How reproducible:

Run

virt-install \
--name peon_03 \
--ram 4096 \
--disk path=/var/lib/kvm/peon_03.qcow2,size=8,format=qcow2,bus=virtio \
--vcpus 2 \
--os-type linux \
--os-variant ubuntu18.04 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location 'http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/' \
--extra-args 'console=ttyS0,115200n8 serial'

Steps to Reproduce:
1.
2.
3.

Actual results:

Error message.

ERROR    Error validating install location: Distro 'ubuntu18.04' does not exist in our dictionary


Expected results:

The installer to continue and run.

Additional info:

Comment 1 Cole Robinson 2018-10-03 23:35:58 UTC
Thanks for the report. This info is tracked in libosinfo/osinfo-db, which got a patch for ubuntu18.04 in july:

commit b4ce277defb7085350c5ee73ec62ba37728fde8b (tag: v20180720)
Author: Věra Cholasta <vbudikov@redhat.com>
Date:   Fri Jul 20 09:08:38 2018 +0200

    ubuntu: Add support for Ubuntu18.04


I tweaked the virt-install error a bit to try and be more helpful though:

commit b51104ad228a6fedfad04449d0b40c38e3bf5f36 (HEAD -> master)
Author: Cole Robinson <crobinso@redhat.com>
Date:   Wed Oct 3 19:32:09 2018 -0400

    guest: Tweak error with invalid --os-variant
    
    Try to point people in the right direction if they specify an
    unknown distro name on the cli, like was reported here:
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1576473


Note You need to log in before you can comment on or make changes to this bug.