Hi Community,
I am using IOx local manager to deploy my docker app on IR809. The container could start/deploy and run until I changed the package.yaml for adding USB serial access.
For this, the upgraded package.tar has the following package.yaml :
app:
type: docker
cpuarch: x86_64
resources:
profile: c1.small
devices:
-
device-id: usbdev # Optional ID of the device
label: HOST_DEVLXC # Mandatory Label of your choice
type: usbdev # Mandatory Device type
usage: "usb-serial" # Optional Description about the device
function: serial # Mandatory serial/storage
mandatory: false # Mandatory true/false or yes/no
# Network required by app.
network:
-
interface-name: eth0
The app can be activated but can't be started. "(x) Operation: start failed."
Following system error log:
2019-07-30 14:06:32,801 [runtime.hosting:ERROR] [Thread-12] [libvirtcontainer.py:154 - start()]
Failed to start container LXC Container : Name: gw, UUID: c48b105c-afa7-45c6-b4d5-39971aa10b8f,
Error: internal error: guest failed to start: unable to set security context 'c2' on
'//var/run/libvirt/lxc/gw.dev/bus/usb//dev/bus/usb/002/008': No such file or directory
Any clue on this.?
(No issue to start, ssh and run the applications if the usb serial part is excluded in the yaml)
Thanks