Posts

Showing posts from May, 2020

libvirt frequently used commands summary virsh

libvirt frequently used commands summary virsh Let's summarize the frequently used commands for handling QEMU virtual machines with libvirt. Virsh define This command adds a virtual machine defined in  libvirt Domain XML Format (  https://libvirt.org/formatdomain.html  ) to libvirt. virsh define [libvirt 도메인 정의 xml 파일 경로] Virsh start start Use  to start a virtual machine  . virsh start [가상머신도메인 이름] View virtual machine list virsh list You can see the list of added virtual machines. virsh list -- all Virsh delete You can delete the added virtual machine. virsh delete [snapshot name] Pause / resume virtual machine virsh suspend, resume Use to pause the virtual machine  suspend . virsh suspend [snapshot name] resume Use  to resume a paused virtual machine  . virsh resume [snapshot name] Turn off the virtual machine virsh destroy Use to terminate the virtual machine you  destroy were using. virsh destroy [snapshot name] Create a v