Make Ubuntu14.04 's OpenStack image

Source: Internet
Author: User

Download the official Ubuntu image installation files: Do not use the desktop version, VirtualBox and VMS are installed error, because do not need the desktop, all out of control. The first step, prepare the following files: 1.ubuntu-14.04.4-server-amd64.iso2.virtual-box 5.0.16 (VMware can also, similar installation, create virtual machine hard disk is to choose a single file can be easily converted) The second step, Install a virtual machine: You can use the previously downloaded Ubuntu-14.04.4-server-amd64.iso installation into the virtual machine installation QEMU-KVM, used to convert the VDI file to qcow2 file, Qcow2 file is the image we want to use in OpenStack configuration local source (how to Configuration please see my wiki or self-Baidu), install command: sudo apt-get install Qemu-kvmok, next to the topic: the third step, create an OpenStack image, first or create VirtualBox virtual machine, Memory and hard disk can be as few as possible, I use 1G memory +8g hard Disk here, the network uses NAT (VirtualBox default on DHCP, exactly. Install Ubuntu 14.04 server:1 By default, choose a good time zone when installing, this time zone must match the time zone of the OpenStack platform, otherwise you have to redo the mirror, we certainly choose China/shanghai, do not ask why; 2, Oh, Select Install Openssh-server at installation, because you cannot use SSH service after OpenStack, and enter the installed virtual machine: First, with sshd can root login: sudo passwd root reset root password to support SSH Root login sudo vim/etc/ssh/sshd_config modify: Permitrootlogin Without-password for permitrootlogin yes then sudo service ssh restart two , configure the local source (no local source, use the internet source bar) sudo apt-get Update III, generally recommend the installation of Cloud-init, in heat orchestration need to use, if not to do the orchestration can not install: sudo apt-get install Cloud-init-y configuration: sudo vim/etc/cloud/cloud.cfg allows the root user to log in disable_root : false OK, then install the software you need to deploy: here ..... If you want to add your program to boot, the simple way is to add to the/etc/rc.local exit 0 before you can, pay attention to use the background to run. Four, then, look at iptables:[email protected]:~/share$ sudo iptables-l[sudo] password for trait:chain INPUT (policy ACCEPT)               Target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source Destination Chain OUTPUT (policy ACCEPT) target prot opt source destination If it is not: su Do rm-rf/etc/udev/rules.d/*.rules delete the rule file. Five, then, check the NIC configuration: [email protected]:~/share$ cat/etc/network/interfaces# This file describes the network interfaces Available on your system# and what to activate them. For more information, see Interfaces (5). # The loopback network Interfaceauto loiface lo inet loopbackauto eth0iface eth0 I NET DHCP, you can: sudo shutdown-p now. Note that after installing the cloud-init in a non-OpenStack environment, the virtual machine restarts can no longer enter the system, remember. Then find your VirtualBox virtual machine directory, hold a chestnut, pass the Ubuntu64.vdi file to the previous virtual machine, and then execute: qemu-img convert-f vdi-o qcow2 UBUBTU64.VDI After the Ubuntu64.qcow2 conversion is complete, get ubuntu64.Qcow2 file upload it to OpenStack, you can create an instance. 

Make an OpenStack image of Ubuntu14.04

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.