How to Install Self Hosted Bitwarden on Proxmox Container

Learn how to install Bit-warden vault on a Proxmox container. I will guide you step by step, just follow along with the video or the article. It’s pretty straight forward. Checked the requirements before you start the process

Requirments :

Installation ID and Installation key from =====> https://bitwarden.com/host/
Processor = x64, 1.4Ghz Minimum
RAM = 2GB Minimum
Storage = 12GB Minimum
OS = Debian 12
Features = Nesting, Keyctl, Fuse , Unprivileged container
Domain = tld, or subdomain
Management = SMTP

Step 1 :

Create a container using below script or see the requirements

pct create 151 local:vztmpl/debian-12-standard_12.12-1_amd64.tar.zst \
--hostname bitwarden \
--cores 4 \
--memory 4096 \
--swap 1024 \
--net0 name=eth0,bridge=vmbr1,ip=dhcp \
--unprivileged 1 \
--features nesting=1,keyctl=1,fuse=1 \
--storage local-lvm \
--rootfs local-lvm:20 \
--password 1SuP3RStr0NgP@ssw0Rd

 

Step 2 :

Start the container and run below command

wget -qO- https://raw.githubusercontent.com/zonatsolutions/Bitwarden-Vault-on-Proxmox-Container/main/install.sh | bash

Step 3 :

Switch user to bitwarden, and run the installer. Don’t worry the user bitwarden was already created from the script.

su bitwarden 
cd /opt/bitwarden
./bitwarden.sh install

Step 4 :

Follow the prompts to complete the installation.

Step 5:

Once the installation is completed then run the command to start the bitwarden server.

./bitwarden.sh start

Goto web browser and enter your domain and register your first account 🙂

Step 6 :

Using the same bitwarden user open below file

nano /opt/bitwarden/bwdata/env/global.override.env
globalSettings__mail__replyToEmail=REPLACE
globalSettings__mail__smtp__host=REPLACE
globalSettings__mail__smtp__port=REPLACE
globalSettings__mail__smtp__ssl=REPLACE
globalSettings__mail__smtp__username=REPLACE
globalSettings__mail__smtp__password=REPLACE
globalSettings__disableUserRegistration=false
globalSettings__hibpApiKey=REPLACE
adminSettings__admins=REPLACE

Last line is to setup Admin account. enter your correct email, where you can receive e-mail notification.

Step 7 : Access Admin Panel

Goto yourdomain.com/admin

Type in the email address you setup in the global.override.env file.
You will receive an email with login link, click on the login link and access admin panel.

Questions ? Comments section is always open.

Leave a Reply

Your email address will not be published. Required fields are marked *