← Back to team overview

openstack team mailing list archive

Re: Finding/Making Windows 7 Images for OpenStack

 

Yes, you can do it with virt-manager. First, if you need it, you can modify the ISO... and then, with virti-manager you can create a machine to install the operating system (obtaining the disk image that should be uploaded to glance)

The best way (IMHO) to deploy the template is generalizing the system, because it will bring you the oppotunity of reuse the image template. To do that, when the installer asks for your computer name, press Ctrl + Shift + F3 and you will enter in audit mode.

In this state, you can modify the system before generalize, and finally you should run "c:\windows\system32\sysprep\sysprep.exe /shutdown /generalize /oobe" (have a look to the command). Then, your virtual machine is turned off and you'll be able to pick the disk, convert it to qcow2 (if needed), and add it to glance. With the image generalized, the next time it boots (on openstack), the OS will check the system to install drivers, etc, etc...

Good luck!

Cheers,

Luis
________________________________________
De: Curtis C. [serverascode@xxxxxxxxx]
Enviado el: lunes, 22 de octubre de 2012 19:05
Para: Luis Fernandez Alvarez
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Asunto: Re: [Openstack] Finding/Making Windows 7 Images for OpenStack

On Mon, Oct 22, 2012 at 3:11 AM, Luis Fernandez Alvarez
<luis.fernandez.alvarez@xxxxxxx> wrote:
> Hi Curtis,
>
> If you're planning to use Windows 7 images with KVM hypervisors, the main steps I follow are:
>
> 1- Modify your Windows 7 image to inject virtio drivers (http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers).
>     To do that in a stylish way... you can use the Windows AIK that includes DISM.exe and IMAGEX.exe that
>     let you inject drivers to the WIM files included in Windows 7 installation media.
>     I don't know if you have experiencie with it...but...after mounting the wim files with imagex, you should run
>     something like: "dism /image:C:\path\mount /add-driver /driver:c:\virtiodrivers\win7\x86"

Hi,

Yeah, I will not be able to do anything stylish with Windows b/c of my
lack of experience with Windows. :)

>     * Alternatively: you can just add it during installation from an external media.

That I have done. I definitely get the need for the virtio drivers.

> 2- Use a tool like Aeolus Oz to create the image (you can automate it with unattend.xml files) or the graphical KVM/qemu interface.

So once I create the image I should use something like virt-manager to
set it up? Maybe that's the step I'm missing.

> 3- Convert it to qcow2 and send it to glance.

Right.

>
> If you need further information, do not hesitate to contact me.
>

I very well may have to, thanks for the offer. :)

I will checkout setting up the image after the initial install with
virt-manager.

Thanks,
Curtis.

> Cheers,
>
> Luis.
>
> PS: You can also test the HyperV support, this way, you could use VHD images.
>
>
> ________________________________________
> De: openstack-bounces+luis.fernandez.alvarez=cern.ch@xxxxxxxxxxxxxxxxxxx [openstack-bounces+luis.fernandez.alvarez=cern.ch@xxxxxxxxxxxxxxxxxxx] en nombre de Curtis C. [serverascode@xxxxxxxxx]
> Enviado el: domingo, 21 de octubre de 2012 1:56
> Para: openstack@xxxxxxxxxxxxxxxxxxx
> Asunto: [Openstack] Finding/Making Windows 7 Images for OpenStack
>
> Hi,
>
> Has anyone seen any recent documentation on creating Windows 7 images
> for OpenStack? I know it's supposed to be as easy as using kvm to
> install it initially (as per the OpenStack docs) then importing that
> image into glance, but there are some subtle things that I might be
> missing because I haven't really used Windows in a decade. I've
> certainly done a lot of searching so if it's a link on the first ten
> pages page of google I've probably seen it already. :)
>
> Perhaps the best thing would be if anyone knew of a virtualbox/vagrant
> or similar methodology for automatically creating Windows 7 images
> that I could start from. Someone must be generating new Win 7 images
> daily for their private cloud somewhere/somehow... :)
>
> Any pointers much appreciated.
>
> Thanks,
> Curtis.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



--
Twitter: @serverascode
Blog: serverascode.com


References