当前位置:首页 > Windows程序 > 正文

windows server 2008镜像制作

2021-05-26 Windows程序

标签: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=http://www.mamicode.com/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=http://www.mamicode.com/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

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/71552.html