diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index 8e5fbb5..230630e 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -126,6 +126,12 @@ struct Run: AsyncParsableCommand { if try vmDir.state() == "suspended" { suspendable = true } + + if suspendable { + if dir.count > 0 { + throw ValidationError("Suspending VMs with shared directories is not supported") + } + } } @MainActor