github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-machine-set.1.md (about)

     1  % podman-machine-set(1)
     2  
     3  ## NAME
     4  podman\-machine\-set - Sets a virtual machine setting
     5  
     6  ## SYNOPSIS
     7  **podman machine set** [*options*] [*name*]
     8  
     9  ## DESCRIPTION
    10  
    11  Change a machine setting.
    12  
    13  ## OPTIONS
    14  
    15  #### **--cpus**=*number*
    16  
    17  Number of CPUs.
    18  Only supported for QEMU machines.
    19  
    20  #### **--disk-size**=*number*
    21  
    22  Size of the disk for the guest VM in GB.
    23  Can only be increased. Only supported for QEMU machines.
    24  
    25  #### **--help**
    26  
    27  Print usage statement.
    28  
    29  #### **--memory**, **-m**=*number*
    30  
    31  Memory (in MB).
    32  Only supported for QEMU machines.
    33  
    34  #### **--rootful**=*true|false*
    35  
    36  Whether this machine should prefer rootful (`true`) or rootless (`false`)
    37  container execution. This option will also update the current podman
    38  remote connection default if it is currently pointing at the specified
    39  machine name (or `podman-machine-default` if no name is specified).
    40  
    41  Unlike [**podman system connection default**](podman-system-connection-default.1.md)
    42  this option will also make the API socket, if available, forward to the rootful/rootless
    43  socket in the VM.
    44  
    45  ## EXAMPLES
    46  
    47  To switch the default VM `podman-machine-default` from rootless to rootful:
    48  
    49  ```
    50  $ podman machine set --rootful
    51  ```
    52  
    53  or more explicitly:
    54  
    55  ```
    56  $ podman machine set --rootful=true
    57  ```
    58  
    59  To switch the default VM `podman-machine-default` from rootful to rootless:
    60  ```
    61  $ podman machine set --rootful=false
    62  ```
    63  
    64  To switch the VM `myvm` from rootless to rootful:
    65  ```
    66  $ podman machine set --rootful myvm
    67  ```
    68  
    69  ## SEE ALSO
    70  **[podman(1)](podman.1.md)**, **[podman-machine(1)](podman-machine.1.md)**
    71  
    72  ## HISTORY
    73  February 2022, Originally compiled by Jason Greene <jason.greene@redhat.com>