Openstack + xen: Use the glance command to download and upload images

Source: Internet
Author: User

During this time, I studied the openstack + xen method and encountered some problems. After the xen environment was deployed, I lacked the test image.

Here is an image that you can use.

I read feisky's article, but I didn't deploy it.Euca, so the euca-run-instances command is powerless, so only the glance command is used. For more information about the command, see:


Download and decompress the package to obtain the following three files:

Tar-zxf cirros-0.3.0-x86_64-uec.tar.gz

cirros-0.3.0-x86_64-blank.img  cirros-0.3.0-x86_64-initrd cirros-0.3.0-x86_64-vmlinuz 

Upload the kernel, ramdisk, and image files respectively.

Glance add disk_format = Aki container_format = Aki name = "cirros-0.3.0-x86_64-vmlinuz" <cirros-0.3.0-x86_64-vmlinuzglance add disk_format = Ari container_format = Ari name = "cirros-0.3.0-x86_64-loader" <cirros-0.3.0-x86_64-initrd of course, the following ID is replaced with your own.
glance add disk_format=ami container_format=ami name="cirros-0.3.0-x86_64-img" kernel_id=1e0d1f9a-a8f1-457f-a6d7-1b7d9bd05585 ramdisk_id=8916d89a-4da9-4eac-b668-f56f46906f15 <cirros-0.3.0-x86_64-blank.img 

In this way, the image is uploaded successfully.

After executing the command to upload the image file, you can run the glance index or Nova image-LIST command. You can look at the cirros-0.3.0-x86_64-img corresponding ID to create a new virtual machine. How to Create a VM

nova boot --flavor 1 --image 04a8507d-f3a2-4d1d-a047-51865386763f --key_name zjuvmkey xenvm1

Zjuvmkey is the key name xenvm1 is the virtual machine name

Connect to a VM

ssh -i zjuvmkey  cirros@

See how to manually create a virtual machine on an openstack control node using commands



Official Document

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.