Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Proxmox ====== ===== Create our own LXC container template ===== * Download the base image <code> pveam update pveam download <STOCKAGE> centos-7-default_20170504_amd64.tar.xz mkdir ~/Workdir && cd ~/Workdir tar -xJvf /mnt/pve/<STOCKAGE>/template/cache/centos-7-default_20170504_amd64.tar.xz chroot . </code> * Once you are into the chroot, make your changes <code> echo "nameserver 80.67.169.12" > /etc/resolv.conf yum update yum install php-fpm httpd php-mysql mkdir /var/log/httpd systemctl enable httpd systemctl enable php-fpm echo "<?php echo 'Hello PHP world'; ?>" > /var/www/html/index.php <CTRL+D> </code> Put it back in place <code> tar -cJvf /mnt/pve/<MONSTOCKAGE>/template/cache/mon-lamp-centos-a-moi.tar.xz . </code> cheatsheet/proxmox.txt Last modified: 2024/10/14 20:59by 127.0.0.1