Search results

  1. J

    Mapping single uid/gid to unprivileged LXC container

    Very good point about the reason for unprivileged container use... Thank you. Perhaps I should just give ownership of my mounted disk to user 100000 and call it a day. (At this point, this is just a theoretical exercise to help me better understand mappings. and perhaps some future readers) (By...
  2. J

    Mapping single uid/gid to unprivileged LXC container

    Thank you very much - I gave it a shot but when trying to start the container, I get: lxc_map_ids: 2878 newuidmap failed to write mapping "newuidmap: uid range [1-65566) -> [100001-165566) not allowed": newuidmap 20329 0 0 1 1 100001 65565 lxc_spawn: 1726 Failed to set up id mapping...
  3. J

    Mapping single uid/gid to unprivileged LXC container

    I'm loathe to post this asking for help because there are already several threads about uid/gid mapping for an unprivileged LXC container (believe me, I've read and re-read them all!), and there's even @DougD's python script to automate the process.. so I feel really dumb... but I've been trying...
  4. J

    [SOLVED] Postfix differences when installing on LXC vs KVM

    On second thought, I think it's better to solve it generically (cobbled together from a stackoverflow post): # Install postfix only if not already installed: if [ $(dpkg-query -W -f='${Status}' postfix 2>/dev/null | grep -c "ok installed") -eq 0 ]; then DEBIAN_FRONTEND=noninteractive apt-get...
  5. J

    [SOLVED] Postfix differences when installing on LXC vs KVM

    Stoiko, thank you so much for the information! I didn't realize that postfix was installed in the LXC template. I'll report back if any issues - thank you for taking the time to help :-)
  6. J

    [SOLVED] Postfix differences when installing on LXC vs KVM

    Just a strange thing I found when installing postfix on kvm vs lxc. I tested this with debian 10 and ubuntu 20.04, installed using the container templates, and bare bones installations using the ISOs on KVM. When installing postfix, on the KVM it runs the reconfigure script, but on LXC it...
  7. J

    [SOLVED] Can't install snap in LXC container

    Thanks for this thread. I can confirm that `snap install hello-world` gives me a similar error, but running it a second time works. My error is: error: cannot perform the following tasks: - Setup snap "core" (10823) security profiles (cannot reload udev rules: exit status 1 udev output: Failed...
  8. J

    Finding the true size of VMs/CTs on lvm-thin

    Thank you so much @H4R0 -- I knew about those commands, but forgot. I guess using lvs and looking at the Data Percentage is the closest I'll get to what I'm looking for. Thanks again!
  9. J

    Finding the true size of VMs/CTs on lvm-thin

    Hi, I've been searching for a way to do this. I have a pretty standard PVE installation (ext4, lvm-thin). I'm trying to find a way to get the true amount of disk space used by the various KVMs and LXC containers. I've read the documentation and tried pvesm, read google results, searched the...
  10. J

    install gui with lxc container

    Looks awesome, thank you! Just a tiny typo: should be x2goserver-xsession
  11. J

    Recover a file from an LXC container that won't start

    One of my debian containers refuses to start .. it may be related to the fact that I lost one of my proxmox server's drives (that kept CT and VM backups and LXC templates...) anyway, the container won't start. I ran lxc-start -n 100 -F -l DEBUG -o /tmp/lxc-100.log and it gave me this output...
  12. J

    [SOLVED] Mount external HDD in LXC container

    I'm also struggling with this... I've mounted internal host drives into my LXC containers for years with a simple pct set command, but this is the first time I've tried to mount an external USB drive and I've encountered the nobody:nogroup issue. So I'm trying to map the ID's but I'm having a...
  13. J

    [SOLVED] OpenVPN in unprivileged container

    Hi Wolfgang, I just wanted to followup with you and say that I've got OpenVPN server working just fine in an unprivileged LXC container (Debian 10 template) after incorporating your guidance. Thank you so very much for your help :)
  14. J

    [SOLVED] OpenVPN in unprivileged container

    Hi Wolfgang, Thank you so much for your thoughtful reply. I had to spend some time researching the items you referred to. It looks like I have a couple options. Let me see if I have understood you correctly. I could set the permissions using the classic `chown` way or by adding the...
  15. J

    [SOLVED] OpenVPN in unprivileged container

    Sorry to bring up this old thread, but I've been trying to run an openvpn server in an unprivileged container. Previously I was able to do this just fine in a Debian 9 container. But lately it hasn't been working. I've tried Bill's steps above and added lxc.mount.entry = /dev/net dev/net none...
  16. J

    auto start sshd

    OK I saw that the boot sequence was getting stuck and displaying "Failed to start Raise network interfaces" I used the web gui and changed the network interface ipv6 setting from DHCP to SLAAC (found the answer here...
  17. J

    auto start sshd

    Thank you Dominik for your suggestion. I reviewed the proxmox CT docs again and investigated further using this command: lxc-start -n 102 -F -l DEBUG -o /tmp/lxc-102.log And sure enough, there are some things that are hanging the boot sequence. I realized I was trying to use SSH too quickly and...
  18. J

    auto start sshd

    OK I started experiencing this again and it appears that a plain vanilla CT works okay, but once I update it, sshd no longer autostarts. I tested it by creating a brand new container, using the provided/downloadable Ubuntu 16.04 template from the web gui, all default settings except I gave it a...
  19. J

    auto start sshd

    Thank you, @fireon. I rebuilt my host on a new faster drive and restored my containers and VMs. And sshd starts up without issue. Thank you for your suggestion - I will keep it in mind. I wasn't aware of that limit. :)
  20. J

    auto start sshd

    I have this same issue. Plain vanilla Ubuntu server 16.04 LXC template. It will not start SSHD automatically. I have to pct enter <id> and then service start ssh. Any ideas would be appreciated! Perhaps there is something in the tea leaves here (broke the link because I can't post links as a...