'\" -*- coding: UTF-8 -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH lxc-device 1 2023-02-19 "" "" .SH NAME lxc-device \- manage devices of running containers .SH SYNOPSIS 'nh .fi .ad l \fBlxc-device\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu [-h] [-n \fIname\fR] [add] [DEVICE] [NAME] 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION \fBlxc-device\fR manages devices in running container. .SH OPTIONS .TP \*(T<\fB\-h\fR\*(T> The full command help message. .TP \*(T<\fB\-n, \-\-name=\fR\*(T>\fINAME\fR The name of the target container. .TP \*(T<\fBaction\fR\*(T> What action to perform. Only 'add' is supported at this point. .TP \*(T<\fBDEVICE\fR\*(T> The device to add to the container. It can either be the path to a device under /dev or a network interface name. .TP \*(T<\fB[NAME]\fR\*(T> Name for the device within the container. .SH EXAMPLES .TP lxc-device -n p1 add /dev/video0 Creates a /dev/video0 device in container p1 based on the matching device on the host. .TP lxc-device -n p1 add eth0 eth1 Moves eth0 from the host as eth1 in p1. .SH "SEE ALSO" \fBlxc\fR(7), \fBlxc-create\fR(1), \fBlxc-copy\fR(1), \fBlxc-destroy\fR(1), \fBlxc-start\fR(1), \fBlxc-stop\fR(1), \fBlxc-execute\fR(1), \fBlxc-console\fR(1), \fBlxc-monitor\fR(1), \fBlxc-wait\fR(1), \fBlxc-cgroup\fR(1), \fBlxc-ls\fR(1), \fBlxc-info\fR(1), \fBlxc-freeze\fR(1), \fBlxc-unfreeze\fR(1), \fBlxc-attach\fR(1), \fBlxc.conf\fR(5) .SH AUTHOR St\('ephane Graber <\*(T>