Networking between KVM and containers
by sven@svenschwermer.de
Hi,
I have a host running Debian Bullseye (Podman v3.0.1). On that host, I run an OPNsense VM via KVM. The goal is to create a (virtual) network connection between that VM and one or more Podman containers.
So far, I have created a dedicated bridge network for the VM via this network definition:
<network connections='1'>
<name>services</name>
<uuid>884d7543-91b0-4752-93b7-7efc6633d733</uuid>
<bridge name='virbr1' stp='on' delay='0'/>
<mac address='52:54:00:78:f8:79'/>
<ip address='192.168.50.1' netmask='255.255.255.0'>
</ip>
</network>
I then created this network for Podman:
[
{
"cniVersion": "0.4.0",
"name": "services",
"plugins": [
{
"ipam": {
"gateway": "192.168.50.2",
"routes": [
{
"dst": "0.0.0.0/0"
}
],
"subnet": "192.168.50.0/24",
"type": "host-local"
},
"master": "virbr1",
"type": "macvlan"
}
]
}
]
The container is is started like so:
podman run --network=services --ip=192.168.50.10 [...]
This does work, however, it doesn't seem ideal. Is there a better way to achieve networking between VM and containers? Is there a way to make Podman actually configure networking by making DHCP requests (to the OPNsense VM)? That way, DNS would be configured properly as well.
Any pointers are welcome 😄
Thanks, Sven
1 year, 6 months
'system reset' makes things weird - ?
by lejeczek
Hi guys.
I'm seeing something strange and I hoped experts/devel would
comment, on:
-> $ podman network ls
NETWORK ID NAME DRIVER
2f259bab93aa podman bridge
-> $ podman system reset --force
-> $ podman network ls
WARN[0000] Error validating CNI config file
/etc/cni/net.d/87-podman-bridge.conflist: [failed to find
plugin "bridge" in path [/usr/local/libexec/cni
/usr/libexec/cni /usr/local/lib/cni /usr/lib/cni
/opt/cni/bin] failed to find plugin "portmap" in path
[/usr/local/libexec/cni /usr/libexec/cni /usr/local/lib/cni
/usr/lib/cni /opt/cni/bin] failed to find plugin "firewall"
in path [/usr/local/libexec/cni /usr/libexec/cni
/usr/local/lib/cni /usr/lib/cni /opt/cni/bin] failed to find
plugin "tuning" in path [/usr/local/libexec/cni
/usr/libexec/cni /usr/local/lib/cni /usr/lib/cni /opt/cni/bin]]
NETWORK ID NAME DRIVER
2f259bab93aa podman bridge
then I ssh-log out & in, things seem okey:
-> $ podman network ls
NETWORK ID NAME DRIVER
2f259bab93aa podman bridge
and if I 'reset' then in circles it goes.
what is actually happening here?
Is system setup/installation missing something?
many thanks, L.
1 year, 6 months
dnf update
by Dewayne Branch
Every time i do dnf update I can not download or update podman
Error: Failed to download metadata for repo 'shiftkey': Cannot download
repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Copr repo for podman4 owned by rhcontainerbot 135 B/s | 341 B 00:02
Errors during downloading metadata for repository
'copr:copr.fedorainfracloud.org:rhcontainerbot:podman4':
- Status code: 404 for
https://download.copr.fedorainfracloud.org/results/rhcontainerbot/podman4...
(IP: 18.66.161.75)
Error: Failed to download metadata for repo
'copr:copr.fedorainfracloud.org:rhcontainerbot:podman4':
Cannot download repomd.xml: Cannot download repodata/repomd.xml: All
mirrors were tried
1 year, 7 months
Networking between KVM and containers
by Sven Schwermer
Hi,
I have a host running Debian Bullseye (Podman v3.0.1). On that host, I
run an OPNsense VM via KVM. The goal is to create a (virtual) network
connection between that VM and one or more Podman containers.
So far, I have created a dedicated bridge network for the VM via this
network definition:
<network connections='1'>
<name>services</name>
<uuid>884d7543-91b0-4752-93b7-7efc6633d733</uuid>
<bridge name='virbr1' stp='on' delay='0'/>
<mac address='52:54:00:78:f8:79'/>
<ip address='192.168.50.1' netmask='255.255.255.0'>
</ip>
</network>
I then created this network for Podman:
[
{
"cniVersion": "0.4.0",
"name": "services",
"plugins": [
{
"ipam": {
"gateway": "192.168.50.2",
"routes": [
{
"dst": "0.0.0.0/0"
}
],
"subnet": "192.168.50.0/24",
"type": "host-local"
},
"master": "virbr1",
"type": "macvlan"
}
]
}
]
The container is is started like so:
podman run --network=services --ip=192.168.50.10 [...]
This does work, however, it doesn't seem ideal. Is there a better way to
achieve networking between VM and containers? Is there a way to make
Podman actually configure networking by making DHCP requests (to the
OPNsense VM)? That way, DNS would be configured properly as well.
Any pointers are welcome :)
Thanks, Sven
1 year, 7 months
Podman for Android
by Mehdi Haghgoo
Hey all,
I have recently been interested in running as much of my software tools on Android as possible. I already find lots of packages installable on Termux app (via its package manager "pkg").
Being able to run containerized apps seems very tempting to me. I wonder if Podman has Arm binaries for Android. Is it possible for Podman to run on Android? Android is Linux after all, and Podman can run rootless. Am I missing something here?
M
1 year, 7 months