Construct connection URI to be used with virsh command. URI is composed of many parts which are all supported here. Please refer to libvirt page for details: https://libvirt.org/uri.html#remote-uris.
Create guest by using virsh define or xl create. Main arguments are guest to be created, virtualization management tool to be used, whether die (1) or not (0) if any failures happen, directory in which guest xml and xl config are stored and whether start (1) or not (0) guest after defining it. This subroutine also calls construct_uri to determine the desired URI to be connected if the interested party is not localhost. Please refer to subroutine construct_uri for the arguments related.
Shutdown guest and verify result. Main arguments are guest to be powered off, virtualization management tool (virsh or xl) to be used and whether die (1) or not (0) if any failures happen. This subroutine also calls construct_uri to determine the desired URI to be connected if the interested party is not localhost. Please refer to subroutine construct_uri for the arguments related.
Remove guest forcibly. Main arguments are guest to be removed, and whether die (1) or not (0) if any failures happen. This subroutine also calls construct_uri to determine the desired URI to be connected if the interested party is not localhost. Please refer to subroutine construct_uri for the arguments related.
Show all guests available on host or specified ones. Main arguments are guest to be checked, virtualization management tool to be used (virsh or xl) and whether die (1) or not (0) if any failures happen. This subroutine also calls construct_uri to determine the desired URI to be connected if the interested party is not localhost. Please refer to subroutine construct_uri for the arguments related.
Check and return guest state. Main argument are guest to be checked and virtualization management tool to be used (virsh or xl). This subroutine also calls construct_uri to determine the desired URI to be connected if the interested party is not localhost. Please refer to subroutine construct_uri for the arguments related.