Git Product home page Git Product logo

proxmox's People

Contributors

asylumexp avatar aurelpec avatar chpego avatar cklam2 avatar crawlingcity avatar damda58 avatar diemade avatar drevilish avatar gauvino avatar glerak avatar hywax avatar jimihford avatar leiweibau avatar madhur avatar matthewtrout avatar micklesk avatar mountymaplesyrup avatar nicedevil007 avatar raenye avatar remz1337 avatar ryanwinter avatar samydoesit avatar scott-hpe avatar sq6nti avatar tchoupinax avatar tteck avatar tylerjet avatar vcaldas avatar wovalle avatar yodrako avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

proxmox's Issues

Cant update Home Assistant Container LXC

Hi

I cant update Home Assistant Container LXC

When i type ./update in Home Assistant Container LXC console, i get a '-bash: ./update: No such file or directory'

what to do?

Pi-Hole LXC Fails no DHCP

Hi Tteck,

Your Pi-Hole script interests me, I believe that you should add a section to your script to allow the user to manually configure the network for environments without DHCP. Otherwise the container fails to install.

Cheers,

Tmanok

jellyfin script fails

root@proxmox:~# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/jellyfin_container.sh)"
This will create a Jellyfin Media Server LXC Container. Proceed(y/n)?y
[INFO] Using 'local-lvm' for Storage Location.
[INFO] Container ID is 108.
✔  Updating LXC Template List... 
✔  Downloading LXC Template... 
bash: line 113: TEMPLATES: bad array subscript

Hey. Had no problems with a few others (wireguard, dashy), but it looks like install for Jellyfin is failing - see above!

Unable to use Docker in the ubuntu template because of AppArmor Permission denied

I followed the offficial docker install instructions but I'm unable to use Docker because of an AppArmor error. Not sure if this related to your template or to Proxmox 7.1 itself but it would be nice to have a docker specific lxc template if there is any further configuration necessary. I think this might be related to the fact that the lxc container is privileged.

apt-get update
apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker run hello-world
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `/usr/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default327733349` failed with output: apparmor_parser: Unable to replace "docker-default".  Permission denied; attempted to load a profile while confined?

error: exit status 243.

Removing AppArmor with apt remove apparmor works around the issue but this doesn't seem to be a good idea.

After Rebooting the lxc , it doesnt boot up anymore

Hi,

Thanks a lot for all those scripts.
They seme to work fine, but only if i restart a working LXC, it doesn't want to boot anymore.
Running proxmox 6.2 at the moment.
Pihole does everything fine after a reboot.
Problem is : home assistant, nodered, mqtt..
Any advice?

nginx proxy manager

[error] Downloading NPM v.tar.gz
/tmp/npm_install.sh: line 110: 'wget $WGETOPT -c $_npm_url/archive/v$_latest_version.tar.gz -O - | tar -xz'
Broken pipe
Broken pipe
HTTP/1.1 404 Not Found
invalid magic
short read
[error] 195 NULL: pct exec $_ctid -- sh -c "wget --no-cache -qO - $_raw_base/setup.sh | sh"

Network Issues (dhcp)

Hoping you can help me track down why it might be throwing an error installing dependencies on line 37 of npm_setup.sh:

root@pve:~#bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/npm_container.sh)"
This will create a New Nginx Proxy Manager LXC Container. Proceed(y/n)?y
[INFO] Using 'local-lvm' for storage location.
[INFO] LXC ID is 101.
✔  Updating LXC Template List... 
✔  Downloading LXC Template... 
✔  Creating LXC... 
✔  Starting LXC... 
✔  Setting up Container OS... 
✔  Updating Container OS... 
✔  Installing Dependencies... 
[ERROR:LXC] 100@37 Unknown failure occured.
[ERROR] 100@156 Unknown failure occured.
  Logical volume "vm-101-disk-0" successfully removed

Want to thank you for all your hard work on these awesome tools!

Vaultwarden, change listen IP?

Hi,

I just tried to install the Vaultwarden LXC and (of course) it runs fine. I just want to change the listen IP from 127.0.0.1 to 0.0.0.0. But when I change the vaultwarden.env file, and restart the service, it does not change anything. daemon-reload doos not help either.

