Skip to content

Debian Server 12 install

OS Installation

Do not select any environment

Isard (admin or manager roles)

Modify desktop XML

<driver name="qemu" type="qcow2" cache="unsafe" discard="unmap"/>

Configuration

Basic commands

$ su -
$ apt install sudo
$ visudo 
#add this at the end of file
isard   ALL=(ALL:ALL)   ALL
$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt install vim net-tools htop curl wget spice-vdagent qemu-guest-agent

Modify fstab

$ sudo vim /etc/fstab
for every "ext4" storage, define "noatime,discard"

UUID=xxxxx-xxxxx-xxxxxx /               ext4    defaults,noatime,discard,errors=remount-ro 0       1

Free up system space

$ cd /
$ sudo fstrim -a -v 

Reduce swap memory

$ sudo sysctl vm.swappiness=1

Reduce log storage

$ sudo vim /etc/systemd/journald.conf
SystemMaxUse=20M
SystemKeepFree=4G