简体   繁体   English

Linux KVM .img转换为Hyper-V .vhd

[英]Linux KVM .img converting to Hyper-V .vhd

I have a Linux server with KVM virtualitation, and a new Windows Server with Hyper-V virtualization. 我有一台具有KVM虚拟化功能的Linux服务器,以及一台具有Hyper-V虚拟化功能的新Windows服务器。

I would like migrate my KVM images to the Windows Hyper-V... 我想将我的KVM映像迁移到Windows Hyper-V ...

How can is converting kvm image to hyper-v vhd? 如何将KVM映像转换为Hyper-V VHD?

You can do it with with qemu-img: 您可以使用qemu-img来做到这一点:

qemu-img convert -f raw -O vpc something.img something.vhd

or 要么

qemu-img convert -f qcow2 -O vpc something.img something.vhd

Read this to get more info about supported virtual disk images formats. 阅读以获取有关支持的虚拟磁盘映像格式的更多信息。

There are inaccuracy in the question and in the answer. 问题和答案中都存在错误。 VHD is a image format for VirtualPC. VHD是VirtualPC的映像格式。 There is VHDX format for Hyper-V. Hyper-V有VHDX格式。 For migration to Hyper-V a right command will be for example: 对于向Hyper-V的迁移,正确的命令例如为:

qemu-img convert -f qcow2 something.img -O vhdx something.vhdx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Windows 主机和 Linux 来宾之间使用 Hyper-V 套接字 - Using the Hyper-V sockets between Windows host and Linux guest 为Hyper-V编译最小的Linux 3.5内核 - Compile a minimal Linux 3.5 Kernel for Hyper-V 如何在 Hyper-V 中访问 Amazon Linux - How can I reach Amazon Linux in Hyper-V Java进程突然在Linux Hyper-V VM上停止 - Java process suddenly stops on Linux Hyper-V VM 无法在Windows Hyper-V的Linux Redhat 6虚拟机上安装linux ic - Cannot install linux ic on Linux redhat 6 virtual machine on windows hyper-v 导出/保存? Linux 上的 Docker 容器到硬盘,以便在没有 Hyper-V 的情况下在 Windows 10 中导入/加载它? - Export/Save? Docker container on Linux to hard drive in order to Import/Load it in Windows 10 without Hyper-V? 如何使用Docker Desktop / Hyper-V / MobyLinuxVM从Windows主机LAN透明地访问Linux容器 - How to acces transparently Linux container from Windows host LAN with Docker Desktop / Hyper-V / MobyLinuxVM 如何从 linux 机器挂起 Hyper-V VM? - How can I suspend a Hyper-V VM from a linux machine? Windows Server 2022:使用没有 Hyper-V 的 WSL 为 Linux 映像安装 docker 容器运行时 - Windows Server 2022: Install docker container runtime for Linux images using WSL without Hyper-V Virtual PC 2007或Hyper-V用于个人桌面? - Virtual PC 2007 or Hyper-V for personal desktop use?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM