[转]Windows Images for OpenStack

时间:2014-06-21 16:51:38   收藏:0   阅读:386

This note summarizes articles from other places about Microsoft Windows images for OpenStack creation, along with some first hand experience. The whole process of creating Windows 2008 and Windows 2012 images fully usable on OpenStack instances is described there.

Prerequisite

To achieve the creation of a qcow2 Windows image for OpenStack, we need the following ISO images:

Base image creation

The first step to build a Microsoft Windows image is to install the OS in a VM as we would have done on a bare metal computer. Gridcentric‘s article about Windows image creation describes this procedure in details.

The steps to follow are:

Customizing image for OpenStack

The previous steps allowed us to have Windows fully installed in a KVM virtual machine. The last steps consist in installing Cloud-Init for Windows, a Windows implementation of the Linux based Cloud-Init mechanism. This set of scripts transforms a legacy OS image into a ready for OpenStack image. At instantiation of a VM, Cloud-Init fetches from a meta-data server, data such as ssh public key and hostname that allows the instance to become unique. Cloud-Init base is Open source, and Cloudbase provides an installer on its blog. We‘ll install Cloud-Init by injecting the installer that we just downloaded. To to that, we have to follow these steps:

Connecting to a Windows VM

The usual mechanism used in OpenStack to connect to VMs (running Linux) is ssh. A public key specified by the user launching the VM is set in the default user‘s authorized_keys file. This allows the user to connect to the VM by using the corresponding private key.

However, it is not currently possible to connect to a Windows VM with ssh (there is some work done in this direction that I‘ve not tested yet). Cloud-Init base creates an Admin user, with either:

Note that to connect to a Windows VM from Linux, prefer using xfreerdp instead of rdesktop. The pointer is bogus when connecting to a windows 2012 VM using rdesktop.

[转]Windows Images for OpenStack,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!