]> git.proxmox.com Git - qemu-server.git/commit
cloud-init: hotplug support
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 17 Aug 2015 13:46:07 +0000 (15:46 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Mar 2018 08:11:31 +0000 (09:11 +0100)
commit9ed7a77c6e4708eaf4c2d29016442e9aa5e9494d
tree6b8f3652f5ceca2bcee9177b84f96968137c2845
parent2d9ddec5af228dcad953d3b6323062546290633b
cloud-init: hotplug support

*) always replace old cloudinit images
*) apply pending cloudinit changes when generating a new
image

For cloudinit we now always use vdisk_free before
vdisk_alloc in order to always replace old images, this
allows us to hotplug a new drive by setting it to
`none,media=cdrom` first (to eject the disk), then setting
it back to 'storage:cloudinit' to have a new image generated
after applying the currently pending changes.
PVE/API2/Qemu.pm
PVE/QemuServer.pm