Ask Your Question
0

how to use openstack to take snapshot of existing windows lab and redploy using openstack?

asked 2015-12-16 07:01:04 -0500

fnawaz gravatar image

Hi ..

I have a lab of 30 computers with windows.

I have this high end server with openstack installed.

I want to take the snapshot of current windows lab and then I want to use openstack to manae those images so that current lab settings will not be hampered and people working in the labs will feel no difference.

Obviously the current machine will only be used to access openstack managed windows os's

What is the sequence of steps I need to do for the above to make it possible?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-12-17 05:48:39 -0500

capsali gravatar image

So you have 30 physical windows machines that you want to run in an openstack virtual enveironment?

It will take some time to achieve this but it should work (ish).

Before you read this take notice i never tried this so i don't know if it will 100% work, although it has no reason not to.

First you must install virtio drivers to the physical windows so that when you boot up into openstack (i assume kvm is the hypervisor) windows will know what driver to load for the HDD and network adapter (kvm uses most common virtio). Virtio iso drivers can be found here Virtio Drivers.

After installing the .inf files for your windows distribution get Disk2VHD and create a vhd image from the running system.

Copy the resulting .vhd file to a running linux box and convert it to qcow2 (if using lvm,nfs,etc as a backend for nova/cinder storage) or .raw format (if using ceph as backend) using the built in qemu-img convert -f vhd -O qcow2 image.vhd image.qcow2.

After this upload the qcow image into glance and boot up a new instance from the image. After installing a few drivers windows guest should start.

Another way would be to use clonezilla livecd. Install virtio drivers to the running PC then restart it using the clonezilla livecd. Upload clonezilla livecd into glance. Create a bootable blannk cinder volume in opentack and boot up an instance with the clonezilla iso as a cdrom and the blank volume as /dev/vda. Or spawn an instance from the clonezilla livecd and attach the blank volume to the instance. After clonezilla loads format /dev/vda or /dev/vdb (depending which route you took) and set it up as a destination drive for the cloning. On the physical machine that has clonezilla live booted make a clone of the windows partition/hdd using clonezilla instance as a network backup drive.

After the cloning is complete either detaach the clonezilla cdrom from the instance in openstack and restart it, or, if using the second option, shutdown the instance, terminate it and boot another instance from the volume (or upload the volume into glance and spawn an instance from the new image).

Hope i was clear enough. As i said i never tested this so i'm not 100% sure it will work.

edit flag offensive delete link more

Comments

Ok I will update after implementing .. thank you :-)

fnawaz gravatar imagefnawaz ( 2015-12-18 02:47:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-12-16 06:28:50 -0500

Seen: 536 times

Last updated: Dec 17 '15