Can you give advice?
Thanks.

Adminer Unavailable on MariaDB LXC

Firstly - thank you for the awesome work here, had made stuff really accessible to me!

Have attempted this several times, with fresh attempts each time and come up against the same issue. Following the instructions here:
https://github.com/tteck/Proxmox#-mariadb-lxc-container-

Once completed, I can't access Adminer, everything else is fine.

Tried at a couple of points; Adminer is available once the container is spun up following the bash script in shell. Its available through all the steps until "⚠️ Reboot the lxc" - once executed I can't then access Adminer. Hitting the IP in the browser, the Apache holding page has gone.

MariaDB is fine and functional. Running sudo systemctl status apache2 renders this:

* apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-02-16 21:48:45 GMT; 4min 28s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 132 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 32ms

Feb 16 21:48:45 mariadb systemd[1]: Starting The Apache HTTP Server...
Feb 16 21:48:45 mariadb apachectl[164]: (2)No such file or directory: AH02291: Cannot access directory '/var/>
Feb 16 21:48:45 mariadb apachectl[164]: (2)No such file or directory: AH02291: Cannot access directory '/var/>
Feb 16 21:48:45 mariadb apachectl[164]: AH00014: Configuration check failed
Feb 16 21:48:45 mariadb apachectl[132]: Action 'start' failed.
Feb 16 21:48:45 mariadb apachectl[132]: The Apache error log may have more information.
Feb 16 21:48:45 mariadb systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Feb 16 21:48:45 mariadb systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 16 21:48:45 mariadb systemd[1]: Failed to start The Apache HTTP Server.

I've started playing around with a few things to try but TBH I'm great at following instructions but don't really get the details hence loving your hard work. Any suggestions or anything I can provide would be appreciated. :-)

improvement

hello, you should make on your site an option for messages and ideas for your future development

lxc in unprivilege

Hi Just to write about : thanks for your scripts, they look very great. They are put in bookmark for sure. Look forward to see all them in unprivilege too.
thanks again

Home Assistant Container LXC (Podman): Unknown failure occured

I'm unable to use the Home Assistant Container LXC (Podman image because the script ends in an error. I tried the script on two different systems which both run on zfs local storage.

$ bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/podman_ha_container.sh)"
This will create a New Podman Home Assistant Container LXC. Proceed(y/n)?y
[INFO] Using 'local-zfs' for storage location.
[INFO] Container ID is 101.
✔  Updating LXC Template List...
✔  Downloading LXC Template...
✔  Creating LXC Container...
[WARNING] Some containers may not work properly due to ZFS not supporting 'fallocate'.
✔  Starting LXC Container...
[INFO] Using fuse-overlayfs.
✔  Setting up Container OS...
✔  Network Connected:  192.168.1.106
✔  Updating Container OS...
✔  Installing Dependencies...
✔  Installing Podman...
✔  Pulling Yacht Image...
✔  Installing Yacht...
✔  Pulling Home Assistant Image...
[ERROR:LXC] 125@74 Unknown failure occured.
[ERROR] 125@168 Unknown failure occured.

Are there any logs I can provide?

Plex LXC fails - Setting up Hardware Acceleration

✔ Setting Up Hardware Acceleration...
/bin/chmod: cannot access '/dev/dri/*': No such file or directory

Running the script from web shell I get the above error when setting up plex.
I am runnig Prox on NUC i7 with Intel Quick GPU.
ls pci output:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics 650 (rev 06)

Is there anything I need to do before running the script?

Flogo lxc?

Hi @tteck

The scripts are immensely useful. Thanks.

Meanwhile, I suggest you to create a lxc container with a lightweight flogo, too as a replacement of node-red? Just my two cents.

Cheers,
/z

Unknown failure occured

Running Proxmox VE 7.1-10

Trying to install mariadb lxc. Tried other scripts too, always ended this kind of error:

image

ZFS replication, ZFS snapshot, LXC backups broken

I deployed some of your lxc docker containers onto my zfs storage pools, the only issue that I have is that any time Proxmox tries to snapshot the filesystem the entire container will go unresponsive until the process that is trying to make the snapshot is killed. So far this has affected zfs replication, snapshots in general and backups taken in snapshot or suspend mode.

