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!
 

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!