Failure to start container “Failed to start device “eth0”: Error: Unknown device type.

Bug #1948573 reported by Magnus Rosenqvist
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
New
Undecided
Unassigned

Bug Description

I know probably wrong place. Tried understand where to send bug report but very confusing. Hopefully someone knows where to send it.

Raspberry pi 4B, Ubuntu 21.10,

~lxc launch ubuntu:20.04
~lxc start container
Error: Failed preparing container for start: Failed to start device “eth0”: Failed to create the veth interfaces veth34cbc1ee and veth84f13473: Failed to run: ip link add veth34cbc1ee type veth peer name veth84f13473: Error: Unknown device type.

Default profile with lxdbr0

lxc init with defaults.

Tried different containers with the same error. Error: Unknown device type

affects: juju → lxd
description: updated
affects: lxd → ubuntu
affects: ubuntu → lxd (Ubuntu)
Revision history for this message
Magnus Rosenqvist (ntaken) wrote :

Got help over at https://github.com/lxc/lxc/issues/4012

Apparently for at least more than one year the Ubuntu image for raspberry pi do not include the necessary module. Despite that at least in their latest release including LXC/LXD by default.......

Error message: ~lxc start container

Error: Failed preparing container for start: Failed to start device “eth0”: Failed to create the veth interfaces veth34cbc1ee and veth84f13473: Failed to run: ip link add veth34cbc1ee type veth peer name veth84f13473: Error: Unknown device type.

On Ubuntu 21.10 I fixed it by running: sudo apt install linux-modules-extra-raspi

Revision history for this message
Magnus Rosenqvist (ntaken) wrote :

I hope still that this will be fixed. It does not look good when a by default installed feature do not work because a module is missing.

And the error message is really obtuse.

Hopefully someone can forward this bug report to whoever so it can do some good.

affects: lxd (Ubuntu) → linux-raspi (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.