Skip to content
Convert virtualbox to virt-manager

Convert virtualbox to virt-manager

Convert virtualbox to virt-manager

The exact command to convert a VirtualBox virtual disk to a format compatible with Virt-Manager (KVM/QEMU) is qemu-img convert.

Assuming Standard VDI to QCOW2 ConversionBecause VirtualBox uses multiple disk formats, this response assumes you are converting a standard VirtualBox .vdi file into a .qcow2 file, which is the native, high-performance format optimized for Virt-Manager.

Run the Conversion Command

Open your terminal and run the following command to convert the disk image:

qemu-img convert -f vdi -O qcow2 input_disk.vdi output_disk.qcow2

Understand the Command Optionsqemu-img convert:

The core QEMU utility used for changing disk image formats.-f vdi: Defines the format of your source image (VirtualBox).-O qcow2: Defines the Output format (Virt-Manager standard).input_disk.vdi: The path to your existing VirtualBox disk file.output_disk.qcow2: The path where your new KVM disk file will be saved.

Create the Virt-Manager Virtual Machine

Once the conversion finishes, you cannot just double-click the file. You must attach it to a new virtual machine:

  • Open Virt-Manager (Virtual Machine Manager).Click File > New Virtual Machine.
  • Choose Import existing disk image and click Forward.
  • Browse to your newly created output_disk.qcow2 file.Set your RAM, CPU, and network preferences to match your old VirtualBox configuration.
  • Click Finish to launch your converted machine.