Skip to content

Commit 52fd96a

Browse files
author
ethan
committed
Merge pull request 'feat: check QEMU and virtiofsd in devbox doctor on Linux' (#5) from fix/doctor-linux-deps into main
Reviewed-on: https://git.giomni.com/ethan/devbox/pulls/5
2 parents 4487e00 + ecf54ea commit 52fd96a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "devbox"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2024"
55
description = "Isolated developer VMs for AI coding agents and humans. Safe by default."
66
license = "Apache-2.0"

src/cli/doctor.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ pub async fn run(_args: DoctorArgs, manager: &SandboxManager) -> Result<()> {
2323
"sudo apt install incus # or: snap install incus",
2424
);
2525
has_any_runtime |= found;
26+
27+
// QEMU and virtiofsd are required for Incus VMs on Linux
28+
if found {
29+
println!("\nIncus VM dependencies:");
30+
check_binary_with_install(
31+
" QEMU",
32+
"qemu-system-x86_64",
33+
"sudo apt install qemu-system-x86 qemu-utils -y",
34+
);
35+
check_binary_with_install(
36+
" virtiofsd",
37+
"virtiofsd",
38+
"sudo apt install virtiofsd -y # or: sudo apt install qemu-system-common -y",
39+
);
40+
}
2641
}
2742

2843
if os == "macos" {

0 commit comments

Comments
 (0)