Move disk LXC to VM

Of course it is possible but is done by shell as not available in gui. Approach is just different depending where the vm and lxc on host resides and which storage type you use. Eg. first have rocky9 lxc on one pve and then move to ubuntu24 vm on other pve :
1740221412454.png
1740221421391.png

Edit: Just seen they have different local timezone settings of 1h ... :)
Longest part is shutdown and new boot for accepting new disk and as it's here a file move between dir's on nfs server in a second even it could be x-TB's so done in a handful on minutes.
 
Last edited:
Of course it is possible but is done by shell as not available in gui. Approach is just different depending where the vm and lxc on host resides and which storage type you use. Eg. first have rocky9 lxc on one pve and then move to ubuntu24 vm on other pve :
View attachment 82753
View attachment 82754

Edit: Just seen they have different local timezone settings of 1h ... :)
Longest part is shutdown and new boot for accepting new disk and as it's here a file move between dir's on nfs server in a second even it could be x-TB's so done in a handful on minutes.
thank you very much . But my lxc disk is put in to nfs share on nas . I can copy this raw image and rename this for new wm example vm130 ? I
 
Yes and put in folder 130 !! After edit config files for lxc (for remove disk here) and vm (add disk here), then vm stop and start.
 
Last edited:
  • Like
Reactions: frankz