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: http://docs.openstack.org/developer/glance/glance.html#the-add-command
Mirror: https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz
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@10.0.3.3
See how to manually create a virtual machine http://blog.csdn.net/zoushidexing/article/details/7851423 on an openstack control node using commands
References:
Feisky: http://www.cnblogs.com/feisky/archive/2012/06/29/2569516.html
Official Document http://docs.openstack.org/developer/glance/glance.html#the-add-command