How to test Debian Edu CD/BDs on Virtual Machines

Warning: This is for testing of development versions of Debian Edu running Debian unstable (sid). You may encounter bugs which might require you to reinstall everything.

For the virtualisation environment you can choose between QEMU with Virt-Manager, KVM, QEMU or VirtualBox. This guide uses the first method.

Test config 1a with thin client(s): The user can run a combi-server (main + thin client sever) on one virtual machine and 1+n thin clients on 1+n virtual machines.

Test config 1b with diskless client(s): The user can run a combi-server on one virtual machine and running diskless clients on 1+n virtual machines.

Test config 1c running both thin clients and diskless clients.

Test config 2 (not described yet): The user can run main server on a separate virtual machine, thin client server on an other virtual machine and thin clients and diskless clients (almost as 1a+1b).

Sharper view of the VMs

For a sharper view in the virtual machine window:

Set up the network environment for the VMs

Set up a collection of virtual machines that works independently of the configuration of the host.

Configure virtual networks (simulated switches)

The following steps simulate 2 switches, as mentioned in the Debian Edu network architecture diagram

Set up the VMs

VM1: Set up the gateway

First prepare the VM for the gateway using debian-edu-router based on Debian testing.

For the debian-edu-router gateway, a non-Debian Edu netinst image is required:

wcurl https://get.debian.org/images/weekly-builds/amd64/iso-cd/debian-edu-testing-amd64-netinst.iso -o debian-testing-amd64-netinst-$(date +%Y)-W$(date +%V).iso

After the Debian Installer has finished and rebooted the VM, prepare access to the debian-edu-router-config package, which is currently not available in testing (this sentence is written on 2026-10-21):

echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/allow_sid.list
echo -e "Package: *\nPin: release n=sid\nPin-Priority: 1\n\nPackage: debian-edu-router-config\nPin: release n=sid\nPin-Priority: 400" > /etc/apt/preferences.d/50pin_debian_edu_router_config
apt update

Follow the installation steps as described in the Installation chapter.

VM2: Set up the main server

Before you set up the main server, make sure that the gateway VM is running.

Note: The (re-)installation works much faster, if the host has a proxy configured (apt-cacher-ng at port 3142 or squid-deb-proxy at port 3128).

Variant sid

When writing this documentation (2026-10-21), many packages were (temporarily) not available on Debian testing (forky), so these instructions are for sid.

For the main server, use a netinst image (network-based installation, ca. 1GB):

wcurl https://get.debian.org/images/weekly-builds/amd64/iso-cd/debian-edu-testing-amd64-netinst.iso -o debian-edu-testing-amd64-netinst-$(date +%Y)-W$(date +%V).iso

Configure the VM for a main server that can act as an LTSP server too based on Debian unstable (sid).

Variant trixie 13.7.0

When writing this documentation (2026-10-21), a small fix is required to make the BD offline installation with the 13.7.0 image work. And some tweaks are needed to use the proxy of the VM host (if desired).

Configure the VM as in variant sid, with modifications as parts IMG and TWEAKS:

wcurl https://get.debian.org/images/release/current/amd64/iso-bd/debian-edu-13.7.0-amd64-BD-1.iso

cd /usr/lib/finish-install.d
rm 13debian-edu-profile-udeb
wget https://people.debian.org/~rclobus/13debian-edu-profile-udeb
chmod a+x 13debian-edu-profile-udeb

ip -o addr | awk '$4 ~ /10\.0\.2\.2\/8$/ { printf "ip addr delete %s dev %s\n", $4, $2 }' | sh

echo 'Acquire::http::Proxy "http::IPADDRESS:PORT";' > /target/etc/apt/apt.conf.d/proxy_of_host

sed -i -e '/set -e/aeval $(apt-config shell http_proxy Acquire::http::Proxy)' /target/usr/sbin/debian-edu-ltsp-install

Note: some of the issues you'll see in this setup have been fixed already and are available either in trixie-proposed-updates or sid.

Variant trixie 13.8 preview

You will need a lot more changes to the kernel command line, and to prevent typing errors, it is the more convenient to modify the BD image.

wcurl https://get.debian.org/images/release/current/amd64/iso-bd/debian-edu-13.7.0-amd64-BD-1.iso

mkdir BDwithPU
bsdtar -C BDwithPU -xf debian-edu-13.7.0-amd64-BD-1.iso
chmod -R +w BDwithPU

