Skip to main content

Debian set up (using SpiralLinux as installer)

 https://github.com/SpiralLinux/SpiralLinux-project (for Btrfs/Snapper set up)

 

Disk creation:  

1. Select Manual Partitioning in Calamares
2. Create the partition table (if starting fresh):
◦  Select your disk (e.g., /dev/vda)
◦  Create a new GPT partition table
3. Create EFI System Partition:
◦  Size: 1024 MiB (1 GB as requested, instead of 300M)
◦  File system: FAT32
◦  Mount point: /boot/efi
◦  Flags: Set the boot and esp flags
4. Create Root Partition:
◦  Size: Remaining space (~79 GB)
◦  File system: Btrfs (since your setup shows multiple subvolumes)
◦  Mount point: /
◦  No flags needed
5. Configure Btrfs Subvolumes (if Calamares supports it):
   After creating the Btrfs partition, you'll need to set up subvolumes for:
•  @ → /
•  @home → /home
•  @root → /root
•  @tmp → /tmp
•  @log → /var/log
•  @snapshots → /.snapshots 


Install packages:

sudo apt install -y $(cat packages.txt)

 

Install Flatpak & Homebrew: 

./flatpakAndBrew.sh

 

Install Flatpaks: 

sudo flatpak install -y $(cat flatpaks.txt)

 

Install Cosmic Desktop (from Fedora COPR): https://github.com/davidecavestro/cosmic-debian-sh-installer.git     

For VM, I found I needed to install libdisplay-info2 for cosmic-comp (and you need to enable  3D acceleration (first set listen type in Display Spice to "None" and check OpenGL; then enable 3d Acceleration in "Video Virtio")

 

Install complete QEMU/KVM stack with virt-manager on Debian 13.

Step 1: Verify CPU Virtualization Support

First, check if your CPU supports hardware virtualization:

egrep -c '(vmx|svm)' /proc/cpuinfo

If this returns a number greater than 0, your CPU supports virtualization. You can also check more details:

lscpu | grep Virtualization

Step 2: Install QEMU/KVM and Related Packages

Install the complete virtualization stack:

sudo apt update
sudo apt install qemu-system qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

Package breakdown:

  • qemu-system and qemu-kvm - The hypervisor and emulator
  • libvirt-daemon-system - Management daemon for virtualization
  • libvirt-clients - Client tools for managing VMs
  • bridge-utils - Network bridging utilities
  • virt-manager - Graphical VM management tool

Step 3: Add Your User to Required Groups

Add your user to the libvirt and kvm groups:

sudo usermod -aG libvirt $(whoami)
sudo usermod -aG kvm $(whoami)

Log out and log back in for group changes to take effect, or run:

newgrp libvirt

Step 4: Enable and Start libvirtd Service

sudo systemctl enable libvirtd
sudo systemctl start libvirtd

Verify it's running:

sudo systemctl status libvirtd

Step 5: Verify KVM Installation

Check if KVM modules are loaded:

lsmod | grep kvm

You should see either kvm_intel or kvm_amd depending on your CPU.

Verify libvirt connectivity:

virsh list --all

Step 6: Configure Default Network (if needed)

The default network should start automatically. If not:

sudo virsh net-start default
sudo virsh net-autostart default

Step 7: Launch virt-manager

You can now launch virt-manager from your application menu or run:

virt-manager

Optional: Install Additional Useful Tools

sudo apt install virt-viewer guestfs-tools
  • virt-viewer - Lightweight VM display client
  • guestfs-tools - Tools for accessing and modifying VM disk images

Troubleshooting

If you encounter permission issues, ensure:

  1. Your user is in the correct groups (check with groups)
  2. /var/run/libvirt/libvirt-sock has proper permissions
  3. The libvirtd service is running

That's it! You now have a fully functional QEMU/KVM virtualization environment with virt-manager on Debian 13.

 

 

Comments

Popular posts from this blog

Install Windows 11 on Virt-Manager

 Virt-Manager will have been installed in base install.  But to enable it (make sure SVM, or whatever virtualization is called in your BIOS is enabled). From https://computingforgeeks.com/install-kvm-qemu-virt-manager-arch-manjar/ sudo pacman -S qemu-full virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat dmidecode ip tables libguestfs edk2-ovmf swtpm Then enable and start libritd.service sudo systemctl enable libvirtd.service sudo systemctl start libvirtd.service sudo micro /etc/libvirt/libvirtd.conf Set the UNIX domain socket group ownership to libvirt, (around line 85 ) unix_sock_group = "libvirt" Set the UNIX socket permissions for the R/W socket (around line 102 ) unix_sock_rw_perms = "0770" Add your user account to libvirt group.   sudo usermod -a -G libvirt $(whoami) newgrp libvirt Restart libvirt daemon. sudo systemctl restart libvirtd.service Section below is quoted directly from https://linustechtips.com/topic/1379063-windows-11-in-virt-mana...

Getting rtcwake working on Bluefin

#!/bin/bash # User systemd setup for auto suspend/wake on Bluefin #Please run these two commands manually: #1. First, create the sudo rule: echo "$( whoami ) ALL=(ALL) NOPASSWD: /usr/bin/rtcwake" | sudo tee /etc/sudoers.d/rtcwake-nopasswd #bash #2. Then set the correct permissions: sudo chmod 440 /etc/sudoers.d/rtcwake-nopasswd #bash #After you've run those commands, we can test if passwordless sudo works: sudo rtcwake -m show #❯ sudo rtcwake -m show #alarm: off # Create user service directory mkdir -p ~/.config/systemd/user # Create helper script for suspend + rtcwake mkdir -p ~/bin cat > ~/bin/rtc-suspend.sh << 'EOF' #!/bin/bash # Helper script to suspend and set RTC wake time # Usage: rtc-suspend.sh "wake_time_description" if [ $# -ne 1 ]; then echo "Usage: $0 'wake_time_description'" echo "Example: $0 '15:00 today'" exit 1 fi wake_time="$1" wake_timestamp=$(date -d ...

Base Install

This blog is for my notes on setting up Arch from scratch to my liking. I use KDE Plasma as my desktop and my computers have a NVIDIA GPU (my Asus laptop also has an additional integrated GPU). I am not going to cover downloading the ISO, putting it on a USB, booting from the USB or running the Archinstall installer (selecting the Plasma desktop). Get WIFI running iwctl station wlan0 connect xxxxxxx May need:  sudo mkfs -t ext4 /dev/nvme1n1 if you have btrfs on old installation When running the arch installer: 1. Don't have a /home partition added!  2. Don't forget desktop! 3. Install both linux and linux-zen kernels 4. Add additional packages:  wget git micro duf base-devel kde-applications to log in the first time it may be helpful to create /usr/lib/modprobe.d/nvidia.conf with "options nvidia_drm modeset=1 fbdev=1"   (although cachyos-settings will overwrite later) Apparmor  Add the following kernel parameters to your Boot Manager, see  Boot Manage...