Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disk import when VM template has multiple disks #96

Merged
merged 1 commit into from
Jul 22, 2022

Commits on Jul 22, 2022

  1. Fix disk import when VM template has multiple disks

    The disk import operation is not exposed via Proxmox APIs, so implemented as a sequence of commands run as an inline script via ssh.
    `qm importdisk` is used to import a disk into VM from an external file, however, it auto-generates the disk ID.
    The following command `qm set` is used to assign the imported disk to a VM, and it requires the disk ID as a parameter.
    
    Update the import logic to read the disk ID from the output of `qm importdisk` command rather than trying to assume it from a number of disks defined in the VM.
    bpg committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    367061e View commit details
    Browse the repository at this point in the history