The creation of Openstack's window Server2008 SR2 image

Source: Internet
Author: User

Parent system: centos6.5-x86_64 (minimized installation) using a physical server


#在镜像制作服务器 Installing QEMU libvirtd and window virt drivers

Yum install libvirt libguestfs-tools QEMU-KVM qemu-img

Yum Groupinstall Virtualization "Virtualization Client"-y

Service LIBVIRTD Start


Copy the package to the appropriate directory:

Cd/tmp

Virtio-win-0.1.96_x86.vfd

Virtio-win-0.1.96.iso

Ws2008.iso


Download Xmanager Package Tunneling

By setting Xmanager Xshell->tunneling->forward X11 connetction To:xmanager


Qemu-img create-f Qcow2/tmp/win08-test.qcow2 50G



Virt-install--name win08-test--ram 2048--vcpus 2 \

--network network=default,model=virtio \

--disk=/tmp/win08-test.qcow2,format=qcow2,device=disk,bus=virtio \

--cdrom=/tmp/ws2008.iso \

--disk=/tmp/virtio-win-0.1.96.iso \

--disk=/tmp/20150709_091029.iso \

--disk=/tmp/virtio-win-0.1.96_amd64.vfd,device=floppy \

--graphics spice,listen=0.0.0.0--video qxl--channel spicevmc \

--os-type Windows--os-variant win2k8--force


Executing this command will automatically eject the installation window:

A: Successful connection

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/81/wKiom1WeKQGRy5ePAAKyYHmtNb0217.jpg "title=" QQ picture 20150709155531.png "alt=" Wkiom1wekqgry5epaakyyhmtnb0217.jpg "/>

b. " Windows cannot be installed on this disk "or hint" No drives found "

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/7E/wKioL1WeKw_xGhhIAAIupfcShZM870.jpg "title=" 1.jpg " alt= "Wkiol1wekw_xghhiaaiupfcshzm870.jpg"/>c: click " Load driver " to replace the driver


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/7E/wKioL1WeK0SRX8BdAAJHoB3_sCc633.jpg "title=" 2. JPG "alt=" wkiol1wek0srx8bdaajhob3_scc633.jpg "/>d: install " red Hat VirtIO SCSI Controller (A:\amd64\Win2008E2\viostor.inf) "

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/81/wKiom1WeKbTjXXSgAAIqRByQ52U769.jpg "title=" 3.jpg " alt= "Wkiom1wekbtjxxsgaaiqrbyq52u769.jpg"/>E. After the disk drive installation is complete, the 10G disk file that you just created appears, select the disk and click Next


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/7E/wKioL1WeK7Pi-H29AAJB6tSDE3w957.jpg "title=" 4.jpg " alt= "Wkiol1wek7pi-h29aajb6tsde3w957.jpg"/>

F. Wait for the system to install, long wait 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/6F/81/ Wkiom1wellyhiyfgaag1gooquuk544.jpg "title=" 5.jpg "style=" Float:none; "alt=" wkiom1wellyhiyfgaag1gooquuk544.jpg "/ >

The installation is complete, the first time you use to set a password. (Password requirements are very high)

Note that keyboard entry is not available and the keyboard is set using the soft

G. System initialization: Select NIC Driver

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/AA/wKioL1WCaLGAx_uxAAPh-q0sD5U891.jpg "alt=" Wkiol1wcalgax_uxaaph-q0sd5u891.jpg "/>

H: Select NIC driver

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/AE/wKiom1WCZwOSDqkzAANLVHc-XhQ805.jpg "alt=" Wkiom1wczwosdqkzaanlvhc-xhq805.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/AE/wKiom1WCZ1qgcQwyAAJ_FWAJcDc189.jpg "alt=" Wkiom1wcz1qgcqwyaaj_fwajcdc189.jpg "/>

I: Setting up DHCP

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/AA/wKioL1WCaRDiLuF2AANBAa39VRg398.jpg "alt=" Wkiol1wcardiluf2aanbaa39vrg398.jpg "/>

J:G. System initialization: configuration system and OpenStack integration; install cloudbaseinitsetup_x64.msi; remove Cloud from services.msc Initialization service (services default on self-booting) identity authentication

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/AE/wKiom1WCZ5PDTkOtAAMvHlRIsBE956.jpg "alt=" Wkiom1wcz5pdtkotaamvhlrisbe956.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/AA/wKioL1WCaUXxXg7aAANKoIEwlZY698.jpg "alt=" Wkiol1wcauxxxg7aaankoiewlzy698.jpg "/>

K: Allow remote logins:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/AE/wKiom1WCZ7CwX0CzAANayiJJOdk285.jpg "alt=" Wkiom1wcz7cwx0czaanayijjodk285.jpg "/>

The system initialization is complete and the virtual machine is shut down.


Compression:

virt-sparsify --compress /tmp/win2008-work.qcow2 /opt/win2k8r2.qcow2


Uploadwin2k8r2.qcow2

This article is from the "Gaogaozi" blog, make sure to keep this source http://hangtiangazi.blog.51cto.com/8584103/1672579

The creation of Openstack's window Server2008 SR2 image

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.