How OpenStack mirroring works in a VMware environment

Source: Internet
Author: User

1. Cloud image file:

Http://sahara-files.mirantis.com/sahara-juno-spark-1.0.0-ubuntu-14.04.qcow2 (image file with Sahara-spark software installed)

From this website you can get the Ubuntu cloud image file, which is deployed on OpenStack with the suffix named Qcow2.

2. Turn the qcow2 image file into VMDK (VMware) format.

Convert using the Qmenu-img tool

: http://download.csdn.net/detail/zlc702/8811535

Conversion command: qemu-img convert–o vmdk xxx.qcow2 xxx.vmdk

3. Loading the VMDK into VMware Workstation

After launch, Ubuntu account cannot be logged in.

The reason is that the image is a cloud image, and if started in OpenStack, you can set the startup parameters to that image.

Detailed Settings reference: http://www.chenshake.com/openstack-mirror-and-password/#i

4. Load the cloud image file (VMDK) in VMware

    • Make a virtual machine, load the converted Vmdk
    • Find an Ubuntu system
    • Make Meta-data file, the file content is as follows:

        local-hostname: localhost

    • 制作user-data文件,文件内容如下:

      #cloud-config

      password: ubuntu

    • 执行genisoimage批处理命令,输出iso文件

       genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data

    • 将改seed.iso文件挂接到vmware的光驱中。
5.启动虚拟机
提示输入用户,输入ubuntu。
提示修改密码,修改成自己的密码即可。
现在可以控制登陆云镜像文件了。

How OpenStack mirroring works in a VMware environment

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: info-contact@alibabacloud.com 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.