apt-setup/local0/repository="http://deb.debian.org/debian trixie-proposed-updates main non-free-firmware"
apt-setup/local0/comment="trixie-proposed-updates, to see what would be released with the upcoming point release"
apt-setup/local1/repository="https://salsa.debian.org/debian-edu/debian-edu-artwork/-/jobs/10448775/artifacts/raw/aptly/ unstable main"
apt-setup/local1/comment="debian-edu-artwork from git"
apt-setup/local1/key="https://salsa.debian.org/debian-edu/debian-edu-artwork/-/jobs/10448775/artifacts/raw/aptly/public-key.gpg"
apt-setup/local2/repository="https://salsa.debian.org/debian-edu/debian-edu-config/-/jobs/10478123/artifacts/raw/aptly/ unstable main"
apt-setup/local2/comment="debian-edu-config from git"
apt-setup/local2/key="https://salsa.debian.org/debian-edu/debian-edu-config/-/jobs/10478123/artifacts/raw/aptly/public-key.gpg"
apt-setup/local3/repository="https://salsa.debian.org/debian-edu/debian-edu-install/-/jobs/10364641/artifacts/raw/aptly/ unstable main"
apt-setup/local3/comment="debian-edu-install from git"
apt-setup/local3/key="https://salsa.debian.org/debian-edu/debian-edu-install/-/jobs/10364641/artifacts/raw/aptly/public-key.gpg"


rm BDwithPU/pool/main/d/debian-edu-install/debian-edu-install-udeb_2.12.11+deb13u1_all.udeb
rm BDwithPU/pool/main/d/debian-edu-install/debian-edu-profile-udeb_2.12.11+deb13u1_all.udeb
wcurl https://salsa.debian.org/debian-edu/debian-edu-install/-/jobs/10364641/artifacts/raw/aptly/pool/main/d/debian-edu-install/debian-edu-profile-udeb_2.13.2+salsaci+20260925+37_all.udeb -o BDwithPU/pool/main/d/debian-edu-install/debian-edu-profile-udeb_2.13.2+salsaci+20260925+37_all.udeb
wcurl https://salsa.debian.org/debian-edu/debian-edu-install/-/jobs/10364641/artifacts/raw/aptly/pool/main/d/debian-edu-install/debian-edu-install-udeb_2.13.2+salsaci+20260925+37_all.udeb -o BDwithPU/pool/main/d/debian-edu-install/debian-edu-install-udeb_2.13.2+salsaci+20260925+37_all.udeb

mkdir indices
cd indices
wcurl https://deb.debian.org/debian/indices/override.trixie.main.debian-installer.gz
gunzip override.trixie.main.debian-installer.gz
mv override.trixie.main.debian-installer override
cd ..

Dir {
   ArchiveDir "BDwithPU";
   OverrideDir "indices";
   CacheDir "indices";
};

TreeDefault {
   Directory "pool/";
};

BinDirectory "pool/main" {
   Packages "dists/trixie/main/debian-installer/binary-amd64/Packages";
   BinOverride "override";
};

Default {
   Packages {
       Extensions ".udeb";
   };
};

apt-ftparchive generate config-udeb --sha1=no --sha512=no

chmod -R -w BDwithPU
dd if=debian-edu-13.7.0-amd64-BD-1.iso bs=1 count=432 of=isohdpfx.bin
xorriso -as mkisofs -o debian-edu-13.7.0-amd64-BD-1-withPU.iso \
-isohybrid-mbr isohdpfx.bin \
-c isolinux/boot.cat -b isolinux/isolinux.bin \
-no-emul-boot -boot-load-size 4 -boot-info-table ./BDwithPU

Configure the VM as in variant sid, with modifications as parts IMG and TWEAKS:

echo 'Acquire::http::Proxy "http::IPADDRESS:PORT";' > /target/etc/apt/apt.conf.d/proxy_of_host

sed -i -e '/set -e/aeval $(apt-config shell http_proxy Acquire::http::Proxy)' /target/usr/sbin/debian-edu-ltsp-install

VM3: Set up a diskless workstation

Before you set up a diskless workstation, make sure that the gateway and the main server VMs are running.

Configure the VM for a diskless workstation.

Note: Interestingly, you can choose to run a diskless workstation or a thin client on the skolelinux 10.0.0.0/8 net (bridge_edu_wan). Please consult the boot menu. Select the diskless workstation, and the machine should boot.