PVIRSH(1)
π PVIRSH(1) π
okay so bestie, this is the pvirsh page, and the manual-name situation is literally VM definition tuner. We're managing Virtual Machines in parallel, group-chat style. π«Ά
β¨ NAME β¨
pvirsh β Parallel virsh command. iconic. π
π¦ SYNOPSIS π¦
pvirsh [OPTIONS]
πΈ DESCRIPTION πΈ
pvirsh is a parallel virsh command to manage a selected group of Virtual Machine. This provides an easy way to execute the same command on a selected group of Virtual Machine. β¨
So like, today if you want to manage more than one Virtual Machine, you need to script your action and this will be done in a sequential way (most of the time). pvirsh is a wrapper to launch async management command on a group of Virtual Machine. And pvirsh is launched in interactive mode by default. no cap. π
π CONFIGURATION π
If you're using an RPM package, the default group configuration yaml file will be in /etc/pvirsh directory. If you're using the setup.py, it will be in /usr/share/pvirsh/ directory. It's possible to not use a group yaml by selecting vm from a list (select_vm). πΈ
π§ XML DEVICES DEFINITION π§
All xml default device definition are in /usr/share/pvirsh/xml directory. That's the path, bestie. π¦
π₯ FEATURES π₯
- Launch parallel command on multiple Virtual Machine selected by group (or in a list)
- Auto-completion of the
virshdomain command - Reports of error/success per Virtual Machine
- Interactive mode with intelligent prompt (display group, yaml file and connector)
- Interactive terminal or a one shot command
- Colored prompt to easily catch up trouble and syntax
- yaml file group: default is
groups.yaml, possible to change to any other file
π Interactive command π
Okay these are the commands you can type in the interactive vibe:
connβ connect to an Hypervisorshow_xml_pathβ show the current path to the XML device definitionxml_pathβ choose path to the XML device definitionfileβ select the group yaml fileshow_fileβ show the current yaml file usedshow_groupβ show all groups availableselect_groupβ select the group of Virtual Machine to work onshow_vmβ display the list of VM selected according to the current group(s)show_all_vmβ display the list of all Virtual Machine available in current Hypervisorselect_vmβ select Virtual Machine(s) to work on (multiple selection possible separate by,)cmdβ execute a domain commandhcmdβ help on virsh command (display options)add_devβ easy way to add a device to a group of Virtual Machineremove_devβ easy way to remove a device to a group of Virtual Machinestartβ start a group of Virtual Machineshutdownβ shutdown a group of Virtual Machineshellβ execution of a system command
β OPTIONS β
-h,--helpβ show this help message and exit.-s,--showgroupβ Show group from the yaml group file--conn CONNβ Connect to the hypervisor (local|ssh)-g,--group GROUPβ Group of VM to use (could be a list separated by,)-f,--file FILEβ Group file to use as yaml file-n,--noninterβ Launch this tool in non interactive mode--c,--cmd CMDβ Command to execute on a group of VM
π AUTHORS π
Written by Antoine Ginies. π
π and that's the whole page, bestie βpvirshversion2.2, dated2023-03-03, pagePVIRSH(1). periodt. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: python3-pvirsh 2.2-160000.2.2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms