1Rex::Virtualization::LiUbsVeirrtC(o3n)tributed Perl DocuRmeexn:t:aVtiirotnualization::LibVirt(3)
2
3
4
6 Rex::Virtualization::LibVirt - LibVirt Virtualization Module
7
9 With this module you can manage LibVirt.
10
12 use Rex::Commands::Virtualization;
13
14 set virtualization => "LibVirt";
15
16 print Dumper vm list => "all";
17 print Dumper vm list => "running";
18
19 vm destroy => "vm01";
20
21 vm delete => "vm01";
22
23 vm start => "vm01";
24
25 vm shutdown => "vm01";
26
27 vm reboot => "vm01";
28
29 vm option => "vm01",
30 max_memory => 1024*1024,
31 memory => 512*1024;
32
33 print Dumper vm info => "vm01";
34
35 # creating a vm on a kvm host
36 vm create => "vm01",
37 storage => [
38 {
39 file => "/mnt/data/libvirt/images/vm01.img",
40 dev => "vda",
41 }
42 ];
43
44 print Dumper vm hypervisor => "capabilities";
45
46
47
48perl v5.32.1 2021-03-06 Rex::Virtualization::LibVirt(3)