Simple host bridge and guest NIC attached

10 views
Skip to first unread message

Narcis Garcia

unread,
Aug 9, 2026, 12:57:00 PM (4 days ago) Aug 9
to LXC users SPM
Hello, I do following steps:

$ incus network create -t bridge MyBridge1
$ incus network attach MyBridge1 MyContainerName
$ incus config device add MyContainerName eth0 nic nictype=bridged
host_name=MyContainerName-nic0 ipv4.address=192.168.1.11/24
limits.max=10000000 parent=MyBridge1

Error: Failed to stop device "eth0": Failed clearing netprio rules for
instance "default" in project "MyContainerName": device name is empty

I realize I'm not understanding the meaning of each parameter for
"device add"
Can somebody give me examples for this?

Thank you.

--

Narcis Garcia

__________
I'm using this dedicated address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should remove and omit any @, dot and mailto combinations against
automated addresses collectors.

Narcis Garcia

unread,
Aug 10, 2026, 2:51:46 AM (4 days ago) Aug 10
to LXC users SPM
Well, I reached my goal by:

$ incus network create -t bridge MyBridge1 ipv4.address=192.168.1.1/24
$ incus config device add MyContainerName eth0 nic host_name=MyCont-eth0
network=MyBridge1 ipv4.address=192.168.1.11 limits.max=10000000
$ incus exec MyContainerName -- dhclient eth0

(all NICs names limited to 15 chars by Linux kernel)


El 9/8/26 a les 18:56, Narcis Garcia ha escrit:
Reply all
Reply to author
Forward
0 new messages