After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 58 of 317

Administering OpenStack Compute 48 9. Once completed, power this off by hitting CTRL + A and then X, to exit kvm. We can then bundle this image up for use in OpenStack Compute. euca-bundle-image -i win2k3-i386.img euca-upload-bundle -b images -m /tmp/win2k3- i386.img.manifest.xml euca-register images/win2k3-i386.img.manifest.xml 10. Once the image has uploaded (it can take a short while), it will be visible in your image list. To connect to this, we need to open up access to the RDP port (TCP 3389). So, we create an additional security group for this purpose, as follows: euca-describe-images euca-add-group windows -d "Windows Group" euca-authorize windows -P tcp -p 3389 -s 0.0.0.0/0 11. We can then launch this instance, for example, under euca2ools do the following: euca-run ami-00000006 -g default -g windows -k openstack -t m1.small 12. Finally, we can connect to this instance once it has launched using RDP. Under Mac OSX, you can download an RDP client at http:// www.microsoft.com/mac/downloads, and for Linux you can download rdesktop using your distribution's package manager. Having trouble accessing your Windows instance? Connect to your openstack1 host using VNC. The first instance runs on VNC port 5900 (equivalent to :0), the second on 5901 (equivalent to :1). How it works... Creating a suitable image running Windows in our Nova environment is simply done by running the installation routine through a kvm session with VNC enabled and then uploading the created disk image to our Nova environment. Creating a guest image in this way is done using the following steps: 1. Create the hard disk image using kvm-img. 2. Create a new kvm session, booting the ISO and specifying the hard drive image as our destination hard drive. 3. Configure it for our use (for example, enabling RDP access). 4. Bundle up the created disk image. 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