wiki:kvm-manager

Version 1 (modified by https://id.mayfirst.org/jamie, 5 months ago) (diff)

--

kvm-manager

We use kvm-manager to create, start and stop virtual guests.]

Starting with stretch, we are using the new systemd tools in kvm-manager which are documented below.

  • Start a guest: systemctl start kvm@$guest.service
  • Stop a guest: systemctl stop kvm@$guest.service (command will wait until service exits)
  • Enable a guest to start at boot time: systemctl enable kvm@$guest.service
  • Prevent a guest from starting at boot time: systemctl disable kvm@$guest.service
  • Debug: journalctl -u kvm@$guest.service

To test out process manually:

As root:

kvm-setup $guest

As the guest user:

kvm-start $guest
kvm-stop $guest

As root:

kvm-teardown $guest