pct
? It got exec
, enter
and mount
commands./sbin/init
is broken. Please note also that doctoring on CTs with a simple chroot
can be dangerous (not much protection there) and also break stuff (like user/group ID ranges for unprivileged CTs not matching anymore).FYI: Our repos only get around 1 percentage of traffic from 3.x and older hosts combined, trying to poll for updates, which are non-existent since well over five years.There are many Proxmox users who still use v3.4.
I posted a fair warning and explanation, in addition to helpers that allow most relevant operations for modern containers. OpenVZ is EOL and LXC isn't working 1:1 like it, those are just facts. OpenVZ isn't coming back either, LXC, with its fully up streamed technology, is here to stay OTOH. So, embracing that sooner than later, and 7 years after initial support in PVE isn't really that early, will avoid future headaches and possible liability issues if you provide services for others.When pvebash was resurrected in it's heyday, there were many kudos for it in the forum too. This will help self-service by those in the know. Caveats are welcome. Scares and Sermonising - No.
That is IMO not exactly correct. I am the one that added Devuan support to DAB and also provided the templates in our CT template infrastructure; neither was it looked down nor do we embrace it fully (it's just available there alongside many other distros, as I find a wide variety of basic distros good to have). And personally I'd not dare using 3.4 nowadays in production, sorry but that's just negligent - at least if it's not fully air gapped and if a single third party, or otherwise not 100% trusted CT/process runs on it, as then it's just too easy to break out/attack.Anyone in production use of the PVE in a dated version will have no incentive to change at all like the systemd that led to Devuan that was looked down in the forum initially to now embracing it fully.
Sure that, IME what helps is to keep it basic and avoid messing with CT internals from the outside. Higher level automation like ansible or similar can also help to avoid tight coupling with the underlying base system, making it easier to process some changes there.Furthermore, the hassles of migrating from highly customised OpenVZ is a nightmare no one wants to waste their lifetime on.
Note that all tree mentioned distros are EOL even by the Debian LTS project (Jessie since June 2020, the others way before that).Recent versions of /usr/bin/dab and /usr/share/perl5/PVE/DAB.pm simply use dab task php which does not address the absence of the package php in certain old distributions (EOL) like squeeze, wheezy and jessie and use php5 instead.
Already available by starting the CT and opening a shell, both dooable from the web interface. As said, aUseful feature will be get direct chroot into rootfs for each container from the GUI.
chroot
alone is neither secure nor really functional (in most CTs anyway) and won't be added.dab exec ln -s ....,
dab exec mv -r...
dab exec cp -r ...
One will be released for Proxmox VE 7.x over the next weeks, Proxmox VE 6.x is EOL since a bit over a month a will not get any such updates anymore: https://pve.proxmox.com/pve-docs/chapter-pve-faq.html#faq-support-tableHope a DAB v3.4.2 deb file is released too and another for PVE 6.x too.
Wildcards are interpreted by the shell itself, so you need to execute the command in a shell if you want to use them, for example:DAB for OpenVZ could use constructs having wildcards (*) in statements like:
...
Tried various constructs of escaping and in ${BASEDIR} type direct constructs as well.
dab exec sh -c 'ls -l /var/l*'
cp -r ${BASEDIR}/usr/share/fonts/truetype/freefont/ ${BASEDIR}/var/www/frontac/reporting/fonts/
cp -r ${BASEDIR}/usr/share/fonts/truetype/ttf-bitstream-vera/ ${BASEDIR}/var/www/frontac/reporting/fonts/
cp -r ${BASEDIR}/usr/share/fonts/truetype/ttf-dejavu/ ${BASEDIR}/var/www/frontac/reporting/fonts/
cp -r ${BASEDIR}/usr/share/fonts/truetype/ttf-liberation/ ${BASEDIR}/var/www/frontac/reporting/fonts/
tar -czpf ${BASEDIR}/var/www/frontac/reporting/fonts/fonts.tar.gz ${BASEDIR}/usr/share/fonts/truetype/*/*.ttf
tar -xzpf ${BASEDIR}/var/www/frontac/reporting/fonts/fonts.tar.gz -C ${BASEDIR}/var/www/frontac/reporting/fonts/
rm -rf ${BASEDIR}/var/www/frontac/reporting/fonts/fonts.tar.gz
dab exec sh -c 'ln -s /usr/share/fonts/truetype/ttf-dejavu/*.ttf /var/www/frontac/reporting/fonts/.'
dab exec sh -c 'ln -s /usr/share/fonts/truetype/freefont/*.ttf /var/www/frontac/reporting/fonts/.'
dab exec sh -c 'ln -s /usr/share/fonts/truetype/ttf-bitstream-vera/*.ttf /var/www/frontac/reporting/fonts/.'
dab exec sh -c 'ln -s /usr/share/fonts/truetype/ttf-liberation/*.ttf /var/www/frontac/reporting/fonts/.'
dab exec sh -c 'ln -s /usr/share/fonts/truetype/ttf-dejavu/*.ttf /var/www/frontac/reporting/fonts/.'
ln: missing file operand
Try `ln --help' for more information.
ve_exec failed - status 1
ve_exec failed - status 1
make: *** [all] Error 1
dab exec ln -s /usr/share/fonts/truetype/ttf-dejavu/*.ttf /var/www/frontac/reporting/fonts/.