Ask Your Question
3

Create VM image from an ISO containing installation

asked 2013-04-30 07:03:02 -0500

Doude gravatar image

updated 2013-04-30 07:06:47 -0500

Hi all,

I use OpenStack release Grizzly with libvirk/KVM virt driver.
I try to create an image from an ISO containing installation.
The ISO is publish on Glance library with DISK_FORMAT set to 'iso'.

I try different methods:

1/ I boot a VM from the ISO image with flavor 'm1.tiny' (no 'root disk' and no 'ephemeral disk'). The VM start with 'root disk' as the ISO image and start the ISO installer but no empty disk are available (normal because 'root disk' and 'ephemeral disk' are null). So I tried to attach a volume to that VM but it fails with that output error [1] on the compute.

2/ I define a flavor 'test' with a root and an ephemeral disk both set to 20Go and I start again a VM from the ISO image with that 'test' flavor. The VM start with 'root disk' as the ISO image resized [2] to 20Go. I can make the installation on the ephemeral disk. When it finishes, I try to create a snapshot to publish the new installed image but Nova snapshots only the disk image (which is the ISO installer image).

3/ So I try again with the precedent configuration (in 2/). And I try to attach a volume to that VM but it fails with that output error [3] on the compute (not the same error in 1/).

How can I run ISO installer to publish a new VM template?

[1] http://paste.openstack.org/show/36704/
[2] http://paste.openstack.org/show/36705/
[3] http://paste.openstack.org/show/36706/

Regards,
Édouard.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-05-15 03:59:47 -0500

fifieldt gravatar image

Hi,

Unfortunately it isn't published yet, but the documentation team is working on a "VM Image Guide". If you can handle the formatting, a section on manually creating images using an ISO is available here:

https://review.openstack.org/#/c/26624/2/doc/src/docbkx/openstack-image/chcreatingimages_manually.xml,unified

edit flag offensive delete link more

Comments

Hi,

Thanks for the link. I think this new guide "VM Image Guide" is inspired by the pages of the OpenStack Compute Administration Manual.

Doude gravatar imageDoude ( 2013-05-20 05:20:43 -0500 )edit

But it's not what I'm looking for. I'd like to use the OpenStack cloud resources to boot and generate my own image. So I need to boot my ISO installer from OpenStack and then use the attached disks to installed the system.

Doude gravatar imageDoude ( 2013-05-20 05:21:49 -0500 )edit

When it's finish, I can generate/upload this new image to Glance to use it after.

Doude gravatar imageDoude ( 2013-05-20 05:21:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-30 07:03:02 -0500

Seen: 4,146 times

Last updated: May 20 '13