virt-install : ubuntu 16.04 image will not boot

Bug #1759061 reported by Anastasios Giannoulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
In Progress
Medium
Frank Kloeker

Bug Description

Hello there,

Im a newbie in virsh and i want to report a problem. I need, for a part of my BScthesis to deploy a vm so i can create a custom image to upload it to openstack later.I follow the basic steps to create a vm with virt-install from CLI(https://docs.openstack.org/image-guide/ubuntu-image.html)

- qemu-img create -f qcow2 /var/lib/libvirt/images/custom_ubuntu.qcow2 20G

- virt-install --virt-type kvm --name imagevm --ram 2048 --vcpus 2 --disk /var/lib/libvirt/images/custom_ubuntu.qcow2,format=qcow2 --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --os-variant=ubuntu16.04 --cdrom=/var/lib/libvirt/boot/xenial64mini.iso

- after this, i did the complete installation of the ubuntu 16.04 ( + OpenSSH Server) without any problem

- but after the detach of the boot disk commands :
   -virsh start imagevm --paused
   -virsh attach-disk --type cdrom --mode readonly imagevm "" hda
   -virsh resume imagevm

- the VNCviewer was stuck in the boot screen (screenshot uploaded)

Extras: I tried many ways and changes to the virt-install command + different isos of 16.04 version but i had the same problem. The only time that it works, was with the trusty 14.04 version.

Thank for your time ,

Anastasios

Revision history for this message
Anastasios Giannoulis (tasosce) wrote :
description: updated
Petr Kovar (pmkovar)
tags: added: image-guide
Changed in openstack-manuals:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Frank Kloeker (f-kloeker) wrote :

this page is completly outdated and needs a refresh: https://docs.openstack.org/image-guide/ubuntu-image.html

Changed in openstack-manuals:
assignee: nobody → Frank Kloeker (f-kloeker)
Changed in openstack-manuals:
status: Triaged → In Progress
Revision history for this message
Frank Kloeker (f-kloeker) wrote :

I think something is wrong with the iso.
Have you tried a newer version like http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/installer-amd64/current/images/netboot/mini.iso
or Ubuntu 18.04? Will adapt the documentation to the latest version

Revision history for this message
Frank Kloeker (f-kloeker) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-manuals (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/657509

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-manuals (master)

Reviewed: https://review.opendev.org/657509
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=4629aebe12473de8918bec3bb4ae5a23509dda24
Submitter: Zuul
Branch: master

commit 4629aebe12473de8918bec3bb4ae5a23509dda24
Author: Frank Kloeker <email address hidden>
Date: Tue May 7 03:16:34 2019 +0200

    Update image guide to Ubuntu Bionic

    Change-Id: I4d4f93ada50da29e6f98cb85954aa80206581ea5
    Related-Bug: #1759061

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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