1podman-machine-set(1) General Commands Manual podman-machine-set(1)
2
3
4
6 podman-machine-set - Sets a virtual machine setting
7
8
10 podman machine set [options] [name]
11
12
14 Change a machine setting.
15
16
17 Rootless only.
18
19
21 --cpus=number
22 Number of CPUs. Only supported for QEMU machines.
23
24
25 --disk-size=number
26 Size of the disk for the guest VM in GB. Can only be increased. Only
27 supported for QEMU machines.
28
29
30 --help
31 Print usage statement.
32
33
34 --memory, -m=number
35 Memory (in MB). Only supported for QEMU machines.
36
37
38 --rootful
39 Whether this machine should prefer rootful (true) or rootless (false)
40 container execution. This option will also update the current podman
41 remote connection default if it is currently pointing at the specified
42 machine name (or podman-machine-default if no name is specified).
43
44
45 Unlike [podman system connection default] this option will also make
46 the API socket, if available, forward to the rootful/rootless socket in
47 the VM.
48
49
51 To switch the default VM podman-machine-default from rootless to root‐
52 ful:
53
54
55 $ podman machine set --rootful
56
57
58
59 or more explicitly:
60
61
62 $ podman machine set --rootful=true
63
64
65
66 To switch the default VM podman-machine-default from rootful to root‐
67 less:
68
69
70 $ podman machine set --rootful=false
71
72
73
74 To switch the VM myvm from rootless to rootful:
75
76
77 $ podman machine set --rootful myvm
78
79
80
82 podman(1), podman-machine(1)
83
84
86 February 2022, Originally compiled by Jason Greene jason.greene@red‐
87 hat.com ⟨mailto:jason.greene@redhat.com⟩
88
89
90
91 podman-machine-set(1)