34

使用Netboot.xyz安装Windows

 2 years ago
source link: https://www.taterli.com/8832/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用Netboot.xyz安装Windows

使用Netboot.xyz安装Windows

一般人都是用来安装Linux,Linux的话比较容易安装,但是Windows就没那么友好了.

首先下载ADK,PE环境和部署工具都要安装.

https://docs.microsoft.com/zh-cn/windows-hardware/get-started/adk-install

image-1.png

以管理员身份运行部署工具.

image-2.png

一步一步执行并且提取WinPE.

copype amd64 E:\WPEx64
MakeWinPEMedia /ISO E:\WPEx64 E:\WPE64.iso
image-3.png

把WinPE上传到远程服务器上,然后远程服务器启动容器.

docker run -d \
  --name=netbootxyz \
  -e PUID=1000 \
  -e PGID=1000 \
  -p 3000:3000 \
  -p 69:69/udp \
  -p 80:80 \
  -v /mnt/netbootxyz/config:/config \
  -v /mnt/netbootxyz/assets:/assets \
  --restart unless-stopped \
  lscr.io/linuxserver/netbootxyz:latest

最后在把WinPE挪到/mnt/netbootxyz/assets/x64 [需要自行创建文件夹]

接着做一个SMB服务器,然后把安装内容塞进去,挂载.

net use f: \\1.1.1.1\sambashare /user:1.1.1.1/root password
image-4.png

查看文件,然后运行setup.exe安装.

image-5.png

第二个难题,要解决virtio驱动问题,这个也可以通过smb挂载上,就不多说了.

image-6.png

不过也并非什么都是一帆风顺,比如有些网络会错误的.

image-7.png

这时候依赖NetKVM网络,没有的话考虑面板切换其他网络虚拟化接口.

image-8.png

有时候也不需要输入域,用交互式输入也是可以的.

image-9.png

然后像Virmach提供的virtio.iso都比较老,有了网路也可以用远程的virtio.iso内容,反正都挂载SMB了,想怎么玩就怎么玩.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK