tree: 8d46282600f819ccb8f9de5c9970b293c13eec32 [path history] [tgz]
  1. README.md
  2. constants.h
  3. crosvm.cc
  4. crosvm.h
  5. mac_address.cc
  6. mac_address.h
  7. nfs_export.cc
  8. nfs_export.h
  9. pooled_resource.cc
  10. pooled_resource.h
  11. subnet.cc
  12. subnet.h
  13. vm_launcher.cc
  14. vsock_cid.cc
  15. vsock_cid.h
vm_tools/launcher/README.md

vm_launcher

Overview

vm_launcher is a frontend to crosvm that simplifies launching a VM and managing its lifecycle. This includes allocating resources that must be handled at a higher level than the VM hypervisor, such as IPv4 address allocation.

Usage

Each VM must be given a name when started. Each VM will have a runtime directory under /run/vm/<name> which contains the specific resources it has allocated, as well as the control socket for that crosvm instance.

vm_launcher uses the following subcommands:

  • run - Run a VM with serial console in the foreground.
  • start - Start a headless VM in the background.
  • stop - Stop a running VM and clean up any resources.
  • getname - Get the VM name associated with a pid.
  • help - Get vm_launcher usage help.

For more detail, run vm_launcher help