]> git.proxmox.com Git - qemu-server.git/commit
cloudinit: create disk if it does not exist on start
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 29 Mar 2019 15:32:03 +0000 (16:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 29 Mar 2019 17:11:33 +0000 (18:11 +0100)
commit7e8ab2a9ab42d115f04de1912bbaf32d4bfeb07a
tree86a48dd4a95b7b610d16e52ec80219bc40b3ccda
parent6f3999e0f5bbcaa8cfec04d6321d1f81dc66d5cb
cloudinit: create disk if it does not exist on start

create a fixed size cloudinit disk if it is referenced in config and
does not exist. the size of the disk created when first added to the
config is reduced to 4MiB to match the one created in
commit_cloudinit_disk.
maximum file size per snippet file (network, user, meta) is increased to 1MiB.
preparation for offline migration without the cloudinit disk (that is
always regenerated on start).

also fixes #1807, although a further patch is required to change the
vmid on restore

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer/Cloudinit.pm