https://cloud.tencent.com/developer/article/2345684 这个文档更简单
云服务器DIY Win10自定义镜像,简单操作的话,用2019/2022公共镜像随便哪个买台普通cvm(一定是普通cvm,买BMG不支持做镜像),然后挂个10G的数据盘,从微软官网下载win10 iso到数据盘
下载好iso后,双击打开iso运行其中的setup.exe安装win10覆盖当前server系统的系统即可,完事做个自定义镜像使用。
BMG的机器还需要特殊处理下cloudbase-init配置文件
首先安装上cloudbase-init,参考这个安装https://cloud.tencent.com/developer/article/1940021
然后执行powershell修正cloudbase-init配置文件:
代码语言:powershell复制$client = new-object System.Net.WebClient
$client.DownloadFile('http://windows-1251783334.cos.ap-shanghai.myzijiebao.com/Cloudbase-Init.zip','C:Cloudbase-Init.zip')
$7zPath = "$env:ProgramFiles7-Zip7z.exe"
if (-not (Test-Path -Path $7zPath)) {
$client7 = new-object System.Net.WebClient
$client7.DownloadFile('http://windowsgz-1251783334.cos.ap-guangzhou.myzijiebao.com/ziyan/7z2200-x64.msi','c:7z2200-x64.msi')
msiexec.exe /i c:7z2200-x64.msi /qn
Start-Sleep 30
del c:7z2200-x64.msi 2>$null
}
& "$env:ProgramFiles7-Zip7z.exe" x -aoa C:Cloudbase-Init.zip -o"C:Program FilesCloudbase SolutionsCloudbase-Init"
另外,BMG博通网卡必须导入博通网卡驱动
官网主页:https://www.broadcom.com/products/ethernet-connectivity/network-adapters
最新版直接去其官网实时刷,历史版本我摘取如下链接:
https://cloud.tencent.com/developer/article/2378843