LXC Container Import Disk

manjotsc

Active Member
Jul 2, 2020
73
6
28
Montreal, Quebec
How to do I import disk to LXC Container, I don't know the command for that. Command for VM to import a disk image qm importdisk <vmid> <path to image file> <storage> , I need one for LXC.
 
'container disks' are either:
* an image formated with ext4 (rbd, cifs, nfs, directory plugins, lvm, lvm-thin)
* a subvolume (zfs)


depending on what you want to import you probably could just add it as mountpoint to the container - and then rsync it to a new volume:
see: https://pve.proxmox.com/pve-docs/chapter-pct.html#pct_mount_points -

I hope this helps!