mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-07-31 17:09:30 -04:00
update:win-all
This commit is contained in:
@ -133,10 +133,6 @@ qemu-img convert -f qcow2 -O vmdk input.qcow2 output.vmdk
|
||||
```
|
||||
qemu-img convert -f qcow2 -O vdi input.qcow2 output.vdi
|
||||
```
|
||||
- qcow2 转 vhd(Hyper-V)
|
||||
```
|
||||
qemu-img convert -f qcow2 -O vpc input.qcow2 output.vhd
|
||||
```
|
||||
- qcow2 转 vhdx(新版 Hyper-V)
|
||||
|
||||
目前 qemu-img 不能直接输出 vhdx,但你可以先转成 vhd,再用微软工具(如 Convert-VHD)转换为 vhdx:
|
||||
@ -156,8 +152,6 @@ Convert-VHD -Path "C:\路径\源文件.vhd" -DestinationPath "C:\路径\目标
|
||||
|
||||
> 虚拟机固定IP
|
||||
|
||||
您可以通过以下步骤更新 Netplan 配置文件,以设置静态 IP 地址和默认路由:
|
||||
|
||||
编辑 Netplan 配置文件:
|
||||
```
|
||||
sudo nano /etc/netplan/00-installer-config.yaml
|
||||
|
Reference in New Issue
Block a user