码迷,mamicode.com
首页 > Windows程序 > 详细

windows server 2008镜像制作

时间:2015-05-29 18:25:52      阅读:996      评论:0      收藏:0      [点我收藏+]

标签:openstack windows镜像

windows安装:

qemu-img create -f qcow2 ws2008-400g-1.qcow2 400G


virt-install --connect qemu:///system \

--name ws2008-400g-1 --ram 8192 --vcpus 2 \

--network network=default,model=virtio \

--disk path=/tmp/ws2008-400g-1.qcow2,format=qcow2,device=disk,bus=virtio \

--cdrom /data/iso/cn_windows_server_2008_r2_standard_enterprise_datacenter_web_x64_dvd_x15-50360.iso \

--disk path=/data/iso/virtio-win-0.1-100.iso,device=cdrom \

--vnc --os-type windows --os-variant win2k8



注意选择win7的驱动


选择键盘模式为en_us


初始密码:  hp@2014  hp@2014


将远程桌面开启:  我的电脑->远程设置->允许任何用户远程登录



Complete the VirtIO drivers installation by running the following command:


C:\pnputil -i -a E:\WIN8\AMD64\*.INF


To allow Cloudbase-Init to run scripts during an instance boot, set the PowerShell exe-

cution policy to be unrestricted:


C:\powershell

C:\Set-ExecutionPolicy Unrestricted


拷贝文件:  cloudbaseinit.msi  文件可以通过挂载虚拟光驱拷贝: /data/iso/cloudbaseinit.iso

运行cloudbaseinit.msi  

将use metadata password 取消,

In the configuration options window, change the following settings:

? Username: Administrator

? Network adapter to configure: Red Hat VirtIO Ethernet Adapter

? Serial port for logging: COM1

When the installation is done, in the Complete the Cloudbase-Init Setup Wizard win-

dow, select the Run Sysprep and Shutdown check boxes and click Finish.


glance image-create --name WS2008 --disk-format qcow2 \

--container-format bare --is-public true \

--file /tmp/ws2008-400g.qcow2


本文出自 “yuweibing的技术博客” 博客,请务必保留此出处http://yuweibing.blog.51cto.com/3879355/1656453

windows server 2008镜像制作

标签:openstack windows镜像

原文地址:http://yuweibing.blog.51cto.com/3879355/1656453

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!