Skip to content

Commit b695bed

Browse files
committed
(post-update): Wireless adapters on systemd-nspawn containers
Update information
1 parent 82990d0 commit b695bed

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

_posts/2024-01-15-wireless-adapters-on-systemd-nspawn-containers.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,25 @@ author: edu4rdshl
88
image:
99
path: /wifi_adapter.png
1010
alt: Wireless adapter
11+
excerpt: Passing a wireless adapter to a systemd-nspawn container is not as easy as it seems, but it's possible.
1112
---
12-
Passing a wireless adapter to a systemd-nspawn container is not as easy as it seems, but it's possible.
1313

14-
Update: it's going to change with [this pull request](https://github.com/systemd/systemd/pull/30956) and should just work out of the box using the `Interface=` option on the `.nspawn` configuration file. I will update this post or create a new one when the feature is released.
14+
#### Update 2
15+
15/04/2024: the feature is already available on the latest systemd versions. You can use the `Interface=` option on the `.nspawn` configuration file to bind the wireless adapter to the container. I.e.:
16+
17+
```bash
18+
$ cat /etc/systemd/nspawn/container.nspawn
19+
[Exec]
20+
Boot=true
21+
PrivateUsers=true
22+
23+
[Network]
24+
Interface=wlan0
25+
```
26+
and it should just work.
27+
28+
#### Update 1
29+
25/01/2024: it's going to change with [this pull request](https://github.com/systemd/systemd/pull/30956) and should just work out of the box using the `Interface=` option on the `.nspawn` configuration file. I will update this post or create a new one when the feature is released.
1530

1631
## The problem
1732
The last night I was trying to setup a systemd-nspawn container that will use a wireless adapter to perform some WiFi pentesting. I said to myself, this is going to be easy, I just need to bind the wireless adapter to the container and that's it. But I was wrong, when I tried to start the container with `Interface=wlan0` on my `.nspawn` configuration file, I got the following error:

0 commit comments

Comments
 (0)