This has killed my dreams of having a HA setup using ZFS replication on these containers. I have managed to get around the backup issue by setting to stop mode but this is much less than ideal.

MariaDB

Sorry bad english

Maria Db install HowTo:

GRANT ALL ON . TO 'admin'@'192.168.100.%' IDENTIFIED BY 'password' WITH GRANT OPTION; <-- not working HA

GRANT ALL ON . TO 'admin'@'192.168.100.0/255.255.255.0' IDENTIFIED BY 'password' WITH GRANT OPTION; <-- connect HA

Link: https://mariadb.com/kb/en/create-user/#host-name-component

Privileged vs Unprivileged?

Hi, thanks for your super useful Proxmox scripts. I used them to install Zigbee2MQTT and MQTT LXC's successfully.
But now I see that they are "Privileged", is there any special reason for that? Because I understand that they are considered unsafe and therefore discouraged. FYI: I'm happily running another Ubuntu LXC with a number of Docker containers, unprivileged

Login Details

First off, thanks very mcuh for these scripts.
I had set every thing up in docker on VMs but knew that there must be a better way.

I have set up HA and MQTT no issues
However zigbee2mqtt is asking for a username and password.
I have tried the default Debian and it does not seem to work.

Feature Request - Plex LXC with Hardware Acceleration Support

Hi, tteck. Thanks for creating this awesome repo! It has greatly helped my experience with HA on PVE as a newbie to PVE. Coming from a HAOS background in a Raspberry Pi, it has been quite challenging for me to debug the PVE HA VM booting problem and your script just make this so easy. Thanks very much.

I am also trying your Plex LXC script and it works great. It would be great if you would like to update the Plex script with hardware acceleration support at some point when you are free. But I cannot ask for more given this repo is so great.

I have done a bit research on my own and find these as useful reference:
https://forums.plex.tv/t/plex-hw-acceleration-in-lxc-container-anyone-with-success/219289/117
https://herold.space/proxmox-lxc-intel-quick-sync-for-plex/

I am also trying to get it working at my end but still need to learn a lot about PVE, linux and LXC. Hopefully I can get it working and send a pull request to you :)

zigbee2mqtt update issue

Hi

I want to update from version 1.23 to version 1.24. But I am experiencing the following errors which I do not know how to handle.

`root@zigbee2mqtt:~# bash /opt/zigbee2mqtt/update.sh
Stopping Zigbee2MQTT...
Creating backup of configuration...
cp: cannot stat 'data': No such file or directory
Updating...
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Installing dependencies...
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /root/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/root/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-03-06T10_42_59_257Z-debug.log
Restore configuration...
cp: cannot stat 'data-backup/*': No such file or directory
Starting Zigbee2MQTT...
Done!`

Podman Home Assistant Issue

Tried out the Home Assistant Podman LXC script. The script seems to pause on pulling the HA image because the disk gets full. Resizing the disk to 12 GiB worked (seems to require about 11.5 GiB). I am not sure why this is happening, as about 3 GiB should be well enough for the images I would think.

Home Assistant Container LXC - Error during "Installing Home Assistant"

I tried to install Home Assistant with the script "Home Assistant Container LXC" on my proxmox server with zfs filesystem. I'm pretty new to this so if I can give more necessary information let me know how I can provide them.

`root@pve:~# bash -c -v "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ha_container.sh)"
#!/usr/bin/env bash

while true; do
read -p "This will create a New Home Assistant Container LXC. Proceed(y/n)?" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
This will create a New Home Assistant Container LXC. Proceed(y/n)?y

Setup script environment

set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error
set -o pipefail #Pipe will exit with last non-zero status if applicable
shopt -s expand_aliases
alias die='EXIT=$? LINE=$LINENO error_exit'
trap die ERR
trap cleanup EXIT

function error_exit() {
trap - ERR
local DEFAULT='Unknown failure occured.'
local REASON="\e[97m${1:-$DEFAULT}\e[39m"
local FLAG="\e[91m[ERROR] \e[93m$EXIT@$LINE"
msg "$FLAG $REASON"
[ ! -z ${CTID-} ] && cleanup_ctid
exit $EXIT
}
function warn() {
local REASON="\e[97m$1\e[39m"
local FLAG="\e[93m[WARNING]\e[39m"
msg "$FLAG $REASON"
}
function info() {
local REASON="$1"
local FLAG="\e[36m[INFO]\e[39m"
msg "$FLAG $REASON"
}
function msg() {
local TEXT="$1"
echo -e "$TEXT"
}
function cleanup_ctid() {
if [ ! -z ${MOUNT+x} ]; then
pct unmount $CTID
fi
if $(pct status $CTID &>/dev/null); then
if [ "$(pct status $CTID | awk '{print $2}')" == "running" ]; then
pct stop $CTID
fi
pct destroy $CTID
elif [ "$(pvesm list $STORAGE --vmid $CTID)" != "" ]; then
pvesm free $ROOTFS
fi
}
function cleanup() {
popd >/dev/null
rm -rf $TEMP_DIR
}
function load_module() {
if ! $(lsmod | grep -Fq $1); then
modprobe $1 &>/dev/null ||
die "Failed to load '$1' module."
fi
MODULES_PATH=/etc/modules
if ! $(grep -Fxq "$1" $MODULES_PATH); then
echo "$1" >> $MODULES_PATH ||
die "Failed to add '$1' module to load at boot."
fi
}
TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null

Download setup script

wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/ha_setup.sh

Detect modules and automatically load at boot

load_module overlay

Select storage location

while read -r line; do
TAG=$(echo $line | awk '{print $1}')
TYPE=$(echo $line | awk '{printf "%-10s", $2}')
FREE=$(echo $line | numfmt --field 4-6 --from-unit=K --to=iec --format %.2f | awk '{printf( "%9sB", $6)}')
ITEM=" Type: $TYPE Free: $FREE "
OFFSET=2
if [[ $((${#ITEM} + $OFFSET)) -gt ${MSG_MAX_LENGTH:-} ]]; then
MSG_MAX_LENGTH=$((${#ITEM} + $OFFSET))
fi
STORAGE_MENU+=( "$TAG" "$ITEM" "OFF" )
done < <(pvesm status -content rootdir | awk 'NR>1')
if [ $((${#STORAGE_MENU[@]}/3)) -eq 0 ]; then
warn "'Container' needs to be selected for at least one storage location."
die "Unable to detect valid storage location."
elif [ $((${#STORAGE_MENU[@]}/3)) -eq 1 ]; then
STORAGE=${STORAGE_MENU[0]}
else
while [ -z "${STORAGE:+x}" ]; do
STORAGE=$(whiptail --title "Storage Pools" --radiolist
"Which storage pool you would like to use for the container?\n\n"
16 $(($MSG_MAX_LENGTH + 23)) 6
"${STORAGE_MENU[@]}" 3>&1 1>&2 2>&3) || exit
done
fi
info "Using '$STORAGE' for storage location."
[INFO] Using 'local-zfs' for storage location.

Get the next guest VM/LXC ID

CTID=$(pvesh get /cluster/nextid)
info "Container ID is $CTID."
[INFO] Container ID is 100.

Download latest Debian 10 LXC template

msg "Updating LXC template list..."
Updating LXC template list...
pveam update >/dev/null
msg "Downloading LXC template..."
Downloading LXC template...
OSTYPE=debian
OSVERSION=${OSTYPE}-11
mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.($OSVERSION.)/\1/p" | sort -t - -k 2 -V)
TEMPLATE="${TEMPLATES[-1]}"
pveam download local $TEMPLATE >/dev/null ||
die "A problem occured while downloading the LXC template."

Create variables for container disk

STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}')
case $STORAGE_TYPE in
dir|nfs)
DISK_EXT=".raw"
DISK_REF="$CTID/"
;;
zfspool)
DISK_PREFIX="subvol"
DISK_FORMAT="subvol"
;;
esac
DISK=${DISK_PREFIX:-vm}-${CTID}-disk-0${DISK_EXT-}
ROOTFS=${STORAGE}:${DISK_REF-}${DISK}

Create LXC

msg "Creating LXC container..."
Creating LXC container...
DISK_SIZE=8G
pvesm alloc $STORAGE $CTID $DISK $DISK_SIZE --format ${DISK_FORMAT:-raw} >/dev/null
if [ "$STORAGE_TYPE" == "zfspool" ]; then
warn "Some containers may not work properly due to ZFS not supporting 'fallocate'."
else
mkfs.ext4 $(pvesm path $ROOTFS) &>/dev/null
fi
[WARNING] Some containers may not work properly due to ZFS not supporting 'fallocate'.
ARCH=$(dpkg --print-architecture)
HOSTNAME=homeassistant
TEMPLATE_STRING="local:vztmpl/${TEMPLATE}"
pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1
-hostname $HOSTNAME -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 -cores 2 -memory 2048
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE >/dev/null

Modify LXC permissions to support Docker

LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
cat <> $LXC_CONFIG
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
EOF

Set container description

pct set $CTID -description "Access Portainer interface using the following URL.

http://<IP_ADDRESS>:9000"

Set container timezone to match host

MOUNT=$(pct mount $CTID | cut -d"'" -f 2)
ln -fs $(readlink /etc/localtime) ${MOUNT}/etc/localtime
pct unmount $CTID && unset MOUNT

Setup container

msg "Starting LXC container..."
Starting LXC container...
pct start $CTID
pct push $CTID ha_setup.sh /ha_setup.sh -perms 755
pct exec $CTID /ha_setup.sh
Setting up container OS...
Updating container OS...
Installing prerequisites...
Customizing Docker...
Installing Docker...
Installing Portainer...
Installing Home Assistant...
[ERROR:LXC] 125@72 Unknown failure occured.
die
[ERROR] 125@176 Unknown failure occured.
cleanup`

