[Pkg-libvirt-commits] [libguestfs] 26/87: builder: Add documentation for how to import images into OpenStack.

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:10:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository libguestfs.

commit 52ca485d4d7848a8e1ed0ef62717d8ed92a7e8d8
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Jan 14 17:30:40 2014 +0000

    builder: Add documentation for how to import images into OpenStack.
    
    (cherry picked from commit 7c431d703005f7e08567be82caf035feca9b931f)
---
 builder/virt-builder.pod | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/builder/virt-builder.pod b/builder/virt-builder.pod
index dd45d31..051b045 100644
--- a/builder/virt-builder.pod
+++ b/builder/virt-builder.pod
@@ -802,13 +802,30 @@ tools probably work differently as well.
 
 =back
 
-=begin comment
-
 =head3 Importing into OpenStack
 
-XXX
+Import the image into Glance (the OpenStack image store) by doing:
+
+ glance image-create --name fedora-20-image --file fedora-20.img \
+   --disk-format raw --container-format bare \
+   --is-public True
+
+The I<--file> parameter is the virt-builder-generated disk image.  It
+should match virt-builder's I<--output> option.  The I<--disk-format>
+parameter should match virt-builder's I<--format> option (or C<raw> if
+you didn't use that option).  The I<--container-format> should always
+be C<bare> since virt-builder doesn't put images into containers.
+
+You can use the S<C<glance image-show I<fedora-20-image>>> command to
+display the properties of the image.
+
+To boot up an instance of your image on a Nova compute node, do:
+
+ nova boot fedora-20-server --image fedora-20-image \
+   --flavor m1.medium
 
-=end comment
+Use S<C<nova flavor-list>> to list possible machine flavors.  Use
+S<C<nova list>> to list running instances.
 
 =head2 DEBUGGING BUILDS
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list