Skip to main content

Proxmox installation and tweeks

 Proxmox installation and tweeks


1) First thing is to decide how you want to partition your drive.
for my personal home server to maximize the server capacity: i settled on the following:
  • 1 SSD (120G) for the OS formatted in EXT4.
  • 3 HDDs (8T) for data formatted as ZFS in RAIDZ.
  • 1 NVMe for VMs and containers that will benefit from the fast read/write speed.

logic behind this setup:
  1. There are so many discussions over the internet about the fastest and most secure setting for the data drive. After spending hours reading and researching this topic, i have settled on RAIDZ: one drive can fail without losing all the data. in my opinion, since i intend to backup outside of the server,  just some files and folders, it didn't make sense to over provision.


2) installation setup:

install proxmox in the SSD default setting except for SWAP that was set to 20G.
  • format as EXT 4
  • 20G for Swap
  • everything else leave default.
 
1. Use the drive ID when forming the zfs pool, if you change the motherboard or make hardware changes to your system it can miss up the drive letters and cause the pool to act up. when i installed a new server, i thought i would just move all my drives to new system and it should work.
I even kept the drive orders from original setup. The system booted with no issues and pool appears to be still working but there were issues i couldn't explain. i noticed that some my of old files/folder were lost. In short, i learned that i need to start using the drive IDs when forming the zfs pool.

Determine the drives ids and create a zpool on the 3 HDDs:
  • ls /dev/disk/by-id
  • zpool create -f -o mypool raidz /dev/disk/by-id/id-xxxxxx111 /dev/disk/by-id/id-xxxxxx222 /dev/disk/by-id/id-xxxxxx333
The NVMe will be used later as attached drive and will be keept outside the zpool for more flexibility.



3) tweeks:

to monitor server CPU temperature add the following: ( coming )


4) Commands and tricks:
1. Use wget command to directly download iso images directly to  folder
cd ISO-folder
wget https://address-link-iso
2. zpool iostat -v

(more coming)

Comments

Popular posts from this blog

Create a desktop environment container in Proxmox and set it up as template

test Overview This Tutorial is on how to build a custom LXC template with a desktop environment and audio working in xrdp. This method can be used to build custom templates with or without GUI desktop. Building custom template will take less than 30 minutes, mostly for downloading new software. Go to section: Introduction Installing apps and tools Installing GUI desktop Environment Fixing the sound output Creating LXC template Conclusion References Introduction Creating custom templates with your favorite software and settings will save you time when deploying new containers because you don’t have to keep changing, updating and installing the same software on each new container. In the example below, after installing the desktop environment the template size was 690M. I hope this tutorial will be useful to those that like to use graphics GUI desktop and don’t have time or hardware resource to install VMs. I spent a lot of time researching and reading ...

Getting the sound to work in LXC container with RDP

As a followup to my last post (link) for creating a container with desktop environment in proxmox, i will try to share a solution i found in getting the sound to work. The solution came from the folks at Griffon’s IT Library: link Per the developers of the script: “The xRDP installer script can ease the installation of xRDP packages on Ubuntu machines. The xRDP installer script perform additional post configuration actions that provides the best remote Desktop user experience.” The sound problem appear to be a common issue with some users of ubuntu 19.10 and in xrdp as reported in this site . In any case, the script by Griffon provides a quick fix to the sound in xRDP on Ubuntu. I found that his quick fix works in LXC container too! Here are the steps: get latest download link of xrd-installer-1.2 from this website: cd opt wget http://c-nergy.be/downloads/xRDP/xrdp-installer-1.2.zip unzip xrdp* chmod +x xrdp-installer-1.2.sh create a new user if you don’t already have one: adduser...
## Overview This Tutorial is on how to build a custom LXC template with a desktop environment and audio working in xrdp. This method can be used to build custom templates with or without GUI desktop. Building custom template will take less than 30 minutes, mostly for downloading new software. Go to section * [Introduction](#introduction) * [Installing apps and tools](#installing-apps-and-tools) * [Installing GUI desktop Environment](#installing-gui-desktop-environment) * [Fixing the sound output](#fixing-the-sound-output) * [Creating LXC template](#creating-lxc-template) * [Conclusion ](#conclusion ) * [References](#references ) *** ## Introduction Creating custom templates with your favorite software and settings will save you time when deploying new containers because you don't have to keep changing, updating and installing the same software on each new container. In the example below, after installing the desktop environment the template size was 690M. I hope thi...