tree: a9e0ce7059840fd790c8742695917265c43f24fd [path history] [tgz]
  1. constants.h
  2. crosvm.cc
  3. crosvm.h
  4. mac_address.cc
  5. mac_address.h
  6. nfs_export.cc
  7. nfs_export.h
  8. pooled_resource.cc
  9. pooled_resource.h
  10. README.md
  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