cannot move cloudinit to a new storage from gui

Pca

New Member
Jul 1, 2021
19
1
1
in proxmox 6.4

the cloudinit drive cannot be moved from the gui : the button is greyed out


if I use the CLI to move the drive to a new storage it works but I have an error at end of processing

Code:
root@pmx [~]: qm move_disk 258 ide0 newstorage
create full clone of drive ide0 (oldstorage:vm-258-cloudinit)
  Logical volume "vm-258-cloudinit" created.
Use of uninitialized value $completion in string eq at /usr/share/perl5/PVE/QemuServer.pm line 7252.
 
Cloud-init is a disposable disk, it is regenerated on each VM start and is not used once VM is running. The move from UI is not supported in either 6.x or 7.x PVE. You should just remove and re-add it with your target storage. You can also force-regenerate it from UI afterwards.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Pca
humm strange
for most vms, I can delete the drive, then immediately add a cloudinit drive again then regenerate the image, so I dont loose the cloudinit parameters.

But for some other vms, when I remove cloudinit it stays in pending remove
Fortunatly then I can cancel the remove by regenerating the image.

so for those vms I cannot modify the storage of this drive without shuting the vm down and so I will loose the cloudinit infos.
 
I did some testing. As the cloudinit drive is IDE related it is in busy state in a running VM so cannot be suppressed online and is pending.
So the correct action is :
- stop the VM
- suppress cloudinit drive
- immediatly recreate it on the desired storage
- restart

and so the parameters are not lost.

But the VM should be stopped which is really a pain in a production environnement.
 
  • Like
Reactions: benbutton

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!