Sergey S.
Sergey S.

Reputation: 181

How to resize a linux container in proxmox

I'm trying to change an lxc container size in new proxmox 4 on debian jessie. But there is no checkbox (which was in openvz containers) for changing a size from proxmox interface. Changing a size in lxc container configuration file and restarting the services won't help. Backing up a container and then restoring it doesn't give an option of changing a size as well.

Upvotes: 5

Views: 13603

Answers (1)

Artem Pastukhov
Artem Pastukhov

Reputation: 71

According to proxmox forum, you can do this with command line :

pct resize <vmid> <disk> <size> [OPTIONS]

where disk is usually rootfs and size can use suffixes like 500G. More details in the help: pct help resize

http://web.archive.org/web/20151114072949/http://forum.proxmox.com/threads/23792-how-to-add-and-or-resize-a-LXC-disk

Upvotes: 7

Related Questions