Ask Your Question
0

About openstack creating a windows image

asked 2012-07-21 12:18:19 -0600

teddy-liu gravatar image

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!

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2012-07-27 07:07:05 -0600

koolhead17 gravatar image

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/opens...

This might help.

edit flag offensive delete link more
0

answered 2012-07-27 08:42:57 -0600

teddy-liu gravatar image

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

edit flag offensive delete link more
0

answered 2013-02-08 18:42:44 -0600

tatenda-mupaso gravatar image

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.

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

1 follower

Stats

Asked: 2012-07-21 12:18:19 -0600

Seen: 347 times

Last updated: Feb 08 '13