Install Podman on LXC Running Rootless

momo87

Member
May 28, 2022
11
1
8
Morning dear members and experts,

I am trying to install Podman on debian lxc and install Podman desktop on host and connect podman desktop remotely to podman lxc

Following podman desktop official tutorial

https://github.com/containers/podman/blob/main/docs/tutorials/remote_client.md

Steps Taken

1) Install debian lxc from proxmox CT template and enable keyctl and nesting
2) Configured IP and managed to ping lxc to host and vice versa
3) Install Podman,qemu, libvert on LXC and add a non root user via adduser "your defined username"
a) apt-get install podman qemu-system-x86 sudo libvirt-daemon-system
4) download gvproxy from https://podman-desktop.io/docs/troubleshooting/troubleshooting-podman-on-macos and rename it and make it executable and paste it to usr/libexec/podman/
a) wget https://github.com/containers/gvisor-tap-vsock/releases/download/v0.8.3/gvproxy-linux-amd64
b) mv gvproxy-linux-amd64 gvproxy
c) chmod +x gvproxy
d) mv gvproxy /usr/libexec/podman
5) Logout of root and login in a non root user and create the podman folder and add the gvproxy to the config file
a) sudo podman system service --time=0 unix:///tmp/podman.sock &
b) sudo systemctl enable --now podman.socket
b) nano ~/.config/containers/containers.conf
c) add this line "helper_binaries_dir=["/usr/libexec/podman"] to [containers]
6) Start podman machine via
A) podman machine unit
B) podman machine start

Issue:
Podman says the follow error msg

error: qemu exited unexpectedly with exit code 1, stderr: could not access kvm kernel module: no such file or directory

Attempted solutions but not working
A) I have tried to add the non root user to kvm group.

Thank you for your time and hope to hear from the wonderful and active community here. Really keen to run podman in lxc instead of a VM.
 
Last edited: