{"id":14056,"date":"2022-09-20T19:43:58","date_gmt":"2022-09-20T16:43:58","guid":{"rendered":"https:\/\/kifarunix.com\/?p=14056"},"modified":"2024-03-09T21:24:56","modified_gmt":"2024-03-09T18:24:56","slug":"create-and-manage-virtualbox-vm-groups","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/create-and-manage-virtualbox-vm-groups\/","title":{"rendered":"Create and Manage VirtualBox VM Groups"},"content":{"rendered":"\n
In this tutorial, you will learn how to create and manage VirtualBox vm groups. In VirtualBox, it is possible to create virtual machines groups. You can group together virtual machines that servers the same purpose or just group them as you so wish. Grouping the VMs, enables you to manage and perform functions on them collectively, as well as individually<\/em>. Some of the groups command that you can execute include, Start, Pause, Reset, save state,shutdown, poweroff, Discard Saved State, Show in File System, Sort…<\/p>\n\n\n\n There are different ways in which you can create and manager VirtualBox VM groups;<\/p>\n\n\n\n Consider the VMs below on my VirtualBox;<\/p>\n\n\n\n Or simply list the vms from the command line;<\/p>\n\n\n\n From the VirtualBox manager, you can create VirtualBox vm groups in different ways;<\/p>\n\n\n\n You should see a new group created. Right click on the group and rename accordingly;<\/p>\n\n\n\n To add more vms to the group, select and drag and drop respective vm into the respective group.<\/p>\n\n\n\n Note that is also possible to create nested groups. These are groups within groups.<\/p>\n\n\n\n Similarly, you can create VirtualBox vm groups using To begin with, you can list available groups;<\/p>\n\n\n\n To create VirtualBox vm group using vboxmanage command line tool;<\/p>\n\n\n\n For example, to create a group called Linux<\/strong> and add a Debian 10<\/strong> VM into this group.<\/p>\n\n\n\n If the group already exists, the command will add the VM into the group.<\/p>\n\n\n\n To add another VM into the group simply run the same command and change the name of the vm;<\/p>\n\n\n\n To create multiple groups and add vms into those groups, run the command below. NOTE<\/strong> that if the groups already exist, the vms will be added to those groups. If the groups don’t exist, they will be created;<\/p>\n\n\n\n To remove VirtualBox VM from the group;<\/p>\n\n\n\nCreate and Manage VirtualBox VM Groups<\/h2>\n\n\n\n
\n
vboxmanage<\/code><\/strong> command line tool.<\/li>\n<\/ul>\n\n\n\n
<\/figure>\n\n\n\n
vboxmanage list vms<\/code><\/pre>\n\n\n\n
\"Windows_7\" {50a7bf65-bf3a-4ada-8219-10addcf150ce}\n\"Windows10\" {c53f6bbd-d888-4a08-90aa-c68c8e869d8d}\n\"Debian 10\" {d5a81f4a-7c6a-4a54-b3b1-5083c53f973f}\n\"fossa\" {203e56fa-f4e1-4599-839e-6d3ddf81a750}\n\"kali-2022.2\" {8bf654ff-0e12-41d7-b17a-9dc327c8169b}\n\"RockyLinux8\" {f8664c6d-47de-45b2-8f2d-3421108bd399}\n\"jellyfish\" {78ef19ce-5363-4c4a-a8b7-d8347a3b655e}\n\"Oracle9\" {1057e047-659a-47e2-a9f1-1f36f5ff97da}\n\"oracle8\" {36b185f5-db4f-4a2d-961f-8d5c9222a50e}<\/code><\/pre>\n\n\n\n
Use VirtualBox Manager to Create VirtualBox VM groups<\/h3>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Use
vboxmanage<\/code><\/strong> CLI tool Create VirtualBox VM groups<\/h3>\n\n\n\n
vboxmanage<\/strong><\/code> command line tool.<\/p>\n\n\n\n
vboxmanage list groups<\/code><\/pre>\n\n\n\n
vboxmanage modifyvm <uuid-of-the-vm|vm-name> [--groups <\/group>, ...]<\/code><\/pre>\n\n\n\n
vboxmanage modifyvm \"Debian 10\" --groups \"\/Linux\"<\/code><\/pre>\n\n\n\n
vboxmanage modifyvm \"jellyfish\" --groups \"\/Linux\"<\/code><\/pre>\n\n\n\n
vboxmanage modifyvm \"Oracle9\" --groups \"\/Linux,\/Database\"<\/code><\/pre>\n\n\n\n
Remove VirtualBox VM from Groups<\/h3>\n\n\n\n
\n
vboxmanage modifyvm \"Debian 10\" --groups \"\"<\/code><\/pre>\n\n\n\n
\n