The Complete OVH KS-2 Seedbox Setup: From Mount Optimization to qBittorrent Deployment
·(edited)· / · reads0
AI TranslationSimplified ChineseEnglish
A seedbox is a server built specifically for BitTorrent seeding and downloading, so it needs solid disk I/O and network bandwidth. This post walks through the full process of turning an OVH KS-2 dedicated server into one — from system tuning all the way to qBittorrent deployment — organizing what used to be scattered steps into a single, follow-along tutorial.
Applies to: OVH KS-2 dedicated servers running Debian/Ubuntu with XFS as the filesystem. 1. Optimizing XFS Mount Options
In a seedbox workload the disk is constantly reading and writing huge numbers of small files (BitTorrent pieces), and the stock XFS mount options aren't tuned for that pattern. Manual tweaks are needed to get better I/O performance.
Manual configuration
Step 1: edit the fstab file
sudo nano /etc/fstab
Step 2: change the mount options
Replace the mount options for the relevant partition with the following:
Doesn't record file access times, cutting down unnecessary writes
nodiratime
Doesn't record directory access times — same idea
discard
Enables TRIM, which keeps SSD performance healthy over time
logbsize=256k / logbufs=8
Enlarges the log buffer to improve performance under heavy concurrent writes
allocsize=8m
Pre-allocates space to reduce file fragmentation
inode64
Supports a wider inode number range, well suited to high-capacity storage
swalloc
Aligns allocations to the stripe width, a win when paired with RAID arrays
Step 3: reload the configuration
sudo systemctl daemon-reload
After editing /etc/fstab, run sudo mount -o remount / (or the relevant mount point) to apply the options immediately, or just reboot the server and verify the options took effect (use mount | grep xfs to check the current mount options).
One-command script
All three steps above are wrapped up in a script, so a single command gets it done:
Once the mount options are tuned, it's worth benchmarking the disk's actual read/write performance to have a baseline for comparing before and after the optimization:
bash <(wget -qO- git.io/ceshi)
3. Installing qBittorrent
A one-command script installs qBittorrent-nox (the headless version managed through the Web UI), and you can specify the username, password, cache size, and version right at install time:
Back up the original binary (go into the /usr/bin directory and rename the original file to keep it — don't delete it — so you can roll back if anything goes wrong):
cd /usr/bin mv qbittorrent-nox qbittorrent-nox.bak
Move the downloaded new version into /usr/bin and make it executable:
If you need several qBittorrent instances on one machine (to separate different uses or storage disks, for example), a multi-instance script can spin them up quickly:
The KS-2 ships with a fairly conservative default clock speed. A script can adjust the CPU scheduler policy to push the actual running frequency higher:
Raising the clock increases CPU power draw and heat, so after applying it, keep an eye on system stability and temperatures for a while.
7. Setting the OVH Root Password
Some OVH models don't enable root password login by default (you authenticate with SSH keys or use rescue mode). The script below sets a root password in no time, so you can log in and manage the box with a password:
For security, once you enable root password login it's best to pair it with firewall rules that restrict SSH access sources, or add tools like Fail2ban to fend off brute-force attacks.
8. Enabling BBR Congestion Control
A seedbox needs to squeeze the most out of its upload bandwidth. Enabling congestion control algorithms such as BBR/BBRx/BBRz improves transfer efficiency on high-latency, packet-lossy networks:
The script lets you choose among BBR, BBRx, BBRz, and other congestion control algorithms — just run it and follow the prompts.
The Full Process at a Glance
Worked through in order, the journey from a stock OVH KS-2 dedicated server to a working seedbox looks roughly like this:
Optimize XFS mounting (one command does it: xfs.sh)
Benchmark the disk, confirming the optimization took effect
Install qBittorrent, specifying the username and password
(Optional)Swap in the KS-2-optimized qBittorrent to improve compatibility/performance
(Optional)Run several qBittorrent instances to cover multiple use cases
Raise the CPU clock speed
Set a root password to make management easier later
Enable BBR to optimize transfer efficiency
When everything's done, log into the qBittorrent management interface via the Web UI (the default port depends on the install script's settings) and you're all set to start using it.
A seedbox is a server built specifically for BitTorrent seeding and downloading, so it needs solid disk I/O and network bandwidth. This post walks through the full process of turning an OVH KS-2 dedicated server into one — from system tuning all the way to qBittorrent deployment — organizing what used to be scattered steps into a single, follow-along tutorial.
Applies to: OVH KS-2 dedicated servers running Debian/Ubuntu with XFS as the filesystem.
1. Optimizing XFS Mount Options
In a seedbox workload the disk is constantly reading and writing huge numbers of small files (BitTorrent pieces), and the stock XFS mount options aren't tuned for that pattern. Manual tweaks are needed to get better I/O performance.
Manual configuration
Step 1: edit the fstab file
Step 2: change the mount options
Replace the mount options for the relevant partition with the following:
Option reference:
Option
What it does
noatime
Doesn't record file access times, cutting down unnecessary writes
nodiratime
Doesn't record directory access times — same idea
discard
Enables TRIM, which keeps SSD performance healthy over time
logbsize=256k / logbufs=8
Enlarges the log buffer to improve performance under heavy concurrent writes
allocsize=8m
Pre-allocates space to reduce file fragmentation
inode64
Supports a wider inode number range, well suited to high-capacity storage
swalloc
Aligns allocations to the stripe width, a win when paired with RAID arrays
Step 3: reload the configuration
After editing /etc/fstab, run sudo mount -o remount / (or the relevant mount point) to apply the options immediately, or just reboot the server and verify the options took effect (use mount | grep xfs to check the current mount options).
One-command script
All three steps above are wrapped up in a script, so a single command gets it done:
2. Benchmarking the Disk
Once the mount options are tuned, it's worth benchmarking the disk's actual read/write performance to have a baseline for comparing before and after the optimization:
3. Installing qBittorrent
A one-command script installs qBittorrent-nox (the headless version managed through the Web UI), and you can specify the username, password, cache size, and version right at install time:
Option reference:
Option
Meaning
-u
Web UI login username
-p
Web UI login password
-c
Cache size (adjust to the machine's RAM — the more memory, the higher you can go)
-q
qBittorrent version
-l
libtorrent library version
-y
Auto-confirm, skipping interactive confirmation prompts
Once installed, you can use systemctl status qbittorrent-nox@用户名 to confirm the service is running properly.
4. Swapping in the KS-2-Optimized qBittorrent (Optional)
There's a qBittorrent-nox build compiled and optimized specifically for the OVH KS-2. Here's how to replace the stock one:
5. Running Multiple qBittorrent Instances (Optional)
If you need several qBittorrent instances on one machine (to separate different uses or storage disks, for example), a multi-instance script can spin them up quickly:
6. Raising the KS-2 CPU Clock
The KS-2 ships with a fairly conservative default clock speed. A script can adjust the CPU scheduler policy to push the actual running frequency higher:
7. Setting the OVH Root Password
Some OVH models don't enable root password login by default (you authenticate with SSH keys or use rescue mode). The script below sets a root password in no time, so you can log in and manage the box with a password:
8. Enabling BBR Congestion Control
A seedbox needs to squeeze the most out of its upload bandwidth. Enabling congestion control algorithms such as BBR/BBRx/BBRz improves transfer efficiency on high-latency, packet-lossy networks:
The script lets you choose among BBR, BBRx, BBRz, and other congestion control algorithms — just run it and follow the prompts.
The Full Process at a Glance
Worked through in order, the journey from a stock OVH KS-2 dedicated server to a working seedbox looks roughly like this:
When everything's done, log into the qBittorrent management interface via the Web UI (the default port depends on the install script's settings) and you're all set to start using it.