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:
Select View | Scale Display | Never
Select View | Resize to VM
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
In Virtual Machine Manager, select Edit | Connection Details | Virtual Networks.
- Define the switch to connect the gateway and the Main server:
Click on the plus icon (Add Network)
Name: bridge_edu_wan
Choose Mode: Isolated
Disable Enable IPv4
Confirm that Enable IPv6 is also disabled
Click Finish
- Define the switch to connect the LTSP server located on the Main server to the networked clients:
Click on the plus icon (Add Network)
Name: bridge_edu_lan
Choose Mode: Isolated
Disable Enable IPv4
Confirm that Enable IPv6 is also disabled
Click Finish
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
In Virtual Machine Manager, select File | New Virtual Machine
Select Connection QEMU/KVM
Select Local installation media
Click Forward
Click Browse and choose the regular netinst image
Click Forward
Just 1GiB of memory is sufficient: Memory 1024
CPUs 1
Click Forward
A small disk image is sufficient: 4 GiB
Click Forward
Name: debian-edu-gateway
Enable Customise configuration before install
Click Finish
Click Add Hardware
Select Network
Choose in Network source Virtual network 'bridge_edu_wan': Isolated network
Click Finish
Click Begin Installation
- Select the graphical installer
- When the Debian Installer runs, select the default answers, except:
Configure the network, choose enp1s0. This is the interface which gets an IP address via DHCP from the host
- If the VM host is running a proxy, enter the information when prompted (this speeds up the installation)
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):
Log in as root
- Type in the root console:
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).
In Virtual Machine Manager, select File | New Virtual Machine
Select Local installation media
Select Connection QEMU/KVM
Click Forward
IMG Choose the Debian Edu netinst image
Click Forward
Memory 2048
CPUs 2
Click Forward
You'll need some large amount of disk space: 70 GiB
Click Forward
Name: debian-edu-tjener
Enable Customise configuration before install
Change Network selection to Virtual network 'bridge_edu_wan': Isolated network
Click Finish
Click Add Hardware
Select Network
Change Network source to Virtual network 'bridge_edu_lan': Isolated network
Click Finish
Click Begin Installation
Move the cursor to the Graphical install line and press Tab
TWEAKS: in other variants other tweaks will be required
On the command line append after quiet: mirror/suite=unstable mirror/codename=sid apt-setup/services-select=none
If you are using a host with a proxy, also add: mirror/http/proxy=<the proxy IP-addres and port>
Press Enter to start the installer
- When the Debian Installer runs, select the default answers, except:
Configure the network, choose enp1s0. This is the interface which is connected to the gateway.
Select Configure network manually after the DHCP request timed out.
IP address: 10.0.2.2/8
Really use the automatic partitioning tool?: Yes
Note: The password for the user must be sufficiently strong, i.e. at least 5 characters and different from the username, see the Wiki
There will be an error message from XXX. Press Continue to continue. This error message is due to the additional commandline options and shows that they will be used.
When the Debian Installer shows the Installation complete dialog, make some adjustments:
Switch to a console with Send Key | Ctrl+Alt+F3
Activate the console with Enter
Modify the file that contains the Debian version: chroot /target sed -i -e 's/forky/unstable/' /etc/debian_version
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:
At step IMG, use the following BD image instead of the Debian Edu netinst image:
wcurl https://get.debian.org/images/release/current/amd64/iso-bd/debian-edu-13.7.0-amd64-BD-1.iso
Replace the steps after TWEAKS with:
Press Enter to start the installer
- When the Debian Installer runs, select the default answers, except:
Configure the network, choose enp1s0. This is the interface which is connected to the gateway.
Select Configure network manually after the DHCP request timed out.
IP address: 10.0.2.2/8
When the step Choose Debian Edu profile is shown, do the following:
Switch to a console with Send Key | Ctrl+Alt+F3
Activate the console with Enter
Get the updated script:
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
Disable the IP-address to guarantee offline installation
ip -o addr | awk '$4 ~ /10\.0\.2\.2\/8$/ { printf "ip addr delete %s dev %s\n", $4, $2 }' | shReturn to the installer screen with Send Key | Ctrl+Alt+F5 and resume the installation
Really use the automatic partitioning tool?: Yes
Note: The password for the user must be sufficiently strong, i.e. at least 5 characters and different from the username, see the Wiki
If you are using a proxy on the host, make some adjustments when the Debian Installer shows the Installation complete dialog:
Switch to a console with Send Key | Ctrl+Alt+F3
- Create a configuration file for the proxy:
echo 'Acquire::http::Proxy "http::IPADDRESS:PORT";' > /target/etc/apt/apt.conf.d/proxy_of_host
- Allow the first-boot script to use the proxy:
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.
- Download the BD image
wcurl https://get.debian.org/images/release/current/amd64/iso-bd/debian-edu-13.7.0-amd64-BD-1.iso
Unpack it, as described on the Wiki
mkdir BDwithPU bsdtar -C BDwithPU -xf debian-edu-13.7.0-amd64-BD-1.iso chmod -R +w BDwithPU
Update the kernel command line after quiet. All text must be on a single line, in BDwithPU/boot/grub/grub.cfg and also in BDwithPU/isolinux/gtk.cfg
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"
If you are using a host with a proxy, also add: mirror/http/proxy=<the proxy IP-addres and port>
- Replace the udebs
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
- Prepare the override file
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 ..
Create a file config-udeb with the content
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";
};
};- Update the meta-information
apt-ftparchive generate config-udeb --sha1=no --sha512=no
- Repack the BD ISO
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:
At step IMG, use the following repacked BD image instead of the Debian Edu netinst image
Replace the steps after TWEAKS with:
Press Enter to start the installer
- When the Debian Installer runs, select the default answers, except:
Configure the network, choose enp1s0. This is the interface which is connected to the gateway.
Select Configure network manually after the DHCP request timed out.
IP address: 10.0.2.2/8
Really use the automatic partitioning tool?: Yes
Note: The password for the user must be sufficiently strong, i.e. at least 5 characters and different from the username, see the Wiki
If you are using a proxy on the host, make some adjustments when the Debian Installer shows the Installation complete dialog:
Switch to a console with Send Key | Ctrl+Alt+F3
- Create a configuration file for the proxy:
echo 'Acquire::http::Proxy "http::IPADDRESS:PORT";' > /target/etc/apt/apt.conf.d/proxy_of_host
- Allow the first-boot script to use the proxy:
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.
In Virtual Machine Manager, select File | New Virtual Machine
Select Manual install
Click Forward
Select Debian testing
Click Forward
Memory 2048
CPUs 2
Click Forward
Disable Enable storage for this virtual machine
Click Forward
Name: debian-edu-dlw01
Change Network selection to Virtual network 'bridge_edu_lan': Isolated network
Click Finish
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.
