Ask Your Question
1

Help adding windows image

asked 2013-09-30 15:21:26 -0500

Reaper6971 gravatar image

I'll start off by saying that I'm new. Not just to OpenStack, but also somewhat new to Linux. However, I've been working in IT/IS for the past 13 years so I'm no slouch when it comes to understanding tech, general concepts, and how to follow instructions.

I've been trying to RTFM, but feel like I'm banging my head against a wall and it's starting to hurt. Seriously. I think it might actually be a tumor.

The question I have is this: How do you add/create an Image/Flavor for Windows 2k8r2 in Openstack?

I've tried this on the Controller:
http://docs.openstack.org/trunk/openstack-compute/admin/content/creating-a-windows-image.html

When Executing the sudo kvm... command I receive:
inet_listen_opts: bind(ipv4,0.0.0.0,5900): Address already in use
inet_listen_opts: FAILED


I've tried (again, on the controller):
http://www.cloudbase.it/ws2012/
and that hasn't worked. (Copying over the QCOW2 file again is taking forever and I want to post this)


I've tried several other different guides that use NOVA or Keystone with varying results. Usually with Keystone I'll try and get a tenant id and after entering os-username, os-password, and os-authurl I'll get a "404 not found" from my Controller.


Configuration: I used the alamo-v2.0.0.iso to install both the Controller & Compute node (1 each). I've not made any kind of changes other than this attempt at adding a windows image.

The Management & VM networks are both configured to use the same network (192.168.0.0/24).


Um... Let me know if you need anything else and I'll be happy to provide information.


Any and all help is greatly appreciated. I'll do my best not to be dumb, but I can't promise anything.

edit retag flag offensive close merge delete

Comments

BTW, I'm assuming I'm just doing something horribly wrong or horribly stupid. I just don't know enough to know what it is.

Reaper6971 gravatar imageReaper6971 ( 2013-09-30 15:36:09 -0500 )edit

Further, when executing

glance --os-username admin --os-password testing --os-auth-url http://192.168.0.20 --insecure --os-tenant-name demo image-create

I receive: No handles could be found for logger "keystoneclient.client" Authorization Failed: Unable to communicate with identity service: [A bunch of HTTP the equates to a 404 Not Found with text about seeint the error about DEBUG=True in Django]

When I execute: glance --os-username admin --os-password testing --os-auth-url http://192.168.0.20:5000 --insecure --os-tenant-name demo image-create

I receive:

No handlers could be found for logger "keystoneclient.client" Authorization Failed: The resource could not be found. (HTTP 404)

Reaper6971 gravatar imageReaper6971 ( 2013-10-02 13:15:04 -0500 )edit

*facepalm* Okay, so --os-auth-url http://192.168.0.20:5000**/v2.0/** has it added. Now I just need to figure how to get an instance to start with it...

Reaper6971 gravatar imageReaper6971 ( 2013-10-02 14:29:46 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-03 16:07:59 -0500

Reaper6971 gravatar image

facepalm Okay, so --os-auth-url http://192.168.0.20:5000/v2.0/ has it added. Now I just need to figure how to get an instance to start with it...

edit flag offensive delete link more
0

answered 2013-10-04 14:19:58 -0500

alessandro-i gravatar image

This is what I did on Folsom, I suppose it's still current. I used Windows 2012 ISOs for this:

  1. Download the virtio drivers from http://alt.fedoraproject.org/pub/alt/virtio-win/latest/virtio-win-0.1-65.iso (Fedora), place it with the Windows ISO
  2. Using http://virt-manager.org/ (virtmanager) connect to a linux KVM host (you can use one of the compute nodes of Openstack!), create a new VM, use standards but don't start it.
  3. Edit the VM: remove the IDE disk, create a new qcow2 disk with virtio bus and attach; create a second IDE cdrom and attach the virtio drivers iso. Set the NIC to virtio too.
  4. Start the machine, at the disk selection screen, load the drivers from the second cdrom, the disk will appear and you can now install
  5. Boot, enable RDP, open Device Manager and install all the missing drivers (use the virtio iso). Be sure the network is set to DHCP and shutdown the KVM vm.

Now, in my case, the image was too big for glance to import (timeout); I then shrink it with (look into /var/lib/libvirt/images for the file):

# qemu-img convert -c -O qcow2 <input image>.img <output-image>.img

. Final size was ~8GB for a Windows 2012 with GUI. Now I can import it:

 # glance image-create --name="Windows" --is-public=true --container-format=ovf --disk-format=qcow2 < /var/lib/libvirt/images/windows.img
edit flag offensive delete link more

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

2 followers

Stats

Asked: 2013-09-30 15:21:26 -0500

Seen: 1,131 times

Last updated: Oct 04 '13