Import a VHD image (Windows Server) in OpenStack

asked 2015-12-30 20:00:51 -0600

luckyyd gravatar image

Hi All,

I installed OpenStack Liberty, and deploy Windows Server 2012 R2 Standard Evaluation for OpenStack from Cloudbase. It work fine for me. However now I want to import my own Windows Server 2012 image in VHD format to OpenStack.

If I directly import the image in OpenStack, the Windows Server image is not able to boot properly. It seems I need to install VirtoIO components.

And most guide is about how to create a windows image from ISO. Is there a simple guide about convert/import VHD image to OpenStack?

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-01-02 06:54:08 -0600

capsali gravatar image

Well you have 2 choices : First and the recommanded one is to install virtio drivers prior to uploading the image to glance. So you need to boot the vhd image into hyper-v (or on a stick) and install the virtio drivers from here. Than you convert the vhd into qcow2 and upload it into glance and spawn an instance from it. Windows should find and install the drivers automatically for the hard drive.

The second option would be to spawn an instance with the 'ide' option for the bootable device instead of 'virtio'. You must specifically specify the 'IDE' from the nova cli when booting up the instance. The problem here is that ide is much slower than virtio and it could bring more problems to the situation then what it resolves!

So my recomandation is to take the first choice and install virtio drivers before converting the image to qcow2 and uploading it into glance!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-12-30 20:00:51 -0600

Seen: 2,671 times

Last updated: Jan 02 '16