After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 60 of 317

Administering OpenStack Compute 50 How to do it... Creation of a CentOS image is very similar to that of a Windows image, but since Linux allows for the flexibility of being able to boot alternative kernels and ramdisks, our creation process has to cater to this. For this section, we will describe how to create an appropriate CentOS 6.1 image for use in our OpenStack Compute environment, by calling kvm (or qemu, where hardware virtualization isn't available) directly. 1. We first need to download CentOS 6.1 from centos.org. We do this as follows: wget http://mirrors.manchester.icecolo.com/centos/ 6.2/isos/i386/CentOS-6.2-i386-minimal.iso 2. Once downloaded, we can proceed with creating our raw disk image, which will form the basis of the image we'll use to boot our instances: kvm-img create -f raw CentOS-6.2-i386-filesystem.img 5G 3. Now that this has been created, we can use it as the hard drive that we will use when we boot the ISO under kvm. To have control over partitioning, we must do a graphical installation of CentOS 6.2, and for this we must set at least 1024 MB of RAM. If we install CentOS 6.2 using the text-based installer, we won't be able to produce a valid partition that we can use for our OpenStack Compute instances. To launch the ISO so that we can access it using VNC, execute the following: sudo kvm -m 1024 -cdrom CentOS-6.2-i386-minimal.iso -drive file=CentOS-6.2-i386-filesystem.img,if=scsi,index=0 -boot d -net nic -net user -vnc :0 -usbdevice tablet Add -no-kvm, if running the kvm command under your VirtualBox, to enable qemu—software virtualization. If you encounter a failure regarding an MP-BIOS bug launching kvm, stop the instance and start it again. 4. Once running, connect to this instance using your VNC viewer, and complete your installation of CentOS ensuring that you choose Create Custom Layout when prompted. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook