About openstack creating a windows image

Asked by mnimonster

My ubuntu is 12.0 LTS.
I want to create a windows image so that I can launch a windows instance.The windows ios is 2k3server.
I follow this step:(documents from Openstack )
1. #kvm-img create -f raw windowsserver.img 20G
2. #kvm -m 1024 -cdrom cn_win_srv_2003_r2_enterprise_with_sp2_vl_cd1_X13-46432.iso -drive file=windowsserver.img,if=virtio,boot=on -drive file=virtio-win-0.1-30.iso,media=cdrom -boot d -nographic -vnc :10

Then I use vnc access next .
But windows installer can not find hard disk driver .I can't solve it.It's not over~

After that I find somebody else use :
#kvm -m 1024 -cdrom cn_win_srv_2003_r2_enterprise_x64_with_sp2_vl_cd1.iso -drive file=windowsserver.img,if=virtio,boot=on -fda virtio-win-1.1.16.vfd -boot order=d,menu=on -usbdevice tablet -nographic -vnc :10
This can solve my issue ,then I install the windows server successfully.And have made a windows image.

So,I am uploading this image to glance,and there is no problem.

I launch a instance use the windows image,but the instance is erred.Can you help me.

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
mnimonster
Solved:
Last query:
Last reply:
Revision history for this message
koolhead17 (koolhead17) said :
#1

Are you able to get your image running inside KVM?
If NO, there is problem with the image, fix it.
Once fixed try to upload the image to Glance and it will work for you.

http://docs.openstack.org/essex/openstack-compute/starter/content/Creating_a_Windows_Image-d1e1594.html

This might help.

Revision history for this message
mnimonster (teddy-liu) said :
#2

Thank you koolhead17 for answering my question.
Before I fixed the problem.I use the documents from Openstack to build my windows image,that use qcow2 for the disk.But the windows installer cannot find the image disk.So I use the raw format.

Blow is my step:
1. #kvm-img create -f raw windowsserver.img 10G
2. #kvm -m 1024 -cdrom cn_win_srv_2003_r2_enterprise_x64_with_sp2_vl_cd1.iso -drive file=windowsserver.img,if=virtio,boot=on -fda virtio-win-1.1.16.vfd -boot order=d,menu=on -usbdevice tablet -nographic -vnc :10
3. then select the first choose(DV/CD)
4. after that tap F6
5. choose"*To specify additional SCSI adaptes.......",
6. then choose a Red Hat VirtIO Disk Device Win2003/64-bit(if your machine is x86 choose the Win2003/32-bit,or xp choose the WinXP/32-bit)
7. install your system
After the installing is done,you need to install your network interface driver.
8 kvm -m 1024 -drive file=windowsserver.img -cdrom virtio-win-0.1-22.iso -net nic,model=virtio -net user -boot order=c -usbdevice tablet -nographic -vnc :10
NOW You can upload this image.
9. glance add name="win2003X64" is_public=true container_format=ovf disk_format=raw < windowsserver.img

Revision history for this message
Tatenda Mupaso (tatenda-mupaso) said :
#3

Were you able to start up your instance in OpenStack after this? I am having trouble with Windows Server 2008. All the steps in the openstack guide as well as yours here work. But when it comes to spinning up the instance from Horizon, it doesn't work for me. Did it work for you? And was your testing in Essex or Folsom? Because I'm currently in Folsom.