ZWaveJS2Mqtt update

Thank you for providing all these useful scripts!

Could you add a zwavejs2mqtt update command like there is in zigbee2mqtt?

Thanks in advance:)

add InfluxDB and Grafana

Thanks a lot in advance for a great job.
Is it possible to add installation script for influxdb and grafana?
big thx

Idea: Script for Nextcloud

Hi,

first, thanks for providing all the scripts, been using them since a while already also in the old now deleted repo.
It would be nice if you could add a script for Nextcloud. What I've found were the following options

VM

Docker

all-in-one looks the most interesting though.

PS: a simple docker/podman-setup script is also nice

Thanks, Andre

LXC

Hello, I was able to install Vaultwarden LXC without any problem, the problem is for the https, I have an inaccessible site. here is the error ERR_HTTP2_PROTOCOL_ERROR.
did you have the problem?

Home Assistant Container LXC (Podman) - HACS - Github failure

After the command in lxc
bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/podman_hacs.sh)"

I tried to integrate HACS. When I check all 4 boxes I get this error:

Could not authenticate with GitHub, try again later. Did I miss something?

adguard_container.sh UNKNOWN FAILURE OCCURED

I use Proxmox 7.0-8
I tried to install adguard using your adguard_container.sh script.
The container will be created and also started. The problem occured if the adguars_setup.sh script will install adguard.
Here the Errormessages:
Starting LXC... Setting up Container OS... Updating Container OS... Installing Prerequisites... [ERROR:LXC] 100@36 Unknown failure occured. [ERROR] 100@154 Unknown failure occured. Logical volume "vm-101-disk-0" successfully removed

Hope this will help finding the error.

Created VM not initialize

Hello. I have Run this command bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/haos_vm.sh)"
And executed success.

BUT VM wont start

Start LOG proxmox:

()
kvm: device requires 67108864 bytes, block backend provides 131072 bytes
TASK ERROR: start failed: QEMU exited with code 1

Failed to start Jellyfin Media Server

I just pulled your jellyfin lxc template but after I restarted the container in order to passthrough a directory with $ pct set 103 -mp0 /mnt/bindmounts/shared,mp=/shared jellyfin isn't starting anymore. I tried this two times with the exact same behavior.

