ClearkSky 发表于 2025-4-12 14:17:54

移动云电脑vmtoolDD成功了(更新保活方法)

<i class="pstatus"> 本帖最后由 ClearkSky 于 2025-4-12 17:14 编辑 </i><br />
<br />
云端闹原本的win10被改了很多设置,不好用,想D windows server 2025。<br />
开始用pve创建虚拟机让后直接用raw来D,一直失败,可能中途有些地方卡住了,但是没有vnc也不知道什么问题。<br />
<br />
<br />
然后就想用修改iso的方式,在grok的指导下DD成功。<br />
<br />
<br />
主要步骤:<br />
主备工作:<br />
解压iso到一个文件夹,我们这里解压到C:\WinISO<br />
创建挂载文件夹:mkdir C:\Mount<br />
查看要安装的系统版本的索引:dism /Get-WimInfo /WimFile:C:\WinISO\sources\install.wim<br />
windows server 2025数据中心版带桌面的索引是4<br />
挂载镜像:dism /Mount-Wim /WimFile:C:\WinISO\sources\install.wim /Index:4 /MountDir:C:\Mount<br />
<br />
<br />
操作:<br />
我的frpc文件重命名为了ff3,配置文件是ff3.toml,frpc配置了rdp的内网穿透<br />
第一步:放入frpc相关文件<br />
进入 C:\Mount,把ff3和ff3.toml放进去,再做一个ff3.bat,内容:<br /><div class="blockcode"><div id="code_y8U"><ol><li>c:\ff3.exe -c c:\ff3.toml</ol></div><em onclick="copycode($('code_y8U'));">复制代码</em></div><br />
一般情况下,系统都是安装在c盘,如果不确定什么盘有%SystemDrive%代替C盘<br />
<br />
第二步:配置计划任务开机启动<br />
在C:\Mount创建一个ff3.xml:<br /><div class="blockcode"><div id="code_OG8"><ol><li>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot;?&gt;<br /><li>&lt;Task version=&quot;1.4&quot; xmlns=&quot;http://schemas.microsoft.com/windows/2004/02/mit/task&quot;&gt;<br /><li>&nbsp;&nbsp;&lt;RegistrationInfo&gt;<br /><li>&nbsp; &nbsp; &lt;Description&gt;自定义任务&lt;/Description&gt;<br /><li>&nbsp;&nbsp;&lt;/RegistrationInfo&gt;<br /><li>&nbsp;&nbsp;&lt;Triggers&gt;<br /><li>&nbsp; &nbsp; &lt;BootTrigger&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;Enabled&gt;true&lt;/Enabled&gt;<br /><li>&nbsp; &nbsp; &lt;/BootTrigger&gt;<br /><li>&nbsp;&nbsp;&lt;/Triggers&gt;<br /><li>&nbsp;&nbsp;&lt;Principals&gt;<br /><li>&nbsp; &nbsp; &lt;Principal id=&quot;Author&quot;&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;UserId&gt;S-1-5-18&lt;/UserId&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;RunLevel&gt;HighestAvailable&lt;/RunLevel&gt;<br /><li>&nbsp; &nbsp; &lt;/Principal&gt;<br /><li>&nbsp;&nbsp;&lt;/Principals&gt;<br /><li>&nbsp;&nbsp;&lt;Settings&gt;<br /><li>&nbsp; &nbsp; &lt;MultipleInstancesPolicy&gt;IgnoreNew&lt;/MultipleInstancesPolicy&gt;<br /><li>&nbsp; &nbsp; &lt;DisallowStartIfOnBatteries&gt;false&lt;/DisallowStartIfOnBatteries&gt;<br /><li>&nbsp; &nbsp; &lt;StopIfGoingOnBatteries&gt;true&lt;/StopIfGoingOnBatteries&gt;<br /><li>&nbsp; &nbsp; &lt;AllowHardTerminate&gt;false&lt;/AllowHardTerminate&gt;<br /><li>&nbsp; &nbsp; &lt;StartWhenAvailable&gt;true&lt;/StartWhenAvailable&gt;<br /><li>&nbsp; &nbsp; &lt;RunOnlyIfNetworkAvailable&gt;false&lt;/RunOnlyIfNetworkAvailable&gt;<br /><li>&nbsp; &nbsp; &lt;IdleSettings&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;StopOnIdleEnd&gt;true&lt;/StopOnIdleEnd&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;RestartOnIdle&gt;false&lt;/RestartOnIdle&gt;<br /><li>&nbsp; &nbsp; &lt;/IdleSettings&gt;<br /><li>&nbsp; &nbsp; &lt;AllowStartOnDemand&gt;false&lt;/AllowStartOnDemand&gt;<br /><li>&nbsp; &nbsp; &lt;Enabled&gt;true&lt;/Enabled&gt;<br /><li>&nbsp; &nbsp; &lt;Hidden&gt;false&lt;/Hidden&gt;<br /><li>&nbsp; &nbsp; &lt;RunOnlyIfIdle&gt;false&lt;/RunOnlyIfIdle&gt;<br /><li>&nbsp; &nbsp; &lt;WakeToRun&gt;false&lt;/WakeToRun&gt;<br /><li>&nbsp; &nbsp; &lt;ExecutionTimeLimit&gt;PT0S&lt;/ExecutionTimeLimit&gt;<br /><li>&nbsp; &nbsp; &lt;Priority&gt;7&lt;/Priority&gt;<br /><li>&nbsp; &nbsp; &lt;RestartOnFailure&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;Interval&gt;PT1M&lt;/Interval&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;Count&gt;3&lt;/Count&gt;<br /><li>&nbsp; &nbsp; &lt;/RestartOnFailure&gt;<br /><li>&nbsp;&nbsp;&lt;/Settings&gt;<br /><li>&nbsp;&nbsp;&lt;Actions Context=&quot;Author&quot;&gt;<br /><li>&nbsp; &nbsp; &lt;Exec&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;Command&gt;C:\ff3.bat&lt;/Command&gt;<br /><li>&nbsp; &nbsp; &lt;/Exec&gt;<br /><li>&nbsp;&nbsp;&lt;/Actions&gt;<br /><li>&lt;/Task&gt;</ol></div><em onclick="copycode($('code_OG8'));">复制代码</em></div><br />
在C:/Mount创建一个ff3_set.bat<br /><div class="blockcode"><div id="code_c8A"><ol><li>@echo off<br /><li>echo Creating scheduled task from XML...<br /><li><br /><li>schtasks /Create /TN &quot;ff3&quot; /XML &quot;C:\ff3.xml&quot; /F<br /><li><br /><li>if %ERRORLEVEL%==0 (<br /><li>&nbsp; &nbsp; echo Task created successfully<br /><li>&nbsp; &nbsp; echo Failed to create task. Error code: %ERRORLEVEL%<br /><li>)<br /><li></ol></div><em onclick="copycode($('code_c8A'));">复制代码</em></div><br />
创建文件夹C:\Mount\Windows\Setup\Scripts\,在此文件夹中创建setupcomplete.cmd:<br /><div class="blockcode"><div id="code_y9w"><ol><li>@echo off<br /><li>call C:\ff3_set.bat<br /><li>shutdown /r /t 0</ol></div><em onclick="copycode($('code_y9w'));">复制代码</em></div><br />
<br />
<br />
<br />
打包回iso:<br />
保存并卸载镜像:dism /Unmount-Wim /MountDir:C:\Mount /Commit<br />
打包iso:oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,bC:\WinISO\boot\etfsboot.com#pEF,e,bC:\WinISO\efi\microsoft\boot\efisys.bin C:\WinISO C:\NewWindows.iso<br />
(oscdimg需要安装Windows ADK)<br />
<br />
<br />
安装:<br />
先把iso放到某个服务器上,可以直接下载那种<br />
使用的脚本:https://github.com/bin456789/reinstall<br />
DD命令:./reinstall.bat windows --image-name &quot;Windows Server 2025 SERVERDATACENTER&quot; --iso &quot;http://xxx.xxx.xxx.xxx/xxx.iso&quot;<br />
估计差不多安装好了,用rdp连接<br />
<br />
<br />
<br />
安装好后移动云的客户端是连不进去桌面的,因为vmtool连桌面是依赖系统内部的软件,我们DD的系统没有这个软件。<br />
但是面板的开机和关机功能是有效的。<br />
现在需要验证:用客户端连接云电脑,即使是黑屏也连着,这样能不能让云电脑不关机。<br />
如果要dd linux,远离也是类似的。<br />
<br />
<br />
<br />
更新------------<br />
保活方法:<br />
1.把原来云电脑的C:\Program Files (x86)\ZTEGuestOS复制到新的云电脑对应路径<br />
2.注册服务:<br /><div class="blockcode"><div id="code_snn"><ol><li>sc create IceDisplay binPath= &quot;C:\Program Files (x86)\ZTEGuestOS\IceServer\IceDisplay.exe&quot; DisplayName= &quot;ICEDISPLAY&quot; start= auto</ol></div><em onclick="copycode($('code_snn'));">复制代码</em></div><div class="blockcode"><div id="code_phY"><ol><li>sc create IceTunnel binPath= &quot;C:\Program Files (x86)\ZTEGuestOS\IceServer\IceTunnel.exe&quot; DisplayName= &quot;ICETunnel&quot; start= auto</ol></div><em onclick="copycode($('code_phY'));">复制代码</em></div><br />
用cmd,powershell不行,创建完后需要启动sc start IceDisplay,sc start IceTunnel<br />
3.修改id<br />
C:\Program Files (x86)\ZTEGuestOS\vdservice\vdagent.ini中的vmid修改为当前云电脑的id,id可以在云电脑客户端-&gt;管理-&gt;详情-&gt;云电脑id<br />
<br />
然后用客户端连接云电脑就能看到屏幕了,但是鼠标键盘那些都用不了,ZTEGuestOS里面有驱动和相关服务,可以自己尝试补一下。<br />
<br />

Josk 发表于 2025-4-12 16:36:45

BD,等老哥一个反馈

天尊 发表于 2025-4-12 16:39:21

现在是检测 不登录客户端 24小时就自动关机了啊 <br />
内网IP不能登录 客户端&nbsp;&nbsp;楼主怎么解决这个问题的啊

ClearkSky 发表于 2025-4-12 17:12:19

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16327266&ptid=1402376" target="_blank"><font color="#999999">天尊 发表于 2025-4-12 16:39</font></a></font><br />
现在是检测 不登录客户端 24小时就自动关机了啊 <br />
内网IP不能登录 客户端&nbsp;&nbsp;楼主怎么解决这个问题的啊 ...</blockquote></div><br />
更新了方法

天尊 发表于 2025-4-12 16:39:00

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16327321&ptid=1402376" target="_blank"><font color="#999999">ClearkSky 发表于 2025-4-12 17:12</font></a></font><br />
更新了方法</blockquote></div><br />
感谢分享

Nebula 发表于 2025-4-12 17:19:23

linux要怎么dd呢?
页: [1]
查看完整版本: 移动云电脑vmtoolDD成功了(更新保活方法)