PVIRSH(1)

πŸ“¦ version 2.2, in opensuse-leap 16.0

πŸ’– 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 virsh domain 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 Hypervisor
  • show_xml_path β€” show the current path to the XML device definition
  • xml_path β€” choose path to the XML device definition
  • file β€” select the group yaml file
  • show_file β€” show the current yaml file used
  • show_group β€” show all groups available
  • select_group β€” select the group of Virtual Machine to work on
  • show_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 Hypervisor
  • select_vm β€” select Virtual Machine(s) to work on (multiple selection possible separate by ,)
  • cmd β€” execute a domain command
  • hcmd β€” help on virsh command (display options)
  • add_dev β€” easy way to add a device to a group of Virtual Machine
  • remove_dev β€” easy way to remove a device to a group of Virtual Machine
  • start β€” start a group of Virtual Machine
  • shutdown β€” shutdown a group of Virtual Machine
  • shell β€” 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 β€” pvirsh version 2.2, dated 2023-03-03, page PVIRSH(1). periodt. 🫢
πŸ“¦ where this page comes from