Skip to content

chu0119/qcow2vmdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qcow2vmdk

English | 中文


English

A Windows desktop tool for converting QCOW2 disk images to VMware VMDK format with automatic VMX configuration generation.

Features

  • Convert QCOW2 images to VMware-compatible VMDK (Workstation & ESXi)
  • Built-in portable qemu-img.exe — no separate installation required
  • Automatic .vmx configuration file generation
  • Dark-themed PyQt5 GUI with drag-and-drop support
  • 28 guest OS presets (Windows, Linux, BSD, Solaris)
  • Real-time conversion progress and logging
  • BIOS / UEFI firmware selection
  • VMX preview and editor

Quick Start

  1. Download the latest release from Releases
  2. Extract the archive
  3. Double-click launcher.bat
  4. Drag a .qcow2 file onto the window, configure settings, and click Start

Requirements

  • Windows 10/11 (x64)
  • Python 3.10+ (auto-installed by launcher.bat if missing)
  • No admin privileges required

Usage

Run launcher.bat or python main.py. The GUI supports:

  • Drag & drop .qcow2 files
  • Browse button for file selection
  • Auto-fill VM name from filename
  • Guest OS selection with automatic firmware/RAM defaults
  • VMX preview and editing before conversion

Output

The converter generates a complete VMware VM directory:

output/
  MyVM/
    MyVM.vmx      # VMware configuration
    MyVM.vmdk      # Virtual disk
    MyVM.nvram     # UEFI firmware (if UEFI selected)

Supported Platforms

Platform VMDK Subformat Use Case
VMware Workstation / Fusion monolithicSparse Local desktop virtualization
VMware ESXi / vSphere streamOptimized Server / cloud deployment

Supported Guest OS

Windows 7/10/11, Windows Server 2016-2025, Ubuntu, CentOS, Debian, RHEL, Fedora, Arch Linux, openSUSE, SLES, FreeBSD, NetBSD, Solaris, and more.

Project Structure

qcow2vmdk/
├── main.py                  # Application entry point
├── launcher.bat             # Windows launcher (auto-installs PyQt5)
├── requirements.txt         # Python dependencies
├── gui/                     # PyQt5 GUI modules
│   ├── main_window.py       # Main window & conversion thread
│   ├── config_panel.py      # VM configuration panel
│   ├── progress_panel.py    # Conversion progress display
│   ├── log_panel.py         # Log output panel
│   ├── vmx_editor.py        # VMX preview/edit dialog
│   ├── theme.py             # Dark theme stylesheet
│   └── widgets.py           # Custom widgets (DropZone)
├── converter/               # Conversion engine
│   ├── qemu_wrapper.py      # qemu-img CLI wrapper
│   ├── vmx_generator.py     # VMX config file generator
│   └── qcow2_converter.py   # Conversion orchestrator
├── config/                  # Configuration data
│   ├── os_profiles.py       # Guest OS profiles
│   └── vmx_templates.py     # Preset templates
└── tools/                   # Bundled qemu-img.exe + DLLs

Development

git clone https://github.com/chu0119/qcow2vmdk.git
cd qcow2vmdk
pip install -r requirements.txt
python main.py

Credits

License

GNU General Public License v3.0


中文

一款 Windows 桌面工具,用于将 QCOW2 磁盘镜像转换为 VMware VMDK 格式,并自动生成完整的虚拟机配置文件。

功能特性

  • 将 QCOW2 镜像转换为 VMware 兼容的 VMDK 格式(支持 Workstation 和 ESXi)
  • 内置便携版 qemu-img.exe,无需单独安装
  • 自动生成 .vmx 虚拟机配置文件
  • 深色主题 PyQt5 图形界面,支持拖放操作
  • 预设 28 种客户机操作系统(Windows、Linux、BSD、Solaris)
  • 实时转换进度显示和日志输出
  • 支持 BIOS / UEFI 固件选择
  • VMX 配置预览与编辑

快速开始

  1. Releases 下载最新版本
  2. 解压压缩包
  3. 双击 launcher.bat
  4. .qcow2 文件拖放到窗口中,配置参数后点击开始转换

系统要求

  • Windows 10/11 (x64)
  • Python 3.10+(launcher.bat 会自动安装)
  • 无需管理员权限

使用方法

运行 launcher.batpython main.py。界面支持:

  • 拖放 .qcow2 文件到窗口
  • 浏览按钮选择文件
  • 根据文件名自动填充虚拟机名称
  • 选择客户机系统后自动设置固件和内存
  • 转换前可预览和编辑 VMX 配置

输出结构

转换器会生成完整的 VMware 虚拟机目录:

output/
  MyVM/
    MyVM.vmx      # VMware 配置文件
    MyVM.vmdk      # 虚拟磁盘
    MyVM.nvram     # UEFI 固件(仅 UEFI 模式)

支持的目标平台

平台 VMDK 子格式 用途
VMware Workstation / Fusion monolithicSparse 本地桌面虚拟化
VMware ESXi / vSphere streamOptimized 服务器 / 云端部署

支持的客户机操作系统

Windows 7/10/11、Windows Server 2016-2025、Ubuntu、CentOS、Debian、RHEL、Fedora、Arch Linux、openSUSE、SLES、FreeBSD、NetBSD、Solaris 等。

项目结构

qcow2vmdk/
├── main.py                  # 应用程序入口
├── launcher.bat             # Windows 启动器(自动安装 PyQt5)
├── requirements.txt         # Python 依赖
├── gui/                     # PyQt5 图形界面模块
│   ├── main_window.py       # 主窗口和转换线程
│   ├── config_panel.py      # 虚拟机配置面板
│   ├── progress_panel.py    # 转换进度面板
│   ├── log_panel.py         # 日志输出面板
│   ├── vmx_editor.py        # VMX 预览/编辑对话框
│   ├── theme.py             # 深色主题样式表
│   └── widgets.py           # 自定义控件(拖放区域)
├── converter/               # 转换引擎
│   ├── qemu_wrapper.py      # qemu-img 命令行封装
│   ├── vmx_generator.py     # VMX 配置文件生成器
│   └── qcow2_converter.py   # 转换流程编排
├── config/                  # 配置数据
│   ├── os_profiles.py       # 客户机操作系统配置
│   └── vmx_templates.py     # 预设模板
└── tools/                   # 内置 qemu-img.exe 及依赖库

开发

git clone https://github.com/chu0119/qcow2vmdk.git
cd qcow2vmdk
pip install -r requirements.txt
python main.py

致谢

开源协议

GNU General Public License v3.0

About

Windows desktop tool to convert QCOW2 disk images to VMware VMDK format

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors