Skip to content

Home Lab

Notes from my learning sessions

Menu
Menu

Tag: Debian

Preparing custom Debian 11 MATE image

Posted on March 6, 2022March 7, 2022 by sandeep

Need: QCOW2 image for orchestrating Debian 11 Server image with following customizations 1. Minimal server installation + MATE Desktop Environment + xRDP + Firefox2. ‘apparmor’ disabled3. Install required packages – zip, unzip, net-tools, cloud-guest-utils, sudo4. Configure max number of open files and processes to 655365. SSH access to be enabled only from two specific subnets…

Read more

Preparing custom Debian 11 server cloud image

Posted on December 31, 2021March 6, 2022 by sandeep

Need: QCOW2 image for orchestrating Debian 11 Server image with following customizations Basic server installation’apparmor’ disabledInstall required packages – zip, unzip, net-tools, cloud-guest-utils, sudoConfigure max number of open files and processes to 65536SSH access to be enabled only from two specific subnets (private networks)Custom resizedisk script which will be triggered on first boot to resize…

Read more

Complile Linux Kernel (on Debian 11)

Posted on December 26, 2021 by sandeep

Install required packages. root@server1:~# apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison dwarves Download the source of the required/planned version of the Linux kernel  (I had decided on 5.15) root@server1:~# wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.11.tar.xz Extract the xz file (to default folder) root@server1:~# tar xvf linux-5.15.11.tar.xzroot@server1:~# cd linux-5.15.11/root@server1:~/linux-5.15.11# Copy the existing configuration file root@server1:~/linux-5.15.11#…

Read more

OS installation: Debian 11 on a KVM guest VM.

Posted on December 13, 2021December 13, 2021 by sandeep

Download the ISO image to the /var/lib/libvirt/images folder of the KVM host. Start virt-manager and opt to create a new VM and select Local install media. Click on browse and select the downloaded ISO image If the OS is not automatically detected, uncheck automatic detection and type in Debian testing Assign memory and CPU resources….

Read more

OS installation: Debian 11 on the bare metal server.

Posted on December 13, 2021December 13, 2021 by sandeep

Download and burn the ISO image onto a USB stick and plug in the USB stick in the server. Power On the server (in my case, it is Dell R430) Press F11 to enter boot manager Select one-shot UEFI menu Select boot from the USB stick Start installation (I prefer to use non-graphical) Select Language…

Read more

Orchestrating Guest VM(s) using simple scripts on KVM host.

Posted on October 10, 2021March 7, 2022 by sandeep

As a developer, I had a need to spin up VMs as and when required.  The more I started working on Kubernetes, the need to automate the spinning up of multiple VMs to bring up a setup for configuring a cluster.  There were several options, solutions already available to automate the same on KVM.  However,…

Read more

Installing KVM

Posted on September 27, 2021March 1, 2022 by sandeep

Pre-requisite Install Debian 11 or Ubuntu 20.04 server as required. Optional I had upgraded the kernel version by compiling the kernel as explained in this how-to. Installing KVM on Debian Simple and easy – First, install the required packages apt install -y qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager Additionally, I had installed  libguestfs-tools,  for…

Read more

Installing NFS Server

Posted on September 27, 2021October 11, 2021 by sandeep

The objective is to configure the NFS server on one of the servers in the LAB. Creating the NFS client-server setup is a simple task that can be performed in a few steps – installation, export, mounting, and access. On the server install the required package apt install -y nfs-kernel-server Create a directory that gets…

Read more

Install and configure OpenLDAP Server

Posted on February 11, 2020 by sandeep

Configure hostname and FQDN for the VM/system which will be used for LDAP server. (Reference to example.com is to mask the actual usage) root@ldap:~# hostname –fqdn ldap.example.com root@ldap:~# cat /etc/hosts 127.0.0.1 localhost 10.1.2.22 ldap.example.com ldap The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters root@ldap:~# Install OpenLDAP…

Read more

Adding ClamAV Anti-virus checks to existing Postfix, Amavis+Spamassasin configuration

Posted on January 30, 2020November 7, 2021 by sandeep

Had an existing Postfix configurationup and running. Notes for bringing up the same available at https://www.sandeeprao.net/configuring-secure-mail-server-using-postfix-with-dovecot-spamassasin-postgrey-and-opendkim/ As I could add more vCPU and RAM to the VM, thought of adding anti-virus check on receipt of mails. As I had already configured amavis + spamassassin it was pretty straight forward, install the required clamav packages along…

Read more
  • 1
  • 2
  • Next

Recent Posts

  • Openstack Xena on Ubuntu 20.04 – Cinder
  • Preparing custom Debian 11 MATE image
  • Setup Ubuntu 20.04 repository mirror server
  • Preparing custom Debian 11 server cloud image
  • Complile Linux Kernel (on Debian 11)
  • Openstack Xena – Test Home Lab
  • Openstack Xena on Ubuntu 20.04 – Horizon
  • Openstack Xena on Ubuntu 20.04 -Home Lab
  • Openstack Xena on Ubuntu 20.04 – Neutron
  • Openstack Xena on Ubuntu 20.04 – Nova

Archives

  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • October 2021
  • September 2021
  • October 2020
  • February 2020
  • January 2020
  • December 2019
© 2023 Home Lab | Powered by Minimalist Blog WordPress Theme