Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ virt-install --name <vm-name> --memory <RAM in MB> --vcpus <cpus> --cpu host --pxe --boot nicnetwork,hd --os-variant ubuntu16.04 --disk size=<disk size in GB>,pool=vmvg -w network:<net-name> --autostart --noautoconsole --wait 0

...

Code Block
$ virsh start <vm-name>    # start a shutdown machine
$ virsh destroy <vm-name>  # Force stop a machine
$ virsh shutdown <vm-name> # Gracefully shutdown a machine
$ virsh reboot <vm-name>   # Gracefully reboot a machine
$ virsh reset <vm-name>    # Hard reset / cold boot a machine

 

Important note

If you know that the VM you're creating is supposed to run a keepalived instance, enable allmulticast on the VM's vtap interface:

Code Block
root@infra1# ip link set dev macvtap<N> allmulticast on