Rex::V...n::VBox(3pm)

πŸ’– Rex::V...n::VBox β€” the manual, but make it cute πŸ’–

okay bestie, so this is Rex::Virtualization::VBox, a page from the User Contributed Perl Documentation set. It's the VirtualBox module and it is, no cap, about to be your new fave. πŸŽ€


✨ NAME ✨

Rex::Virtualization::VBox β€” the VirtualBox Virtualization Module πŸ¦‹


🌸 DESCRIPTION 🌸

With this module you can manage VirtualBox. That's it, that's the whole vibe β€” it's giving "I hold the aux cord to your hypervisor." πŸ‘‘


πŸ’… SYNOPSIS πŸ’…

Here's the tea, literally just copy this energy, it's all verbatim:

use Rex::Commands::Virtualization;

set virtualization => "VBox";

use Data::Dumper;

print Dumper vm list => "all";
print Dumper vm list => "running";

vm destroy => "vm01";

vm delete => "vm01";

vm start => "vm01";

vm shutdown => "vm01";

vm reboot => "vm01";

vm option => "vm01",
      memory    => 512;

print Dumper vm info => "vm01";

# creating a vm
vm create => "vm01",
   storage    => [
     {
       file  => "/mnt/data/vbox/vm01.img",
       size  => "10G",
     },
     {
       file => "/mnt/iso/debian6.iso",
     }
   ],
   memory => 512,
   type => "Linux26",
   cpus => 1,
   boot => "dvd";

vm forward_port => "vm01", add => { http => [8080, 80] };

vm forward_port => "vm01", remove => "http";

print Dumper vm guestinfo => "vm01";

vm share_folder => "vm01", add => { sharename => "/path/to/share" };

vm share_folder => "vm01", remove => "sharename";
🫢 heads up bestie: for VirtualBox, memory declaration is always in megabyte. Always. Don't come at me with gigabytes, the module does not care. 😭

🌈 SEE ALSO

(okay so the original page didn't actually hand us a SEE ALSO section β€” so there's nothing to link here, and I'm not gonna invent one, periodt. πŸ™ˆ)


that's the whole page, and yes, it ate. πŸ’œ This was Rex::V...n::VBox(3pm), written up under perl v5.40.1, dated 2025-10-03 β€” go forth and manage those VMs, main character. 🧚⭐πŸ”₯

πŸ“¦ where this page comes from