Files
MemRelay/projects/e3194241-010f-4cad-a3a5-009d7810ff2c/Checkpoint 2026-10-21 03-38-49 UTC [477331650a].md
T
memrelay f01cb0b7ac 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
2026-10-21 11:38:53 +08:00

30 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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。不要在未得到明确要求时改动这台机器的交换机。