$ lxc-attach -n 103
$ systemctl status jellyfin
● jellyfin.service - Jellyfin Media Server
     Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
             └─jellyfin.service.conf
     Active: activating (auto-restart) (Result: signal) since Tue 2022-02-08 17:06:32 CET; 104ms ago
    Process: 367 ExecStart=/usr/bin/jellyfin ${JELLYFIN_WEB_OPT} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT} (code=killed, signa>
   Main PID: 367 (code=killed, signal=ABRT)
        CPU: 474ms

Feb 08 17:06:33 jellyfin systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 2.
root@jellyfin:~# systemctl status jellyfin
● jellyfin.service - Jellyfin Media Server
     Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
             └─jellyfin.service.conf
     Active: failed (Result: signal) since Tue 2022-02-08 17:06:35 CET; 22s ago
    Process: 396 ExecStart=/usr/bin/jellyfin ${JELLYFIN_WEB_OPT} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT} (code=killed, signa>
   Main PID: 396 (code=killed, signal=ABRT)
        CPU: 470ms

Feb 08 17:06:35 jellyfin systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Feb 08 17:06:35 jellyfin systemd[1]: Stopped Jellyfin Media Server.
Feb 08 17:06:35 jellyfin systemd[1]: jellyfin.service: Start request repeated too quickly.
Feb 08 17:06:35 jellyfin systemd[1]: jellyfin.service: Failed with result 'signal'.
Feb 08 17:06:35 jellyfin systemd[1]: Failed to start Jellyfin Media Server.

Add VLAN support

At first, thanks for your effor maintaining these scripts.

Would you consider adding VLAN support for them?

One approach would be to make net0 interface parameters configurable by:

  • option 1: replace the following string name=eth0,bridge=vmbr0,ip=dhcp with $NETOPTS in export PCT_OPTIONS, then add the following : "${NETOPTS:=name=eth0,bridge=vmbr0,ip=dhcp}" somewhere above the export PCT_OPTIONS in the script. This would set the default value for NETOPTS variable.
    Then one could run the script as follows:
    export NETOPTS="name=eth0,bridge=vmbr0,ip=dhcp,tag=<VLANTAG>"; bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/ANYSCRIPT.sh)"
  • option 2: ask the user for the VLAN tag.
    • No VLAN tag entered should result -net0 name=eth0,bridge=vmbr0,ip=dhcp
    • VLAN tag entered should result -net0 name=eth0,bridge=vmbr0,ip=dhcp,tag=<VLANTAG>

Certainly option 2 is more user friendly.
I can make a PR if you prefer.

HAOS Install - [ERROR]25@152 Unknown failure occurred.

[INFO] Using local-btrfs for Storage Location.
[INFO] Container ID is 100.
 Getting URL for Latest Home Assistant Disk Image... ✔ 
 Downloaded qcow2 Disk Image... ✔
 Extracting Disk Image... ✔ 
 Creating HAOS VM... [ERROR] 25@152 Unknown failure occured.

Fresh install of Proxmox VE 7.1-10. I did run your post VE 7 Install script.

Zigbee2mqtt ls: cannot access '/dev/serial/by-id': No such file or directory

Trying to use your zigbee2mqtt script to setup an LXC on proxmox.

Ran steps 1 and 2 to create the LXC and allow USB passthrough.
Reboot LXC.
Installed usbutils and ran the lsusb command and I do see the USB device there.
Bus 002 Device 071: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]

However when I run
ls -l /dev/serial/by-id

It returns
ls: cannot access '/dev/serial/by-id': No such file or directory

Receiving error 143 when creating a Proxmox Nginx Proxy Manager LXC Container

I am trying to create a Proxmox Nginx Proxy Manager LXC Container. However, I am receiving the error message:

[error] 143 NULL: _storage_type=$(pvesm status -storage $_storage 2>/dev/null | awk 'NR>1 {print $2}')

The full output is:

root@pvehost:~# curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/create.sh | bash -s

[warn] Container will be created using the following settings.
[warn]
[warn] ctid: 104
[warn] hostname: nginx-proxy-manager
[warn] cores: 1
[warn] memory: 512
[warn] swap: 0
[warn] disksize: 2G
[warn] bridge: vmbr0
[warn] storage: local-lvm
[warn] templates: local
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds...

