Create a CentOS image for OpenStack in CentOS6.3
Reference:
Http://docs.openstack.org/essex/openstack-compute/admin/content/manually-creating-qcow2-images.html
Https://github.com/rackerjoe/oz-image-build/blob/master/templates/CentOS60_x86_64.tdl
Currently, there are many ways to create images for OpenStack on the Internet, but most of them are created through the command line. In fact, there is a convenient window program Virual Machine Manager in CentOS to create images for OpenStack. Next, let's take creating a CentOS6.3 image as an example to briefly describe the creation process.
Start the hypervisor
The management program can be started only when the root user logs on to the desktop. Therefore, we need to log on directly as the root user or through vnc and log on to the server as a graphical interface, enter virt-manager on the terminal or click Application System Tools Virtual Machine Manager to start the hypervisor. Of course, the premise is that you have installed the management program. If it is not installed, run the following command to install
- Yum install virt-manager virt-viewer
Create a virtual machine
Click Create VM to open the create VM dialog box, as shown in:
1. Name the virtual machine to be created, such as centos63, and select the installation method;
2. Select the installation file, operating system type, and version;
3. Configure the memory and CPU;
4. Create a disk. Here I select the second option. Click Browse, select New Volume to create a 7 GB qcow2 disk, and select the created disk file. As follows:
Continue until the VM interface is displayed, and then the system installation is completed. PS: When partitioning a disk, I only created one root partition, but not the boot and swap partitions.