Chapter 2. Configure a Podman machine
While a default Podman machine is created automatically upon installation, you can create a custom machine that allows you to manually define specific configurations:
- Allocating resources (CPUs, memory, and disk size).
- Using a custom boot image
- Setting the machine to use a rootful connection by default
- On Windows: Enabling user mode networking to route traffic through the host’s network session
Prerequisites
- You have installed Red Hat build of Podman Desktop and Podman on your machine.
For details about configuration options available for Podman machine creation, refer to the Customize the Podman execution environment section.
Procedure
- Go to the Settings > Resources page from the left navigation pane.
- In the Podman tile, click Create new. The Create a Podman machine screen opens.
Enter or customize the following details:
-
Name: Enter a descriptive name, such as
podman-machine-custom. - CPU(s): Select the number of CPUs (recommended: 2-4).
- Memory: Select memory size in GB (recommended: 4-8 GB).
- Disk size: Select disk size in GB (recommended: 20-50 GB).
-
Name: Enter a descriptive name, such as
- Optional: Provide a bootable image by using the Image Path or Image URL or image reference option.
- Customize the Machine with root privileges option to use the rootful or rootless connection.
Additional settings based on your operating system:
- On Windows: Set the value of the User mode networking and Provider Type configuration options.
- On macOS: Set the value of the Provider Type configuration option.
- Click Create.
- After the machine is successfully created, click Go back to resources.
Verification
- Check that the Podman machine is running in the Podman tile.