|
10 | 10 | - [Copying files to QM partition](#copying-files-to-qm-partition)
|
11 | 11 | - [Listing QM service](#listing-qm-service)
|
12 | 12 | - [List QM container via podman](#list-qm-container-via-podman)
|
| 13 | + - [Extend QM quadlet managed by podman](#extend-qm-quadlet-managed-by-podman) |
13 | 14 | - [Connecting to QM container via podman](#connecting-to-qm-container-via-podman)
|
14 | 15 | - [SSH guest CentOS Automotive Stream Distro](#ssh-guest-centos-automotive-stream-distro)
|
15 | 16 | - [Check if HOST and Container are using different network namespace](#check-if-host-and-container-are-using-different-network-namespace)
|
@@ -179,6 +180,44 @@ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
179 | 180 | a83253ae278d /sbin/init 38 seconds ago Up 38 seconds qm
|
180 | 181 | ```
|
181 | 182 |
|
| 183 | +### Extend QM quadlet managed by podman |
| 184 | + |
| 185 | +QM quadlet file is shipped through rpm, refer the following file. |
| 186 | +qm.container which is installed to /usr/share/containers/systemd/qm.container |
| 187 | +Please refer `man quadlet` for the supported value and how to. |
| 188 | + |
| 189 | +In case a change needed in quadlet file, do not update systemd/qm.container file |
| 190 | +As per `man quadlet` do the following: |
| 191 | + |
| 192 | +```console |
| 193 | +if ! test -e /etc/containers/systemd/qm.container.d ; then |
| 194 | + mkdir -p /etc/containers/systemd/qm.container.d |
| 195 | +fi |
| 196 | +cat > "/etc/containers/systemd/qm.container.d/expose-dev.conf" <<EOF |
| 197 | +[Container] |
| 198 | +# Expose host device /dev/net/tun |
| 199 | +AddDevice=-/dev/net/tun |
| 200 | +# In case parameter override needed, add empty value before the required key |
| 201 | +Unmask= |
| 202 | +Unmask=ALL |
| 203 | +EOF |
| 204 | +``` |
| 205 | + |
| 206 | +To verify the result use the following command: |
| 207 | + |
| 208 | +```console |
| 209 | +/usr/lib/systemd/system-generators/podman-system-generator --dryrun |
| 210 | +``` |
| 211 | + |
| 212 | +Once the result is satisfied, apply the following |
| 213 | + |
| 214 | +```console |
| 215 | +systemctl daemon-reload |
| 216 | +systemctl restart qm |
| 217 | +systemctl is-active qm |
| 218 | +active |
| 219 | +``` |
| 220 | + |
182 | 221 | ### Connecting to QM container via podman
|
183 | 222 |
|
184 | 223 | ```console
|
|
0 commit comments