pct

  1. J

    Get current disk size of LXC via API

    Hey everyone! I am trying to get the current disk size of a LXC with its rootfs on the local pool, ext4-based. Nothing tricky. This is on PVE 7.4. The command I am executing, from the node where the LXC is, is as follows: # pvesh get /nodes/proxmox6/lxc/109/config --output-format=json...
  2. M

    Ansible direct connection to containers using PVE as a proxy

    I'm using Ansible to connect to containers and VM's via SSH, but I'm wondering if there is a better way to do it using PVE as a proxy, given there are tools such as pct exec, pct enter, and pct console that allow Proxmox to send commands directly to the containers. This would allow to connect to...
  3. N

    [SOLVED] possible bug: bindmount into running container no longer works

    Since 2022, I can bind-mount into a running comtainer (see this post). While this still worked in January 2024, it's no longer working now. root@pve:/# pct set 104 -mp1 /media/tmp,mp=/media/usb,replicate=0 400 Parameter verification failed. mp1: unable to hotplug mp1: failed to move 'mp2' into...
  4. J

    Prevent Tasks log running full with Push tasks

    When daily distributing files from a script to the different containers, the pct push task which is used gets logged in the Tasks window below of the PVE GUI. This makes it hard to monitor my other daily Tasks in this window. Is it possible to prevent sending/logging a pct command to the Tasks...
  5. T

    LXC - pct remote-migrate fails

    I'm trying to remote-migrate my LXC containers between 2 separate clusters but it keeps failing. Remote VM migrations do succeed (both online/offline). At this point I can't seem to find the exact point the migration fails at. Things I have searched for: The error "failed: Insecure dependency...
  6. M

    Best practice: Mount NAS (NFS) to LXC

    Hello, I wonder what the best practice is how to mount NAS to a LXC? Why? Reason: I don't want to estimate and manage the size of the LXC data storages in a containers, etc. (e.g. jellyfin, nextcloud, etc.) + have all the advantages of user management etc. of a NAS system. I basically just...
  7. J

    Start lxc as non-root

    Hi everyone! Although this is my first time posting on this forum, I have been using proxmox for a while and love it! I have previously always only logged in as root on my host and never had much issues. Now however I want to set up an lxc under a separate user which was much trickier than I...
  8. J

    Periodically run fsck on LXC

    Good day everyone! So I have a number of LXC on a Proxmox VE version 7.4 cluster with 5 nodes at the moment, and recently I had a file corruption problem on one of the nodes that affected the LXC in it (both SSD-ext4 pool and ZFS pool). That's in the past, but it got me thinking how am I...
  9. V

    Snippets hookscript can not change CT net config

    Hi all, I have a two node cluster PVE 7.3-4 on different data centers with different public networks. LXC container running on node1 and replicated to node2. I need to change container's network settings (MAC addres, ip-addres and gw) when it migrated on node2 and change it back when it...
  10. K

    backup jobs with proxmox containers (pct) fail on only one node

    Hey guys, currently all backup jobs including containers seem to fail on only one of our three nodes: ERROR: Backup of VM 100 failed - can't map rbd volume vm-100-disk-0@vzdump: rbd: map failed: (12) Cannot allocate memory The normal qemu VMs are not affected, as can be seen in the screenshot...
  11. G

    "pct list" time out

    Greetings On my new Proxmox 6.4.13, something got "stuck": pct list or any service pve-<whatever> stop hang. In the log I see lines like: systemd[1]: pvestatd.service: Stopping timed out. Terminating. scwv10 systemd[1]: pvedaemon.service: State 'stop-sigterm' timed out. Killing scwv10...
  12. R

    Can't destroy container

    I create a container and the strange thing is that it was created on disk-0 and disk-1 (I notice that I need to do the creation process 2 times maybe it's for that, I don't know) The thing is I want to destroy the container and I can't: root@ns3128946:~# pct destroy 106 zfs error: cannot...
  13. K

    Diagnosing mount: /var/lib/lxc/.pve-staged-mounts/rootfs: can't read superblock on /dev/loop3

    Hello proxmox fourms! I'm recently getting this error (and the same error minus line 1 when starting without using HA) when attempting to start this container. Im a bit stressed, because the backup for this container is a bit old, and id really like to restore this container to functionality. I...
  14. S

    pct fstrim <CT_ID> ignore /mnt ?

    any way to get the pct fstrim command to ignore the /mnt directory or mountpoints in the LXC? i get an error on all LXC with ZFS mountpoints: fstrim: /var/lib/lxc/121/rootfs/mnt/Media: the discard operation is not supported command 'fstrim -v /var/lib/lxc/121/rootfs/mnt/Media' failed: exit code 1
  15. A

    [SOLVED] Backup lxc Container from pve 4.4

    Hi, might sound a little stupid, but I am searching on Google since yesterday evening and don't know if I just search wrong. I tried to Upgrade my Proxmox from 4.4 to 6.3 So i backuped my VM and my Containers (via WebGUI) and tried to upgrade the Server. Well, this went horribly wrong, and...
  16. C

    pct unmount error: exit code 32

    I'm getting a consistent error when manually unmounting .raw lxc disks. I have several containers that I wanted to setup mount points within them for users /home directories and other "core" directories, so to do it without borking a live system, I had to shutdown the containers, manually...
  17. Z

    Löschung volume mount Disk bei LXC Container bei pct destroy <id> über Konsole

    Es wäre praktisch eine Abfrage zu implementieren, bevor einem die gesamte 2. angehängte Disk (als mount point wohl gemerkt) unterm Hintern weg gelöscht wird, oder diese schlicht zu ignorieren, wie bei anderen mounts. In meinem Fall war diese als "volume mount point mpX" angehängt und wurde...
  18. B

    How to add device (disk storage) in container

    Hi for everyone, Our context: We wish to install a database with cluster features in two or more containers. To do this kind of installation we need as mandatory requeriment, have availables disks to create a disk group which will be use as a global storage for both containers. I tried with NFS...
  19. V

    What is the exact difference between pct and lxc-[...]?

    Hello, what is the exact difference between pct and lxc-[...]? I have the perception that many commands are the same or similar e.g. pct create and lxc-create. Unfortunately, I didn't really find anything about lxc-[...] in the Wiki. So are there concrete reasons why you should use one or the...
  20. A

    [SOLVED] How to determine if a container is locked?

    How to determine if a container is locked? I want to check all containers and identify locked.

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!