Skip to main content

run_on_vm

Function run_on_vm 

Source
pub fn run_on_vm(vm_name: &str, script: &str) -> Result<Output>
Expand description

Run a bash script in the Linux execution environment, capturing output.

On native Linux with KVM: runs bash -c directly on the host. On macOS or Linux without KVM: runs via limactl shell inside a Lima VM.