vultr的debian9下安装windows

1、将VPS重装至Debian 9

2、安装依赖

apt-get update -y
apt-get install -y gawk sed grep
3、执行安装脚本

Windows 2008

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://odrive.aptx.xin/System/newS2008R2DATA.vhd.gz'
Windows 2012

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://odrive.aptx.xin/System/S2012R2DATA2018410.vhd.gz'
Windows 2016

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://odrive.aptx.xin/System/S2016DATA2018415.vhd.gz'
这里提供的DD包需要VNC设置密码,如需已设置好密码的DD包自行百度

DD包来源:http://arv.asuhu.com/dd/

Windows Server 2016离线安装.NET Framework 3.5

windows server 2016默认是不安装.netframework3.5的,可以在添加删除程序中单独添加。但是有时候系统安装文件不在的时候,找不到安装程序就不能安装成功。

这时候单独下载dotnetfx35直接安装是安装不上的,需要用一下方法进行单独安装:

通过 NetFx3.cab 文件安装

NetFx3.cab下载链接:https://pan.baidu.com/s/1O24nLgXhehHveae25p9SLg 密码:amgu

安装方法:下载NetFx3.cab后将其放于C盘WINDOWS文件夹下(C:\Windows)

点击“开始”找到“Windows PowerShell”右击“以管理员身份运行”,输入如下命令:

dism.exe /online /add-package /packagepath:C:\WINDOWS\netfx3.caB

server2016完美添加virtio驱动

server2016
1,查看:
dism /get-wiminfo /wimfile:C:\install.wim
dism /get-wiminfo /wimfile:C:/boot.wim
2,
挂载install.wim映像第2个索引标准版带GUI,添加驱动
dism /mount-wim /wimfile:C:\install.wim /index:2 /mountdir:C:\mnt
安装进度条约2分钟
dism /image:C:\mnt /add-driver /driver:C:\virtio\NetKVM\2k16\amd64\netkvm.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioscsi\2k16\amd64\vioscsi.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\viostor\2k16\amd64\viostor.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\viorng\2k16\amd64\viorng.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioserial\2k16\amd64\vioser.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\Balloon\2k16\amd64\balloon.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qxldod\2k16\amd64\qxldod.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\pvpanic\2k16\amd64\pvpanic.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qemupciserial\2k16\amd64\qemupciserial.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qemufwcfg\2k16\amd64\qemufwcfg.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioinput\2k16\amd64\vioinput.inf /forceunsigned
获取已经添加好的驱动
dism /image:C:\mnt /get-drivers
成功后卸载并保存
dism /unmount-wim /mountdir:C:\mnt /commit
进度条约2分钟
查看boot.wim
dism /get-wiminfo /wimfile:C:/boot.wim
挂载1
dism /mount-wim /wimfile:c:\boot.wim /index:1 /mountdir:C:\mnt
dism /image:C:\mnt /add-driver /driver:C:\virtio\NetKVM\2k16\amd64\netkvm.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioscsi\2k16\amd64\vioscsi.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\viostor\2k16\amd64\viostor.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\viorng\2k16\amd64\viorng.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioserial\2k16\amd64\vioser.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\Balloon\2k16\amd64\balloon.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qxldod\2k16\amd64\qxldod.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\pvpanic\2k16\amd64\pvpanic.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qemupciserial\2k16\amd64\qemupciserial.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qemufwcfg\2k16\amd64\qemufwcfg.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioinput\2k16\amd64\vioinput.inf /forceunsigned
卸载和保存1
dism /image:C:\mnt /get-drivers
dism /unmount-wim /mountdir:C:\mnt /commit
挂载1
dism /mount-wim /wimfile::\boot.wim /index:2 /mountdir:C:\mnt
dism /image:C:\mnt /add-driver /driver:C:\virtio\NetKVM\2k16\amd64\netkvm.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioscsi\2k16\amd64\vioscsi.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\viostor\2k16\amd64\viostor.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\viorng\2k16\amd64\viorng.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioserial\2k16\amd64\vioser.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\Balloon\2k16\amd64\balloon.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qxldod\2k16\amd64\qxldod.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\pvpanic\2k16\amd64\pvpanic.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qemupciserial\2k16\amd64\qemupciserial.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\qemufwcfg\2k16\amd64\qemufwcfg.inf /forceunsigned
dism /image:C:\mnt /add-driver /driver:C:\virtio\vioinput\2k16\amd64\vioinput.inf /forceunsigned
卸载和保存2
dism /image:C:\mnt /get-drivers #获取添加的驱动信息
dism /unmount-wim /mountdir:C:\mnt /commit #卸载

封装新的 ISO 镜像
  1. 使用 UltraISO 打开原 Windows ISO 安装盘镜像。
   注意,这里可就不能使用压缩软件了,否则会丢失 ISO 的引导数据。
  2. 在 sources 文件夹下,删除boot.wim与install.wim。
  3. 将添加好驱动的boot.wim与install.wim拖到 sources 下。
  4. 点击【文件】→【另存为】,保存出一个新 ISO 镜像即可。