[info] Updating LXC template list...
[info] Downloading LXC template...
[error] 143 NULL: _storage_type=$(pvesm status -storage $_storage 2>/dev/null | awk 'NR>1 {print $2}')

Any feedback is appreciated. Thanks.

Ubuntu 21.10 LXC: [ERROR] 1@161 Unknown failure occured.

I have the following problem when installing Ubuntu LXC:

root@proxtest:~#  bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/ubuntu_container.sh)"
This will create a New Ubuntu 21.10 LXC Container. Proceed(y/n)?y
[INFO] Using 'two' for storage location.
[INFO] Container ID is 102.
✔  Updating LXC Template List...
✔  Downloading LXC Template...
✔  Creating LXC...
✔  Starting LXC...
✔  Setting up Container OS...
❌  No Network:  Wed Feb  9 11:39:55 PM CET 2022
/ubuntu_setup.sh: line 35: NUM: unbound variable
[ERROR] 1@161 Unknown failure occured.
  Logical volume "vm-102-disk-0" successfully removed

Do you know how to solve it?

Hassio not able to connect to MariaDB

Hi,

I've been working on this issue for several days now. I installed the LXC mariaDB with the requirements & steps as provided. In Hassio I installed the MariaDB addon and made following changes to that addon:

databases:
  - homeassistant
logins:
  - password: secretpassword
    username: admin

rights:
  - database: homeassistant
    username: admin

Underneath, I configured network host 3306 to container 3306/tcp

The log files are continuously referring to following errors:

Logger: homeassistant.components.recorder
Source: components/recorder/init.py:1098
Integration: recorder (documentation, issues)
First occurred: 21:07:11 (10 occurrences)
Last logged: 21:07:38

Error during connection setup to mysql://admin:[email protected]:3306/homeassistant?charset=utf8mb4: (MySQLdb._exceptions.OperationalError) (2002, "Can't connect to MySQL server on '192.168.1.86' (115)") (Background on this error at: https://sqlalche.me/e/14/e3q8) (retrying in 3 seconds)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3243, in _wrap_pool_connect
return fn()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 310, in connect
return _ConnectionFairy._checkout(self)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 868, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 476, in checkout
rec = pool._do_get()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 146, in do_get
self.dec_overflow()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise
(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise

raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
return self._create_connection()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
return _ConnectionRecord(self)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 371, in init
self.__connect()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 666, in connect
pool.logger.debug("Error on connect(): %s", e)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise
(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise

raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 661, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 590, in connect
return dialect.connect(*cargs, **cparams)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 584, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/init.py", line 130, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py", line 185, in init
super().init(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to MySQL server on '192.168.1.86' (115)")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/recorder/init.py", line 730, in _setup_recorder
self._setup_connection()
File "/usr/src/homeassistant/homeassistant/components/recorder/init.py", line 1098, in _setup_connection
Base.metadata.create_all(self.engine)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 4785, in create_all
bind._run_ddl_visitor(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3109, in _run_ddl_visitor
with self.begin() as conn:
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3025, in begin
conn = self.connect(close_with_result=close_with_result)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3197, in connect
return self._connection_cls(self, close_with_result=close_with_result)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 96, in init
else engine.raw_connection()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3276, in raw_connection
return self._wrap_pool_connect(self.pool.connect, _connection)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3246, in _wrap_pool_connect
Connection.handle_dbapi_exception_noconnection(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2100, in handle_dbapi_exception_noconnection
util.raise
(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise

raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3243, in _wrap_pool_connect
return fn()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 310, in connect
return _ConnectionFairy._checkout(self)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 868, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 476, in checkout
rec = pool._do_get()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 146, in do_get
self.dec_overflow()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise
(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise

raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
return self._create_connection()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
return _ConnectionRecord(self)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 371, in init
self.__connect()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 666, in connect
pool.logger.debug("Error on connect(): %s", e)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise
(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise

raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 661, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 590, in connect
return dialect.connect(*cargs, **cparams)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 584, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/init.py", line 130, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py", line 185, in init
super().init(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (2002, "Can't connect to MySQL server on '192.168.1.86' (115)")
(Background on this error at: https://sqlalche.me/e/14/e3q8)

Could you please have a look ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.