Removed mklink for git
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
---
|
||||
type: "topic"
|
||||
created: "2024-01-06T01:25:36.042Z"
|
||||
updated: "2024-01-06T01:25:36.042Z"
|
||||
created: 2024-01-06T01:25:36.042Z
|
||||
type: topic
|
||||
updated: 2024-11-01T20:53:57.554Z
|
||||
---
|
||||
|
||||
# Proxmox
|
||||
@ -446,3 +446,750 @@ GRUB_CMDLINE_LINUX_DEFAULT="quiet console=tty0 console=ttyS0,115200"
|
||||
update-grub
|
||||
reboot
|
||||
```
|
||||
|
||||
```bash Sat Jun 15 2024 17:34:15 GMT-0700 (Mountain Standard Time)
|
||||
# https://www.youtube.com/watch?v=kcpu4z5eSEU&t=225s
|
||||
# https://tteck.github.io/Proxmox/
|
||||
# https://github.com/tteck/Proxmox
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"
|
||||
uname -r
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/kernel-clean.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/homeassistant-core.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/filebrowser.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/webmin.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/trilium.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/photoprism.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/zabbix.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/turnkey/turnkey.sh)"
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/all-templates.sh)"
|
||||
```
|
||||
|
||||
```conf
|
||||
[INFO] LXC container '107' was successfully created, and its IP address is 192.168.11.67.
|
||||
|
||||
[INFO] Proceed to the LXC console to complete the setup.
|
||||
|
||||
[INFO] login: root
|
||||
[INFO] password: pzSVEbKz+2o=
|
||||
```
|
||||
|
||||
```conf
|
||||
│ │
|
||||
│ Please enter new password for the 'postgres' account. │
|
||||
│ │
|
||||
│ Password Requirements │
|
||||
│ - must be at least 8 characters long │
|
||||
│ - must contain characters from at least 3 of the │
|
||||
│ following categories: uppercase, lowercase, numbers, │
|
||||
│ symbols │
|
||||
Postgres1178
|
||||
```
|
||||
|
||||
```conf
|
||||
│ │
|
||||
│ Enter new password for Odoo Database Management - │
|
||||
│ create/delete/manage Odoo DBs. This password will also │
|
||||
│ login to 'admin' account of default/example Odoo. │
|
||||
│ │
|
||||
│ Password Requirements │
|
||||
│ - must be at least 8 characters long │
|
||||
│ - must contain characters from at least 3 of the │
|
||||
│ following categories: uppercase, lowercase, numbers, │
|
||||
│ symbols. Also must NOT contain these characters: \ / │
|
||||
Admin1178
|
||||
```
|
||||
|
||||
```conf
|
||||
1YaAz1wf4M8=
|
||||
│ Please enter new password for the MySQL 'adminer' │
|
||||
│ account. │
|
||||
│ │
|
||||
│ Password Requirements │
|
||||
│ - must be at least 8 characters long │
|
||||
│ - must contain characters from at least 3 of the │
|
||||
│ following categories: uppercase, lowercase, numbers, │
|
||||
│ symbols │
|
||||
Admin1178
|
||||
```
|
||||
|
||||
```conf
|
||||
│ │
|
||||
│ Enter new password for the Invoice Ninja 'admin' │
|
||||
│ account. │
|
||||
│ │
|
||||
│ Password Requirements │
|
||||
│ - must be at least 8 characters long │
|
||||
│ - must contain characters from at least 3 of the │
|
||||
│ following categories: uppercase, lowercase, numbers, │
|
||||
│ symbols │
|
||||
Admin1178
|
||||
```
|
||||
|
||||
```conf
|
||||
| API secret is: │
|
||||
│ │
|
||||
│ acGowYxiaTIJMw0ZgYxwaYFBn1k3yQlJ │
|
||||
│ │
|
||||
│ Note the API secret is stored in plain text in the .env │
|
||||
│ file.
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 19:24:45 GMT-0700 (Mountain Standard Time)
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 107 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 107 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Imported from Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 20:21:58 GMT-0700 (Mountain Standard Time)
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 109 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 109 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Zabbix imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 20:28:06 GMT-0700 (Mountain Standard Time)
|
||||
# Home Assistant-Core http://192.168.11.70:8123
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 110 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 110 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'HomeAssistantCore imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 20:28:06 GMT-0700 (Mountain Standard Time)
|
||||
# [INFO] login: root
|
||||
# [INFO] password: IDQw6cA1HDk=
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 104 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 104 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Ansible imported from TurnKey Proxmox' >> metadata.yaml
|
||||
tar -czvf 104-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 22:01:14 GMT-0700 (Mountain Standard Time)
|
||||
# [INFO] login: root
|
||||
# [INFO] password: EIm+abycJK0=
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 105 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 105 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Invoice Ninja imported from TurnKey Proxmox' >> metadata.yaml
|
||||
tar -czvf 105-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 22:39:11 GMT-0700 (Mountain Standard Time)
|
||||
# [INFO] login: root
|
||||
# [INFO] password: bDJcCyLQusM=
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 106 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 106 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Odoo imported from TurnKey Proxmox' >> metadata.yaml
|
||||
tar -czvf 106-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 22:47:30 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.66:3001
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 100 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 100 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Up Time Kuma imported from Proxmox' >> metadata.yaml
|
||||
tar -czvf 100-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 22:55:09 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.66:3001
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 101 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 101 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'CasaOS imported from Proxmox' >> metadata.yaml
|
||||
tar -czvf 101-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 23:06:39 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.65:8096
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 102 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 102 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Emby imported from Proxmox' >> metadata.yaml
|
||||
tar -czvf 102-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 23:21:30 GMT-0700 (Mountain Standard Time)
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 103 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 103 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'NextCloud imported from Proxmox' >> metadata.yaml
|
||||
tar -czvf 103-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
Creating a NextCloudPi LXC using the above advanced settings
|
||||
✓ Using local for Template Storage.
|
||||
✓ Using local-lvm for Container Storage.
|
||||
✓ Updated LXC Template List
|
||||
✓ LXC Container 103 was successfully created.
|
||||
✓ Started LXC Container
|
||||
✓ Set up Container OS
|
||||
✓ Network Connected: 192.168.11.62
|
||||
✓ IPv4 Internet Connected
|
||||
✗ IPv6 Internet Not Connected
|
||||
✓ DNS Resolved github.com to 140.82.113.4
|
||||
✓ Updated Container OS
|
||||
✓ Installed Dependencies
|
||||
- Installing NextCloudPi (Patience)
|
||||
[ERROR] in line 23: exit code 0: while executing command "$@" > /dev/null 2>&1
|
||||
The silent function has suppressed the error, run the script with verbose mode enabled, which will provide more detailed output.
|
||||
```
|
||||
|
||||
```bash Sun Jun 23 2024 23:06:39 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.65:8096
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 102 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 102 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Emby imported from Proxmox' >> metadata.yaml
|
||||
tar -czvf 102-metadata.tar.gz metadata.yaml
|
||||
rm metadata.yaml
|
||||
```
|
||||
|
||||
```bash Tue Jun 25 2024 18:54:24 GMT-0700 (Mountain Standard Time)
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 103 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 103 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'PhotoPrism imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Tue Jun 25 2024 19:53:41 GMT-0700 (Mountain Standard Time)
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 108 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 108 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'VaultWarden imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Tue Jun 25 2024 20:21:03 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.70:8080/admin admin|abc123
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 109 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 109 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'OwnCast imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Thu Jun 27 2024 15:33:44 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.70:5001
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 111 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 111 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Dockge-Immich imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Thu Jun 27 2024 15:33:44 GMT-0700 (Mountain Standard Time)
|
||||
# http://192.168.11.71:5001
|
||||
cd /tmp
|
||||
pct list
|
||||
rm metadata.*
|
||||
vzdump 112 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 112 | grep arch: | awk '{print $2}' ` > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
```
|
||||
|
||||
```bash Thu Jun 27 2024 16:08:51 GMT-0700 (Mountain Standard Time)
|
||||
pct enter 112
|
||||
exit
|
||||
```
|
||||
|
||||
- [Passing Storage to a Container Getting Started with Proxmox 8](https://www.youtube.com/watch?v=qa2Q7tZVol8)
|
||||
```bash Thu Jun 27 2024 18:46:07 GMT-0700 (Mountain Standard Time)
|
||||
nano /etc/pve/lxc/112.conf
|
||||
```
|
||||
|
||||
### Proxmox SDN (Software-Defined Network)
|
||||
|
||||
- [Proxmox SDN](https://pve.proxmox.com/pve-docs/chapter-pvesdn.html)
|
||||
|
||||
```bash
|
||||
cat /etc/network/interfaces
|
||||
# ...
|
||||
# source /etc/network/interfaces.d/*
|
||||
apt update
|
||||
apt install dnsmasq -y
|
||||
systemctl disable --now dnsmasq
|
||||
apt install frr-pythontools -y
|
||||
exit
|
||||
reboot
|
||||
# Use GUI ... (sdn)
|
||||
```
|
||||
|
||||
- [Proxmox-Cheat-Sheat](https://sweworld.net/cheatsheets/proxmox/)
|
||||
|
||||
| VMID | Status | Lock | Name |
|
||||
|------|---------|------|-----------------------|
|
||||
| 100 | stopped | | uptimekuma |
|
||||
| 101 | stopped | | casaos |
|
||||
| 102 | stopped | | emby |
|
||||
| 103 | stopped | | photoprism |
|
||||
| 104 | stopped | | turnkey-ansible |
|
||||
| 105 | stopped | | turnkey-invoice-ninja |
|
||||
| 106 | stopped | | turnkey-odoo |
|
||||
| 107 | stopped | | readeck |
|
||||
| 108 | stopped | | vaultwarden |
|
||||
| 109 | stopped | | owncast |
|
||||
| 110 | stopped | | homeassistant-core |
|
||||
|
||||
### VM-Disk and LXD
|
||||
|
||||
```bash
|
||||
# x9 Mount Point vm-100-disk-0-9
|
||||
mkdir /mnt/vm-100-disk-1
|
||||
mkdir /mnt/vm-100-disk-2
|
||||
mkdir /mnt/vm-100-disk-3
|
||||
mkdir /mnt/vm-100-disk-4
|
||||
mkdir /mnt/vm-100-disk-5
|
||||
mkdir /mnt/vm-100-disk-6
|
||||
mkdir /mnt/vm-100-disk-7
|
||||
mkdir /mnt/vm-100-disk-8
|
||||
mkdir /mnt/vm-100-disk-9
|
||||
bash -c "$(wget -qLO - http://localhost/proxmox-tteck/ubuntu.sh)"
|
||||
# nano /etc/pve/nodes/pve/lxc/100.conf
|
||||
mount /dev/pve/vm-100-disk-1 /mnt/vm-100-disk-1
|
||||
cp /home/free-file-sync/proxmox/ubuntu-noble-gogs-backup-06-28-2024.tar.xz /mnt/vm-100-disk-1/.
|
||||
ls /mnt/vm-100-disk-1
|
||||
umount /mnt/vm-100-disk-1
|
||||
bash -c "$(wget -qLO - http://localhost/proxmox-tteck/ubuntu.sh)"
|
||||
nano /etc/pve/nodes/pve/lxc/101.conf
|
||||
# mp0: local-lvm:vm-100-disk-1,mp=/mnt/vm-100-disk-1,size=8G
|
||||
pct enter 101
|
||||
apt-get update
|
||||
apt upgrade -y
|
||||
apt install snapd -y
|
||||
exit
|
||||
pct enter 101
|
||||
snap install lxd
|
||||
/snap/bin/lxd init
|
||||
```
|
||||
|
||||
```yaml
|
||||
config: {}
|
||||
networks:
|
||||
- config:
|
||||
ipv4.address: auto
|
||||
ipv6.address: none
|
||||
description: ""
|
||||
name: lxdbr0
|
||||
type: ""
|
||||
project: default
|
||||
storage_pools:
|
||||
- config: {}
|
||||
description: ""
|
||||
name: default
|
||||
driver: dir
|
||||
storage_volumes: []
|
||||
profiles:
|
||||
- config:
|
||||
security.privileged: "true"
|
||||
description: ""
|
||||
devices:
|
||||
eth0:
|
||||
name: eth0
|
||||
network: lxdbr0
|
||||
type: nic
|
||||
root:
|
||||
path: /
|
||||
pool: default
|
||||
type: disk
|
||||
name: default
|
||||
projects: []
|
||||
cluster: null
|
||||
```
|
||||
|
||||
```bash
|
||||
pct enter 101
|
||||
nano /mnt/vm-100-disk-1/metadata.yaml
|
||||
```
|
||||
|
||||
```yaml
|
||||
architecture: amd64
|
||||
creation_date: 1719784042
|
||||
description: Ubuntu Gogs imported from tteck.github.io Proxmox
|
||||
```
|
||||
|
||||
```bash
|
||||
tar -czvf /mnt/vm-100-disk-1/metadata.tar.gz metadata.yaml
|
||||
mv metadata.tar.gz /mnt/vm-100-disk-1/.
|
||||
ls /mnt/vm-100-disk-1/
|
||||
# lost+found ubuntu-noble-gogs-backup-06-28-2024.tar.xz
|
||||
tar /mnt/vm-100-disk-1/ubuntu-noble-gogs-backup-06-28-2024.tar.xz
|
||||
/snap/bin/lxc image import --alias=lxc-ubuntu-noble-gogs-image /mnt/vm-100-disk-1/metadata.tar.gz /mnt/vm-100-disk-1/ubuntu-noble-gogs-backup-06-28-2024.tar.xz
|
||||
/snap/bin/lxc list
|
||||
```
|
||||
|
||||
### LXC
|
||||
|
||||
```bash
|
||||
cat /etc/os-release
|
||||
# ID=debian
|
||||
# VERSION="12 (bookworm)"
|
||||
# VERSION_CODENAME=bookworm
|
||||
```
|
||||
|
||||
```bash
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/vaultwarden.sh)" #111-21-vaultwarden
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/turnkey/turnkey.sh)" # 103-13-odoo
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/dockge.sh)" # 104-14-immich
|
||||
```
|
||||
|
||||
### LXC Part B
|
||||
|
||||
```bash
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/uptimekuma.sh)" # 100-10-up-time-kuma
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/photoprism.sh)" # 101-11-photo-prism
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/debian.sh)" # 102-12-debian
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/turnkey/turnkey.sh)" # 104-14-invoice-ninja
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/turnkey/turnkey.sh)" # 105-15-ansible
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/turnkey/turnkey.sh)" # 106-16-gitea
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/dockge.sh)" # 107-17-home-assistant
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/readeck.sh)" # 109-19-readeck
|
||||
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/dockge.sh)" # 1010-20-dockge-2FAuth-others
|
||||
```
|
||||
|
||||
```bash
|
||||
/snap/bin/lxc list
|
||||
# /snap/bin/lxc launch ubuntu:24.04 ubuntu-gogs
|
||||
# /snap/bin/lxc exec ubuntu-gogs bash
|
||||
mkdir /mnt/proxmox/gogs-backup
|
||||
find / -name "ubuntu.sh" 2>/dev/null
|
||||
bash -c "$(wget -qLO - http://localhost/proxmox-tteck/ubuntu.sh)"
|
||||
pct enter 112
|
||||
```
|
||||
|
||||
```bash
|
||||
pct enter 112
|
||||
cd /mnt/gogs
|
||||
echo architecture: 'amd64' > metadata.yaml
|
||||
echo creation_date: `date +%s` >> metadata.yaml
|
||||
echo description: 'Ubuntu-Gogs imported from tteck.github.io Proxmox' >> metadata.yaml
|
||||
tar -czvf metadata.tar.gz metadata.yaml
|
||||
lxc image import --alias=proxmox-112-image /mnt/gogs/metadata.tar.gz /mnt/gogs/gogs-backup/ubuntu-noble-gogs-backup-06-28-2024.tar.xz
|
||||
|
||||
lvextend -l +100%FREE pve/data
|
||||
|
||||
lvresize -L -8GB /dev/pve/root
|
||||
|
||||
lvchange -an /dev/pve/root
|
||||
resize2fs /dev/pve/root
|
||||
lvchange -ay /dev/pve/root
|
||||
|
||||
lvreduce --resizefs --size 90G /dev/pve/root
|
||||
|
||||
# 48.13% (75.90 GB of 157.70 GB)
|
||||
```
|
||||
|
||||
### LV
|
||||
|
||||
```bash
|
||||
# https://forum.proxmox.com/threads/can-i-remove-local-and-local-lvm.122850/
|
||||
lvremove /dev/pve/data -y
|
||||
lvs
|
||||
lvcreate -L 79GB --thinpool data pve
|
||||
lvresize -L +1GB /dev/pve/data
|
||||
lvresize -L +1GB /dev/pve/root
|
||||
lvextend -l +100%FREE pve/root
|
||||
resize2fs /dev/mapper/pve-root
|
||||
```
|
||||
|
||||
### New Pull Turnkey
|
||||
|
||||
```bash Tue Jul 02 2024 15:57:21 GMT-0700 (Mountain Standard Time)
|
||||
pct list
|
||||
rm metadata.*
|
||||
cd /tmp
|
||||
#
|
||||
# turnkey-ansible.yaml
|
||||
# vzdump 114 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 114 | grep arch: | awk '{print $2}' ` > vzdump-lxc-114-turnkey-ansible.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-114-turnkey-ansible.yaml
|
||||
echo description: 'turnkey-ansible Imported from Proxmox' >> vzdump-lxc-114-turnkey-ansible.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-114-turnkey-ansible.yaml metadata.yaml
|
||||
rm vzdump-lxc-114-turnkey-ansible.tar.gz
|
||||
tar -czvf vzdump-lxc-114-turnkey-ansible.tar.gz metadata.yaml
|
||||
# AubidvIOq4k=
|
||||
#
|
||||
# turnkey-gitea.yaml
|
||||
# vzdump 115 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 115 | grep arch: | awk '{print $2}' ` > vzdump-lxc-115-turnkey-gitea.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-115-turnkey-gitea.yaml
|
||||
echo description: 'turnkey-gitea Imported from Proxmox' >> vzdump-lxc-115-turnkey-gitea.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-115-turnkey-gitea.yaml metadata.yaml
|
||||
rm vzdump-lxc-115-turnkey-gitea.tar.gz
|
||||
tar -czvf vzdump-lxc-115-turnkey-gitea.tar.gz metadata.yaml
|
||||
# 9bMRKLawLGY=
|
||||
#
|
||||
# turnkey-invoice.yaml
|
||||
# vzdump 116 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 116 | grep arch: | awk '{print $2}' ` > vzdump-lxc-116-turnkey-invoice.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-116-turnkey-invoice.yaml
|
||||
echo description: 'turnkey-invoice Imported from Proxmox' >> vzdump-lxc-116-turnkey-invoice.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-116-turnkey-invoice.yaml metadata.yaml
|
||||
rm vzdump-lxc-116-turnkey-invoice.tar.gz
|
||||
tar -czvf vzdump-lxc-116-turnkey-invoice.tar.gz metadata.yaml
|
||||
# gZKEJFdQ5vk=
|
||||
#
|
||||
# turnkey-nextcloud.yaml
|
||||
# vzdump 117 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 117 | grep arch: | awk '{print $2}' ` > vzdump-lxc-117-turnkey-nextcloud.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-117-turnkey-nextcloud.yaml
|
||||
echo description: 'turnkey-nextcloud Imported from Proxmox' >> vzdump-lxc-117-turnkey-nextcloud.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-117-turnkey-nextcloud.yaml metadata.yaml
|
||||
rm vzdump-lxc-117-turnkey-nextcloud.tar.gz
|
||||
tar -czvf vzdump-lxc-117-turnkey-nextcloud.tar.gz metadata.yaml
|
||||
# B0y3IUNCyws=
|
||||
#
|
||||
# turnkey-oddo.yaml
|
||||
# vzdump 118 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 118 | grep arch: | awk '{print $2}' ` > vzdump-lxc-118-turnkey-oddo.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-118-turnkey-oddo.yaml
|
||||
echo description: 'turnkey-oddo Imported from Proxmox' >> vzdump-lxc-118-turnkey-oddo.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-118-turnkey-oddo.yaml metadata.yaml
|
||||
rm vzdump-lxc-118-turnkey-oddo.tar.gz
|
||||
tar -czvf vzdump-lxc-118-turnkey-oddo.tar.gz metadata.yaml
|
||||
# xxZAMn3ViMk=
|
||||
#
|
||||
# turnkey-observium.yaml
|
||||
# vzdump 119 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 119 | grep arch: | awk '{print $2}' ` > vzdump-lxc-119-turnkey-observium.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-119-turnkey-observium.yaml
|
||||
echo description: 'turnkey-observium Imported from Proxmox' >> vzdump-lxc-119-turnkey-observium.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-119-turnkey-observium.yaml metadata.yaml
|
||||
rm vzdump-lxc-119-turnkey-observium.tar.gz
|
||||
tar -czvf vzdump-lxc-119-turnkey-observium.tar.gz metadata.yaml
|
||||
# Gz+xUOvtVo0=
|
||||
#
|
||||
# turnkey-zoneminder.yaml
|
||||
# vzdump 120 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 120 | grep arch: | awk '{print $2}' ` > vzdump-lxc-120-turnkey-zoneminder.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-120-turnkey-zoneminder.yaml
|
||||
echo description: 'turnkey-zoneminder Imported from Proxmox' >> vzdump-lxc-120-turnkey-zoneminder.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-120-turnkey-zoneminder.yaml metadata.yaml
|
||||
rm vzdump-lxc-120-turnkey-zoneminder.tar.gz
|
||||
tar -czvf vzdump-lxc-120-turnkey-zoneminder.tar.gz metadata.yaml
|
||||
# Ry+bMvVzPB8=
|
||||
#
|
||||
# turnkey-faveo-helpdesk.yaml
|
||||
# vzdump 121 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 121 | grep arch: | awk '{print $2}' ` > vzdump-lxc-121-turnkey-faveo-helpdesk.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-121-turnkey-faveo-helpdesk.yaml
|
||||
echo description: 'turnkey-faveo-helpdesk Imported from Proxmox' >> vzdump-lxc-121-turnkey-faveo-helpdesk.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-121-turnkey-faveo-helpdesk.yaml metadata.yaml
|
||||
rm vzdump-lxc-121-turnkey-faveo-helpdesk.tar.gz
|
||||
tar -czvf vzdump-lxc-121-turnkey-faveo-helpdesk.tar.gz metadata.yaml
|
||||
# 3TBhq0s4IhQ=
|
||||
```
|
||||
|
||||
### New Pull LXC
|
||||
|
||||
```bash Tue Jul 02 2024 16:29:01 GMT-0700 (Mountain Standard Time)
|
||||
# 122-vaultwarden
|
||||
# vzdump 122 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 122 | grep arch: | awk '{print $2}' ` > vzdump-lxc-122-vaultwarden.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-122-vaultwarden.yaml
|
||||
echo description: 'vzdump-lxc-122-vaultwarden Imported from Proxmox' >> vzdump-lxc-122-vaultwarden.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-122-vaultwarden.yaml metadata.yaml
|
||||
rm vzdump-lxc-122-vaultwarden.tar.gz
|
||||
tar -czvf vzdump-lxc-122-vaultwarden.tar.gz metadata.yaml
|
||||
#
|
||||
# 123-wastebin
|
||||
# vzdump 123 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 123 | grep arch: | awk '{print $2}' ` > vzdump-lxc-123-wastebin.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-123-wastebin.yaml
|
||||
echo description: 'vzdump-lxc-123-wastebin Imported from Proxmox' >> vzdump-lxc-123-wastebin.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-123-wastebin.yaml metadata.yaml
|
||||
rm vzdump-lxc-123-wastebin.tar.gz
|
||||
tar -czvf vzdump-lxc-123-wastebin.tar.gz metadata.yaml
|
||||
#
|
||||
# 124-readeck
|
||||
# vzdump 124 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 124 | grep arch: | awk '{print $2}' ` > vzdump-lxc-124-readeck.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-124-readeck.yaml
|
||||
echo description: 'vzdump-lxc-124-readeck Imported from Proxmox' >> vzdump-lxc-124-readeck.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-124-readeck.yaml metadata.yaml
|
||||
rm vzdump-lxc-124-readeck.tar.gz
|
||||
tar -czvf vzdump-lxc-124-readeck.tar.gz metadata.yaml
|
||||
#
|
||||
# 125-ntfy
|
||||
# vzdump 125 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 125 | grep arch: | awk '{print $2}' ` > vzdump-lxc-125-ntfy.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-125-ntfy.yaml
|
||||
echo description: 'vzdump-lxc-125-ntfy Imported from Proxmox' >> vzdump-lxc-125-ntfy.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-125-ntfy.yaml metadata.yaml
|
||||
rm vzdump-lxc-125-ntfy.tar.gz
|
||||
tar -czvf vzdump-lxc-125-ntfy.tar.gz metadata.yaml
|
||||
#
|
||||
# 126-commafeed
|
||||
# vzdump 126 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 126 | grep arch: | awk '{print $2}' ` > vzdump-lxc-126-commafeed.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-126-commafeed.yaml
|
||||
echo description: 'vzdump-lxc-126-commafeed Imported from Proxmox' >> vzdump-lxc-126-commafeed.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-126-commafeed.yaml metadata.yaml
|
||||
rm vzdump-lxc-126-commafeed.tar.gz
|
||||
tar -czvf vzdump-lxc-126-commafeed.tar.gz metadata.yaml
|
||||
#
|
||||
# 127-actualbudget
|
||||
# vzdump 127 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 127 | grep arch: | awk '{print $2}' ` > vzdump-lxc-127-actualbudget.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-127-actualbudget.yaml
|
||||
echo description: 'vzdump-lxc-127-actualbudget Imported from Proxmox' >> vzdump-lxc-127-actualbudget.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-127-actualbudget.yaml metadata.yaml
|
||||
rm vzdump-lxc-127-actualbudget.tar.gz
|
||||
tar -czvf vzdump-lxc-127-actualbudget.tar.gz metadata.yaml
|
||||
#
|
||||
# 128-forgejo
|
||||
# vzdump 128 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 128 | grep arch: | awk '{print $2}' ` > vzdump-lxc-128-forgejo.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-128-forgejo.yaml
|
||||
echo description: 'vzdump-lxc-128-forgejo Imported from Proxmox' >> vzdump-lxc-128-forgejo.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-128-forgejo.yaml metadata.yaml
|
||||
rm vzdump-lxc-128-forgejo.tar.gz
|
||||
tar -czvf vzdump-lxc-128-forgejo.tar.gz metadata.yaml
|
||||
#
|
||||
# 129-homepage
|
||||
# vzdump 129 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 129 | grep arch: | awk '{print $2}' ` > vzdump-lxc-129-homepage.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-129-homepage.yaml
|
||||
echo description: 'vzdump-lxc-129-homepage Imported from Proxmox' >> vzdump-lxc-129-homepage.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-129-homepage.yaml metadata.yaml
|
||||
rm vzdump-lxc-129-homepage.tar.gz
|
||||
tar -czvf vzdump-lxc-129-homepage.tar.gz metadata.yaml
|
||||
#
|
||||
# 130-heimdall-dashboard
|
||||
# Error!!! # bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/heimdall-dashboard.sh)"
|
||||
## vzdump 130 -compress gzip -dumpdir /tmp
|
||||
# echo architecture: `pct config 130 | grep arch: | awk '{print $2}' ` > vzdump-lxc-130-heimdall-dashboard.yaml
|
||||
# echo creation_date: `date +%s` >> vzdump-lxc-130-heimdall-dashboard.yaml
|
||||
# echo description: 'vzdump-lxc-130-heimdall-dashboard Imported from Proxmox' >> vzdump-lxc-130-heimdall-dashboard.yaml
|
||||
# rm metadata.yaml
|
||||
# cp vzdump-lxc-130-heimdall-dashboard.yaml metadata.yaml
|
||||
# rm -czvf vzdump-lxc-130-heimdall-dashboard.tar.gz
|
||||
# tar -czvf vzdump-lxc-130-heimdall-dashboard.tar.gz metadata.yaml
|
||||
#
|
||||
# 131-paperless-ngx
|
||||
# Error!!! # bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/paperless-ngx.sh)"
|
||||
## vzdump 131 -compress gzip -dumpdir /tmp
|
||||
# echo architecture: `pct config 131 | grep arch: | awk '{print $2}' ` > vzdump-lxc-131-paperless-ngx.yaml
|
||||
# echo creation_date: `date +%s` >> vzdump-lxc-131-paperless-ngx.yaml
|
||||
# echo description: 'vzdump-lxc-131-paperless-ngx Imported from Proxmox' >> vzdump-lxc-131-paperless-ngx.yaml
|
||||
# rm metadata.yaml
|
||||
# cp vzdump-lxc-131-paperless-ngx.yaml metadata.yaml
|
||||
# rm -czvf vzdump-lxc-131-paperless-ngx.tar.gz
|
||||
# tar -czvf vzdump-lxc-131-paperless-ngx.tar.gz metadata.yaml
|
||||
#
|
||||
# 132-redis
|
||||
# vzdump 132 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 132 | grep arch: | awk '{print $2}' ` > vzdump-lxc-132-redis.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-132-redis.yaml
|
||||
echo description: 'vzdump-lxc-132-redis Imported from Proxmox' >> vzdump-lxc-132-redis.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-132-redis.yaml metadata.yaml
|
||||
rm vzdump-lxc-132-redis.tar.gz
|
||||
tar -czvf vzdump-lxc-132-redis.tar.gz metadata.yaml
|
||||
#
|
||||
# 133-postgresql
|
||||
# vzdump 133 -compress gzip -dumpdir /tmp
|
||||
echo architecture: `pct config 133 | grep arch: | awk '{print $2}' ` > vzdump-lxc-133-postgresql.yaml
|
||||
echo creation_date: `date +%s` >> vzdump-lxc-133-postgresql.yaml
|
||||
echo description: 'vzdump-lxc-133-postgresql Imported from Proxmox' >> vzdump-lxc-133-postgresql.yaml
|
||||
rm metadata.yaml
|
||||
cp vzdump-lxc-133-postgresql.yaml metadata.yaml
|
||||
# rm vzdump-lxc-133-postgresql.tar.gz
|
||||
tar -czvf vzdump-lxc-133-postgresql.tar.gz metadata.yaml
|
||||
#
|
||||
# 134-rabbitmq
|
||||
# [ERROR] in line 23: exit code 0:!!! # bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/rabbitmq.sh)"
|
||||
## vzdump 134 -compress gzip -dumpdir /tmp
|
||||
# echo architecture: `pct config 134 | grep arch: | awk '{print $2}' ` > vzdump-lxc-134-rabbitmq.yaml
|
||||
# echo creation_date: `date +%s` >> vzdump-lxc-134-rabbitmq.yaml
|
||||
# echo description: 'vzdump-lxc-134-rabbitmq Imported from Proxmox' >> vzdump-lxc-134-rabbitmq.yaml
|
||||
# rm metadata.yaml
|
||||
# cp vzdump-lxc-134-rabbitmq.yaml metadata.yaml
|
||||
# rm vzdump-lxc-134-rabbitmq.tar.gz
|
||||
# tar -czvf vzdump-lxc-134-rabbitmq.tar.gz metadata.yaml
|
||||
#
|
||||
```
|
||||
|
||||
### Synology
|
||||
|
||||
```bash Sun Oct 13 2024 14:08:07 GMT-0700 (Mountain Standard Time)
|
||||
cd /var/lib/vz/template/iso
|
||||
qm disk import 100 arc.img local-lvm
|
||||
ls -l /dev/disk/by-id
|
||||
qm set 100 -sata1 /dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YGNB0K311780K
|
||||
```
|
||||
|
Reference in New Issue
Block a user