Hello, i’m trying to run lxc on ubuntu touch and getting this error while starting container.
lxc start uy --debug
DBUG[09-09|13:34:26] Connecting to a local LXD over a Unix socket
DBUG[09-09|13:34:26] Sending request to LXD etag= method=GET url=http://unix.socket/1.0
DBUG[09-09|13:34:26] Got response struct from LXD
DBUG[09-09|13:34:26]
{
"config": {},
"api_extensions": [
"id_map",
"id_map_base",
"resource_limits"
],
"api_status": "stable",
"api_version": "1.0",
"auth": "trusted",
"auth_methods": null,
"public": false,
"environment": {
"addresses": [],
"architectures": [
"aarch64",
"armv7l"
],
"certificate": "-----BEGIN CERTIFICATE-----\nMIIFXzCCA0egAwIBAgIRAP3vDN3pVg8vtVctlgAEd3swDQYJKoZIhvcNAQELBQAw\nPDEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzEcMBoGA1UEAwwTcm9vdEB1\nYnVudHUtcGhhYmxldDAeFw0yMjA5MDgxMDMwMDRaFw0zMjA5MDUxMDMwMDRaMDwx\nHDAaBgNVBAoTE2xpbnV4Y29udGFpbmVycy5vcmcxHDAaBgNVBAMME3Jvb3RAdWJ1\nbnR1LXBoYWJsZXQwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwlDwh\nNVktMntuZqeKcxyI/2Tx/F4EnQ16u4EMTEeXN6NOgpkOQQgbbXFx0hNJlNQU9Pm4\n2yz1EcdTZgicF7Arb4IDwZ+hPEuKbGQwMpmg/R6GE0MupTPL6lZWWZ9DomtxNIMp\nYTwDC2F3cNJa+NQITV7yObnMHedw4dLbMNxQqcLOFZId1PY69QQoYswwMVXK2grL\nyCPDoXg/hXKkDquq+HE+g/E5gTbmK0WM1Rf8Y/Iw+rROlURZR8eSOe84HOheWQ/o\nGpzYYRxqD4+pgY1X1C6niIkjcfrLaA6aIlOfP5hOmpW6dx9+DEOZ1kZa+n4EYsSy\nFfJPlDGuXhlEa+xLcTDbtz/LemYicKfB2gJlYNMMiN06vqNk+8nmD9gYsOXB9MHT\n+Mq3hwgsymnsURm7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/Y8r0XiVf5E/AQQgYSSqLmhIdiba9tlNDo\n4cPW67NH7Ag4E8SESY0t9jsqt/Zca9iNMT40s3WS/VGZaQI=\n-----END CERTIFICATE-----\n",
"certificate_fingerprint": "525dfd173bd22bf49fa76b556aa6369475e88cd6ec248aa9c9b6b3c86f194685",
"driver": "lxc",
"driver_version": "2.0.11",
"kernel": "Linux",
"kernel_architecture": "aarch64",
"kernel_version": "4.4.146+",
"server": "lxd",
"server_pid": 2909,
"server_version": "2.0.11",
"storage": "dir",
"storage_version": ""
}
}
DBUG[09-09|13:34:26] Sending request to LXD etag= method=GET url=http://unix.socket/1.0/containers/uy
DBUG[09-09|13:34:26] Got response struct from LXD
DBUG[09-09|13:34:26]
{
"architecture": "aarch64",
"config": {
"volatile.base_image": "e81ddf7e90a970a12c9a54908b71489e4351ba9e4627520ac1dde3ce3e444ea0",
"volatile.eth0.hwaddr": "00:16:3e:0f:cf:24",
"volatile.idmap.base": "0",
"volatile.idmap.next": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536}]",
"volatile.last_state.idmap": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536}]",
"volatile.last_state.power": "STOPPED"
},
"devices": {
"root": {
"path": "/",
"type": "disk"
}
},
"ephemeral": false,
"profiles": [
"default"
],
"stateful": false,
"description": "",
"created_at": "2022-09-08T13:13:45+02:00",
"expanded_config": {
"environment.http_proxy": "http://[fe80::1%!e(MISSING)th0]:13128",
"user.network_mode": "link-local",
"volatile.base_image": "e81ddf7e90a970a12c9a54908b71489e4351ba9e4627520ac1dde3ce3e444ea0",
"volatile.eth0.hwaddr": "00:16:3e:0f:cf:24",
"volatile.idmap.base": "0",
"volatile.idmap.next": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536}]",
"volatile.last_state.idmap": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":165536,\"Nsid\":0,\"Maprange\":65536}]",
"volatile.last_state.power": "STOPPED"
},
"expanded_devices": {
"eth0": {
"name": "eth0",
"nictype": "bridged",
"parent": "lxdbr0",
"type": "nic"
},
"root": {
"path": "/",
"type": "disk"
}
},
"name": "uy",
"status": "Stopped",
"status_code": 102,
"last_used_at": "0001-01-01T00:00:00Z"
}
DBUG[09-09|13:34:26] Connected to the websocket
DBUG[09-09|13:34:26] Sending request to LXD etag= method=PUT url=http://unix.socket/1.0/containers/uy/state
DBUG[09-09|13:34:26]
{
"action": "start",
"timeout": 0,
"force": false,
"stateful": false
}
DBUG[09-09|13:34:26] Got operation from LXD
DBUG[09-09|13:34:26]
{
"id": "9e4a13c3-7022-4bfa-9167-89bcab55e2a9",
"class": "task",
"created_at": "2022-09-09T13:34:26.10551+02:00",
"updated_at": "2022-09-09T13:34:26.10551+02:00",
"status": "Running",
"status_code": 103,
"resources": {
"containers": [
"/1.0/containers/uy"
]
},
"metadata": null,
"may_cancel": false,
"err": ""
}
DBUG[09-09|13:34:26] Sending request to LXD etag= method=GET url=http://unix.socket/1.0/operations/9e4a13c3-7022-4bfa-9167-89bcab55e2a9
DBUG[09-09|13:34:26] Got response struct from LXD
DBUG[09-09|13:34:26]
{
"id": "9e4a13c3-7022-4bfa-9167-89bcab55e2a9",
"class": "task",
"created_at": "2022-09-09T13:34:26.10551+02:00",
"updated_at": "2022-09-09T13:34:26.10551+02:00",
"status": "Running",
"status_code": 103,
"resources": {
"containers": [
"/1.0/containers/uy"
]
},
"metadata": null,
"may_cancel": false,
"err": ""
}
error: Error calling 'lxd forkstart uy /var/lib/lxd/containers /var/log/lxd/uy/lxc.conf': err='Failed to run: /usr/bin/lxd forkstart uy /var/lib/lxd/containers /var/log/lxd/uy/lxc.conf: '
lxc 20220909113426.366 ERROR lxc_start - start.c:do_start:1120 - Cannot allocate memory - Failed to unshare CLONE_NEWNET.
lxc 20220909113426.366 ERROR lxc_sync - sync.c:__sync_wait:59 - An error occurred in another process (expected sequence number 1)
lxc 20220909113426.404 ERROR lxc_container - lxccontainer.c:wait_on_daemonized_start:804 - Received container state "ABORTING" instead of "RUNNING"
lxc 20220909113426.404 ERROR lxc_start - start.c:__lxc_start:1802 - Failed to spawn container "uy".
Try `lxc info --show-log uy` for more info
Result of lxc info --show-log uy is:
lxc info --show-log uy
Name: uy
Remote: unix://
Architecture: aarch64
Created: 2022/09/08 11:13 UTC
Status: Stopped
Type: persistent
Profiles: default
Log:
lxc 20220909113426.366 ERROR lxc_start - start.c:do_start:1120 - Cannot allocate memory - Failed to unshare CLONE_NEWNET.
lxc 20220909113426.366 ERROR lxc_sync - sync.c:__sync_wait:59 - An error occurred in another process (expected sequence number 1)
lxc 20220909113426.403 WARN lxc_network - network.c:lxc_delete_network_priv:2533 - Failed to remove interface "veth7M7DUM" from "lxdbr0": Invalid argument
lxc 20220909113426.404 ERROR lxc_container - lxccontainer.c:wait_on_daemonized_start:804 - Received container state "ABORTING" instead of "RUNNING"
lxc 20220909113426.404 ERROR lxc_start - start.c:__lxc_start:1802 - Failed to spawn container "uy".
lxc 20220909113426.434 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:132 - Connection reset by peer - Failed to receive response for command "get_cgroup"
Result of " lxc config show uy"
config: {}
api_extensions:
- id_map
- id_map_base
- resource_limits
api_status: stable
api_version: "1.0"
auth: trusted
auth_methods: []
public: false
environment:
addresses: []
architectures:
- aarch64
- armv7l
driver: lxc
driver_version: 2.0.11
kernel: Linux
kernel_architecture: aarch64
kernel_version: 4.4.146+
server: lxd
server_pid: 2909
server_version: 2.0.11
storage: dir
storage_version: ""
phablet@ubuntu-phablet:~$ lxc config show uy
architecture: aarch64
config:
volatile.base_image: e81ddf7e90a970a12c9a54908b71489e4351ba9e4627520ac1dde3ce3e444ea0
volatile.eth0.hwaddr: 00:16:3e:0f:cf:24
volatile.idmap.base: "0"
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":65536}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":65536}]'
volatile.last_state.power: STOPPED
devices:
root:
path: /
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
Result of “lxc info”
config: {}
api_extensions:
- id_map
- id_map_base
- resource_limits
api_status: stable
api_version: "1.0"
auth: trusted
auth_methods: []
public: false
environment:
addresses: []
architectures:
- aarch64
- armv7l
driver: lxc
driver_version: 2.0.11
kernel: Linux
kernel_architecture: aarch64
kernel_version: 4.4.146+
server: lxd
server_pid: 2909
server_version: 2.0.11
storage: dir
storage_version: ""
Result of lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
lxc version is : 2.0.11 and kernel is : Linux ubuntu-phablet 4.4.146+ #1 SMP PREEMPT Fri Sep 2 04:32:06 CEST 2022 aarch64 aarch64 aarch64 GNU/Linux
any idea to fix this ?