Skip to content

ywjno/img2kvm-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2kvm-rs

A utility that convert disk image in Proxmox VE.

Usage

The following command can conveniently convert an image file into the disk of a specified virtual machine in Proxmox VE.

$ img2kvm -n <IMG_FILE> -i <VM_ID> -s <STORAGE>

At this point, the virtual machine will show an unused disk.

For more help, please run img2kvm -h.

CLI examples

$ img2kvm -i openwrt-22.03.5-x86-64-generic-squashfs-combined-efi.img.gz -i 100

The image file supports files ending with iso and img, it also supports 7z, gz, xz, and zip extensions.

How to Build

Before executing the command cargo build --release, you need to install liblzma library.

  • In windwos

    > vcpkg install liblzma:x64-windows-static-md
  • In Linux like Ubuntu

    sudo apt-get install liblzma-dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages