After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 56 of 317

Administering OpenStack Compute 46 Creating custom Windows images If you want to run Windows in your OpenStack environment, you must create the images yourself. This ensures you're not breaching Microsoft's EULA—as you must first agree to this as part of an installation routine—as well as ensuring that your Windows image is suitable for your environment. To do this under OpenStack Compute, we create our image by booting the Windows ISO. Getting ready To begin with, ensure you're logged into your Ubuntu client and have your cloud credentials sourced into your environment. We need to install the qemu-kvm package to allow us to create the required images and ensure we have euca2ools and cloud-utils available to allow us to upload the resultant Windows image. This is achieved with the following command: sudo apt-get update sudo apt-get -y install qemu-kvm You also need an ISO of the Windows server you are going to create. For this section, we will be using Windows 2003 SP2 i386. If you are using Ubuntu as your client through VirtualBox and you don't have enough disk space, simply add in a new disk of at least 20 GB. We will need at least 20 GB to create our new OS cloud installs and temporary files, so that we can upload this to our Nova environment. You also need to use an alternative to kvm, named qemu. Your client also needs a VNC client. If you don't have one installed, you can freely download the following: f For Ubuntu, install apt-get install gtkvncviewer f For Mac OSX, visit http://sourceforge.net/projects/chicken/ f For Windows, visit http://www.tightvnc.com/download.php How to do it... Installation of a Windows image can be achieved by invoking kvm commands directly, as described in the following steps: 1. We first need to create the raw image that will essentially be the hard drive for our Windows installation, so it needs to be big enough to install the Windows operating system: kvm-img create -f raw win2k3-i386.img 10G 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