virt-install command to generate CentOS image for Openstack needs extra parms

Bug #1350564 reported by Doug
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Laurel Michaels

Bug Description

The sample command as listed in the documentation will create a VM image that can be used within OpenStack, however the console log will not display when using nova console-log <InstanceName> nor when using horizon to examine the console-log.

In order to get this functionality the virt-install command requires the --extra-args options and --location instead of --cdrom. The sample below will work....

virt-install --virt-type kvm --name centos-6.5-x86_64-serial --ram 1024 --disk path=KVM-VM/centos6.5-serial.raw,size=10,format=raw \
--network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --os-variant=rhel6 \
--extra-args="console=tty0 console=ttyS0,115200n8 serial" --location=ISO/CentOS-6.5-x86_64-bin-DVD1.iso

-----------------------------------
Built: 2014-07-29T07:20:17 00:00
git SHA: b255e1700324cec10c3a43b2e82b1403d343c173
URL: http://docs.openstack.org/image-guide/content/centos-image.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/image-guide/section_centos-example.xml
xml:id: centos-image

Revision history for this message
Doug (caniwi) wrote :

This was noticed in havana release. As it is a VM creation issue, it is not related to OpenStack release. I have been told the same issue exists for creating Debian images.

Also the fedorapeople.org centos image is inherently broken.

Revision history for this message
Tom Fifield (fifieldt) wrote :

Thanks for the report and fix Doug - much appreciated!

Changed in openstack-manuals:
milestone: none → juno
importance: Undecided → High
status: New → Confirmed
Changed in openstack-manuals:
assignee: nobody → Laurel Michaels (lmichaels)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/111801

Changed in openstack-manuals:
status: Confirmed → In Progress
Changed in openstack-manuals:
assignee: Laurel Michaels (lmichaels) → Anne Gentle (annegentle)
Changed in openstack-manuals:
assignee: Anne Gentle (annegentle) → Laurel Michaels (lmichaels)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/111801
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=09737ed1f402f654f53d2297cd5b0fb2cb29ce24
Submitter: Jenkins
Branch: master

commit 09737ed1f402f654f53d2297cd5b0fb2cb29ce24
Author: Laurel Michaels <email address hidden>
Date: Mon Aug 4 14:48:49 2014 -0400

    centos image example was wrong

    The following page had an incorrect
    virt-install example for creating a
    centos image:

    http://docs.openstack.org/image-guide/content/centos-image.html

    I fixed the example as described in the
    associated bug, 1350564.

    Change-Id: Ib687f8d46897f2375e2994bfedad286a8e0a8a12
    Closes-Bug: #1350564

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.