Rex::Vi...LibVirt(3)
π Rex::Virtualization::LibVirt(3) π
okay bestie so you're reading a User Contributed Perl Documentation page for Rex::Vi...LibVirt(3) and honestly? you're about to have a lovely time π
π¦ NAME π¦
Rex::Virtualization::LibVirt β the LibVirt Virtualization Module, aka your new fave little helper π
πΈ DESCRIPTION πΈ
With this module you can manage LibVirt. that's it, that's the whole vibe β¨ it's giving "small but mighty" and we're obsessed fr fr π
β¨ SYNOPSIS β¨
okay so here's the whole mood board of what you can do, literally copy-paste energy π«Ά
use Rex::Commands::Virtualization;
set virtualization => "LibVirt";
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",
max_memory => 1024*1024,
memory => 512*1024;
print Dumper vm info => "vm01";
# creating a vm on a kvm host
vm create => "vm01",
storage => [
{
file => "/mnt/data/libvirt/images/vm01.img",
dev => "vda",
}
];
print Dumper vm hypervisor => "capabilities";
likeβ¦ look at that. vm list => "all", vm list => "running", vm destroy => "vm01", vm delete => "vm01", vm start => "vm01", vm shutdown => "vm01", vm reboot => "vm01" β the whole lifecycle is right there, no cap π₯
then vm option => "vm01" with max_memory => 1024*1024 and memory => 512*1024, and print Dumper vm info => "vm01" when you wanna peek π
and for the kvm-host girlies, creating a vm is literally this:
vm create => "vm01",
storage => [
{
file => "/mnt/data/libvirt/images/vm01.img",
dev => "vda",
}
];
finally print Dumper vm hypervisor => "capabilities"; when you just gotta know what your hypervisor is serving πβ¨
π reminder bestie: the code blocks above are verbatim, so don't go "fixing" the formatting, it's iconic as-is π
π sign-off π
and that's the page!! this little gem was rendered by perl v5.42.3 on 2023-08-05 β go off, vintage queen ππ«Ά
now go manage some LibVirt, slay, and hydrate ππ§β
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms