From f01cb0b7acd73f70e5cdca38487d3993cba69934 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Wed, 21 Oct 2026 11:38:53 +0800 Subject: [PATCH] create: Checkpoint 2026-10-21 03:38:49 UTC [477331650a] MemRelay-Operation: checkpoint-save:checkpoint-oss-vswitch-script-2026-10-21 MemRelay-Resource: 37122a6f-0962-49b7-8f5d-1bdca4060a6d --- ...nt 2026-10-21 03-38-49 UTC [477331650a].md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/e3194241-010f-4cad-a3a5-009d7810ff2c/Checkpoint 2026-10-21 03-38-49 UTC [477331650a].md diff --git a/projects/e3194241-010f-4cad-a3a5-009d7810ff2c/Checkpoint 2026-10-21 03-38-49 UTC [477331650a].md b/projects/e3194241-010f-4cad-a3a5-009d7810ff2c/Checkpoint 2026-10-21 03-38-49 UTC [477331650a].md new file mode 100644 index 0000000..d290ea8 --- /dev/null +++ b/projects/e3194241-010f-4cad-a3a5-009d7810ff2c/Checkpoint 2026-10-21 03-38-49 UTC [477331650a].md @@ -0,0 +1,30 @@ +--- +title: Checkpoint 2026-10-21 03:38:49 UTC [477331650a] +type: checkpoint +permalink: main/projects/e3194241-010f-4cad-a3a5-009d7810ff2c/checkpoint-2026-10-21-03-38-49-utc-477331650a +stable_id: 37122a6f-0962-49b7-8f5d-1bdca4060a6d +scope: project +memory_type: checkpoint +project_id: e3194241-010f-4cad-a3a5-009d7810ff2c +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: checkpoint-oss-vswitch-script-2026-10-21 +created_at: '2026-10-21T03:38:49.591003+00:00' +updated_at: '2026-10-21T03:38:49.591003+00:00' +tags: +- hyper-v +- handoff +--- + + +## 已完成 +用户确认已用 Hyper-V 实现虚拟机独占 OSS,并要求用脚本开关这个交换机:有时物理机要用内网。已新增 Set-OssVirtualSwitch.ps1、tests/Test-OssVirtualSwitch.ps1,README 补了用法。 +## 实机状态(2026-10-21,脚本未改动) +vSwitch-OSS 为外部交换机,绑定 Realtek USB GbE Family Controller,AllowManagementOS=False。物理网卡 OSS 仍 Up,MAC 84-21-41-F1-0F-D3,IPv4 绑定关闭、无地址。OSSWin10 关机,唯一网卡“网络适配器”连 vSwitch-OSS,MAC 00155D20C600。 +## 脚本 +Release 删除交换机并恢复 OSS 的 IPv4,之后可 Set-DualNetworkRouting.ps1 -Mode Apply。Capture 按不共享重建并接回虚拟机。Share/Isolate 只切换共享复选框;共享后物理机接口是 vEthernet (vSwitch-OSS),要带 -OssAlias。交还物理机时删除该接口默认路由。不动 Default Switch 和 Wi-Fi。 +## 验证 +PowerShell 5.1 计划测试通过。Status 与 Release -WhatIf 成功,交换机仍为不共享,虚拟机仍连着 vSwitch-OSS,OSS 的 IPv4 仍关闭。没有实际执行 Release、Share、Isolate、Capture。 +## 下一步 +用户自己在管理员 PowerShell 执行 Release 或 Share。不要在未得到明确要求时改动这台机器的交换机。 \ No newline at end of file