1lxc-device(1) lxc-device(1)
2
3
4
6 lxc-device - manage devices of running containers
7
9 lxc-device [-h] [-n name] [add] [DEVICE] [NAME]
10
12 lxc-device manages devices in running container.
13
15 -h The full command help message.
16
17 -n, --name=NAME
18 The name of the target container.
19
20 action What action to perform. Only 'add' is supported at this point.
21
22 DEVICE The device to add to the container. It can either be the path
23 to a device under /dev or a network interface name.
24
25 [NAME] Name for the device within the container.
26
28 lxc-device -n p1 add /dev/video0
29 Creates a /dev/video0 device in container p1 based on the match‐
30 ing device on the host.
31
32 lxc-device -n p1 add eth0 eth1
33 Moves eth0 from the host as eth1 in p1.
34
36 lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-
37 stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1),
38 lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1),
39 lxc-attach(1), lxc.conf(5)
40
42 Stéphane Graber <stgraber@ubuntu.com>
43
44
45
46 2022-05-26 lxc-device(1)