「VIRTUALIZATION」- Hyper-V

构建

禁用 Hyper-V 服务

How to disable Hyper-V in command line?
Virtualization applications don’t work together with Hyper-V, Device Guard, and Credential Guard
Turn off Windows Hypervisor Platform

通过 Windows 功能禁用 Hyper-V 功能

注意,当我们通过 Windows 功能关闭 Hyper-V 时,这实际上只是卸载或禁用了 Hyper-V 角色及其相关服务。然而,这并不总是会自动更新引导配置数据(BCD)中的设置,特别是 hypervisorlaunchtype 参数,它控制着是否在系统启动时加载 hypervisor。

即使我们通过“Windows 功能”关闭了 Hyper-V,hypervisorlaunchtype 的值可能仍然保持为 Auto,这意味着系统在启动时理论上仍会尝试加载 hypervisor。要解决这个问题,我们需要手动使用 bcdedit 工具来更改该设置。我们可以以管理员身份打开命令提示符,然后执行以下命令来禁用 hypervisor 的启动:bcdedit /set hypervisorlaunchtype off

性质

WIP

创建虚拟机

用 Hyper-V 在 win10 中创建虚拟机,简单快捷_hyperv 快速创建_銨靜菂等芐紶的博客-CSDN 博客

通过 新建 方式

WIP

通过 快速创建 方式

WIP

网络设置

创建桥接网络

Hyper-V 设置桥接网络_hyperv 桥接模式_一只小熊猫呀的博客-CSDN 博客

操作 / 虚拟交换机管理器

新建虚拟网络交换机 / 外部 / 创建虚拟交换机 / <选择其要桥接的网卡>

<选择虚拟机> / 设置 / 网络适配器 / 虚拟交换机 / <选择新建的交换机>

存储设置

Deleting checkpoints

Using checkpoints | Microsoft Learn

1) In Hyper-V Manager, select the virtual machine.
2) In the Checkpoints section, right-click the checkpoint that you want to delete and click Delete. You can also delete a checkpoint and all subsequent checkpoints. To do so, right-click the earliest checkpoint that you want to delete, and then click Delete Checkpoint Subtree.
3) You might be asked to verify that you want to delete the checkpoint. Confirm that it is the correct checkpoint, and then click Delete.

注,主界面就能够管理检查点,不需要进入虚拟机的配置页面。

磁盘扩容

1)删除检查点,而后才能进行虚拟机扩容。否则会提示存在检查点,无法进行编辑。
2)虚拟机设置,编辑磁盘,进行磁盘扩容。