MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / start_vm

Method start_vm

vmm/src/vmm-cli.py:567–570  ·  view source on GitHub ↗

Start a VM.

(self, vm_id: str)

Source from the content-addressed store, hash-verified

565 return "-"
566
567 def start_vm(self, vm_id: str) -> None:
568 """Start a VM."""
569 self.rpc_call("StartVm", {"id": vm_id})
570 print(f"Started VM {vm_id}")
571
572 def stop_vm(self, vm_id: str, force: bool = False) -> None:
573 """Stop a VM."""

Callers 1

mainFunction · 0.95

Calls 1

rpc_callMethod · 0.95

Tested by

no test coverage detected