Hi
I attempt to start the container and it just fails to start:lxc info --show-log test001
Name: test001
Location: none
Remote: unix://
Architecture: x86_64
Created: 2020/03/24 11:21 UTC
Status: Stopped
Type: container
Profiles: defaultLog:
lxc test001 20200324115103.494 WARN cgfsng - cgroups/cgfsng.c:chowmod:1525 - No such file or directory - Failed to chown(/sys/fs/cgroup/unified//lxc.payload/test001/memory.oom.group, 65536, 0)
lxc test001 20200324115103.512 ERROR conf - conf.c:mount_autodev:1158 - Permission denied - Failed to create “/dev” directory
lxc test001 20200324115103.512 ERROR conf - conf.c:lxc_setup:3584 - Failed to mount “/dev”
lxc test001 20200324115103.512 ERROR start - start.c:do_start:1321 - Failed to setup container “test001”
lxc test001 20200324115103.515 ERROR sync - sync.c:__sync_wait:61 - An error occurred in another process (expected sequence number 5)
lxc test001 20200324115103.515 WARN network - network.c:lxc_delete_network_priv:3372 - Failed to rename interface with index 10 from “eth0” to its initial name “vethb7f6aa4e”
lxc test001 20200324115103.515 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:872 - Received container state “ABORTING” instead of “RUNNING”
lxc test001 20200324115103.515 ERROR start - start.c:__lxc_start:2036 - Failed to spawn container “test001”
lxc 20200324115103.778 WARN commands - commands.c:lxc_cmd_rsp_recv:134 - Connection reset by peer - Failed to receive response for command “get_state”
The debug log
lxc start --debug test001
lxc start --debug test001
DBUG[03-24|19:51:00] Connecting to a local LXD over a Unix socket
DBUG[03-24|19:51:00] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
DBUG[03-24|19:51:00] Got response struct from LXD
DBUG[03-24|19:51:00]
{
“config”: {},
“api_extensions”: [
“storage_zfs_remove_snapshots”,
“container_host_shutdown_timeout”,
“container_stop_priority”,
“container_syscall_filtering”,
“auth_pki”,
“container_last_used_at”,
“etag”,
“patch”,
“usb_devices”,
“https_allowed_credentials”,
“image_compression_algorithm”,
“directory_manipulation”,
“container_cpu_time”,
“storage_zfs_use_refquota”,
“storage_lvm_mount_options”,
“network”,
“profile_usedby”,
“container_push”,
“container_exec_recording”,
“certificate_update”,
“container_exec_signal_handling”,
“gpu_devices”,
“container_image_properties”,
“migration_progress”,
“id_map”,
“network_firewall_filtering”,
“network_routes”,
“storage”,
“file_delete”,
“file_append”,
“network_dhcp_expiry”,
“storage_lvm_vg_rename”,
“storage_lvm_thinpool_rename”,
“network_vlan”,
“image_create_aliases”,
“container_stateless_copy”,
“container_only_migration”,
“storage_zfs_clone_copy”,
“unix_device_rename”,
“storage_lvm_use_thinpool”,
“storage_rsync_bwlimit”,
“network_vxlan_interface”,
“storage_btrfs_mount_options”,
“entity_description”,
“image_force_refresh”,
“storage_lvm_lv_resizing”,
“id_map_base”,
“file_symlinks”,
“container_push_target”,
“network_vlan_physical”,
“storage_images_delete”,
“container_edit_metadata”,
“container_snapshot_stateful_migration”,
“storage_driver_ceph”,
“storage_ceph_user_name”,
“resource_limits”,
“storage_volatile_initial_source”,
“storage_ceph_force_osd_reuse”,
“storage_block_filesystem_btrfs”,
“resources”,
“kernel_limits”,
“storage_api_volume_rename”,
“macaroon_authentication”,
“network_sriov”,
“console”,
“restrict_devlxd”,
“migration_pre_copy”,
“infiniband”,
“maas_network”,
“devlxd_events”,
“proxy”,
“network_dhcp_gateway”,
“file_get_symlink”,
“network_leases”,
“unix_device_hotplug”,
“storage_api_local_volume_handling”,
“operation_description”,
“clustering”,
“event_lifecycle”,
“storage_api_remote_volume_handling”,
“nvidia_runtime”,
“container_mount_propagation”,
“container_backup”,
“devlxd_images”,
“container_local_cross_pool_handling”,
“proxy_unix”,
“proxy_udp”,
“clustering_join”,
“proxy_tcp_udp_multi_port_handling”,
“network_state”,
“proxy_unix_dac_properties”,
“container_protection_delete”,
“unix_priv_drop”,
“pprof_http”,
“proxy_haproxy_protocol”,
“network_hwaddr”,
“proxy_nat”,
“network_nat_order”,
“container_full”,
“candid_authentication”,
“backup_compression”,
“candid_config”,
“nvidia_runtime_config”,
“storage_api_volume_snapshots”,
“storage_unmapped”,
“projects”,
“candid_config_key”,
“network_vxlan_ttl”,
“container_incremental_copy”,
“usb_optional_vendorid”,
“snapshot_scheduling”,
“container_copy_project”,
“clustering_server_address”,
“clustering_image_replication”,
“container_protection_shift”,
“snapshot_expiry”,
“container_backup_override_pool”,
“snapshot_expiry_creation”,
“network_leases_location”,
“resources_cpu_socket”,
“resources_gpu”,
“resources_numa”,
“kernel_features”,
“id_map_current”,
“event_location”,
“storage_api_remote_volume_snapshots”,
“network_nat_address”,
“container_nic_routes”,
“rbac”,
“cluster_internal_copy”,
“seccomp_notify”,
“lxc_features”,
“container_nic_ipvlan”,
“network_vlan_sriov”,
“storage_cephfs”,
“container_nic_ipfilter”,
“resources_v2”,
“container_exec_user_group_cwd”,
“container_syscall_intercept”,
“container_disk_shift”,
“storage_shifted”,
“resources_infiniband”,
“daemon_storage”,
“instances”,
“image_types”,
“resources_disk_sata”,
“clustering_roles”,
“images_expiry”,
“resources_network_firmware”,
“backup_compression_algorithm”,
“ceph_data_pool_name”,
“container_syscall_intercept_mount”,
“compression_squashfs”,
“container_raw_mount”,
“container_nic_routed”,
“container_syscall_intercept_mount_fuse”,
“container_disk_ceph”,
“virtual-machines”,
“image_profiles”,
“clustering_architecture”,
“resources_disk_id”,
“storage_lvm_stripes”,
“vm_boot_priority”,
“unix_hotplug_devices”,
“api_filtering”,
“instance_nic_network”,
“clustering_sizing”
],
“api_status”: “stable”,
“api_version”: “1.0”,
“auth”: “trusted”,
“public”: false,
“auth_methods”: [
“tls”
],
“environment”: {
“addresses”: ,
“architectures”: [
“x86_64”,
“i686”
],
“certificate”: “-----BEGIN CERTIFICATE-----\nMIICJjCCAaugAwIBAgIRAMkqtxxC4aJiUPzC66I1ErgwCgYIKoZIzj0EAwMwQzEc\nMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzEjMCEGA1UEAwwacm9vdEBsb2Nh\nbGhvc3QubG9jYWxkb21haW4wHhcNMTkwNjEwMjMzNTI4WhcNMjkwNjA3MjMzNTI4\nWjBDMRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMSMwIQYDVQQDDBpyb290\nQGxvY2FsaG9zdC5sb2NhbGRvbWFpbjB2MBAGByqGSM49AgEGBSuBBAAiA2IABLg+\n2UlNfDyvOQRFW5hnBUPmqO1Nu043lkXqBNkrDASL64D362gwd6AOP3ahKbSsZEft\nJnwx85c8yFTzCmYZg/VwYc9MpsNSnsEknH/AZJg+XTBN68umawLpISinzwZ2o6Nj\nMGEwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUFBwMBMAwGA1UdEwEB\n/wQCMAAwLAYDVR0RBCUwI4IVbG9jYWxob3N0LmxvY2FsZG9tYWluhwTAqAoRhwTA\nqHoBMAoGCCqGSM49BAMDA2kAMGYCMQDJJS3I8HogCC/4LsLqrNDeBofDFnfipEEK\nqp6MEt7e+2PFdampjAs4R1LzOV0KQ/gCMQCdiMBrQP1OVtnonjHsSchbBXtljLVe\niUuxE6+WuD40037S7LVuPhWZP6t0TuhKvCk=\n-----END CERTIFICATE-----\n”,
“certificate_fingerprint”: “1f5be0b01e220edee163326101f95b077c3f5ab481aeb762653a2af5cc8b04ab”,
“driver”: “lxc”,
“driver_version”: “3.2.1”,
“kernel”: “Linux”,
“kernel_architecture”: “x86_64”,
“kernel_features”: {
“netnsid_getifaddrs”: “true”,
“seccomp_listener”: “true”,
“seccomp_listener_continue”: “true”,
“shiftfs”: “false”,
“uevent_injection”: “true”,
“unpriv_fscaps”: “true”
},
“kernel_version”: “5.5.10-200.fc31.x86_64”,
“lxc_features”: {
“cgroup2”: “false”,
“mount_injection_file”: “true”,
“network_gateway_device_route”: “true”,
“network_ipvlan”: “true”,
“network_l2proxy”: “true”,
“network_phys_macvlan_mtu”: “true”,
“network_veth_router”: “true”,
“seccomp_notify”: “true”
},
“project”: “default”,
“server”: “lxd”,
“server_clustered”: false,
“server_name”: “localhost.localdomain”,
“server_pid”: 3718,
“server_version”: “3.21”,
“storage”: “dir”,
“storage_version”: “1”
}
}
DBUG[03-24|19:51:00] Sending request to LXD method=GET url=http://unix.socket/1.0/instances/test001 etag=
DBUG[03-24|19:51:00] Got response struct from LXD
DBUG[03-24|19:51:00]
{
“architecture”: “x86_64”,
“config”: {
“image.architecture”: “amd64”,
“volatile.eth0.hwaddr”: “00:16:3e:44:c1:c7”,
“volatile.idmap.base”: “0”,
“volatile.idmap.current”: “[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]”,
“volatile.idmap.next”: “[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]”,
“volatile.last_state.idmap”: “[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]”,
“volatile.last_state.power”: “STOPPED”
},
“devices”: {},
“ephemeral”: false,
“profiles”: [
“default”
],
“stateful”: false,
“description”: “”,
“created_at”: “2020-03-24T19:21:05.850829247+08:00”,
“expanded_config”: {
“image.architecture”: “amd64”,
“volatile.eth0.hwaddr”: “00:16:3e:44:c1:c7”,
“volatile.idmap.base”: “0”,
“volatile.idmap.current”: “[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]”,
“volatile.idmap.next”: “[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]”,
“volatile.last_state.idmap”: “[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]”,
“volatile.last_state.power”: “STOPPED”
},
“expanded_devices”: {
“eth0”: {
“name”: “eth0”,
“nictype”: “bridged”,
“parent”: “lxdbr0”,
“type”: “nic”
},
“root”: {
“path”: “/”,
“pool”: “default”,
“type”: “disk”
}
},
“name”: “test001”,
“status”: “Stopped”,
“status_code”: 102,
“last_used_at”: “2020-03-24T19:41:06.826931765+08:00”,
“location”: “none”,
“type”: “container”
}
DBUG[03-24|19:51:00] Connected to the websocket: ws://unix.socket/1.0/events
DBUG[03-24|19:51:00] Sending request to LXD method=PUT url=http://unix.socket/1.0/instances/test001/state etag=
DBUG[03-24|19:51:00]
{
“action”: “start”,
“timeout”: 0,
“force”: false,
“stateful”: false
}
DBUG[03-24|19:51:01] Got operation from LXD
DBUG[03-24|19:51:01]
{
“id”: “21c0cf6c-a64b-4917-9a33-8137061c5209”,
“class”: “task”,
“description”: “Starting container”,
“created_at”: “2020-03-24T19:51:00.890441903+08:00”,
“updated_at”: “2020-03-24T19:51:00.890441903+08:00”,
“status”: “Running”,
“status_code”: 103,
“resources”: {
“containers”: [
“/1.0/containers/test001”
]
},
“metadata”: null,
“may_cancel”: false,
“err”: “”,
“location”: “none”
}
DBUG[03-24|19:51:01] Sending request to LXD method=GET url=http://unix.socket/1.0/operations/21c0cf6c-a64b-4917-9a33-8137061c5209 etag=
DBUG[03-24|19:51:01] Got response struct from LXD
DBUG[03-24|19:51:01]
{
“id”: “21c0cf6c-a64b-4917-9a33-8137061c5209”,
“class”: “task”,
“description”: “Starting container”,
“created_at”: “2020-03-24T19:51:00.890441903+08:00”,
“updated_at”: “2020-03-24T19:51:00.890441903+08:00”,
“status”: “Running”,
“status_code”: 103,
“resources”: {
“containers”: [
“/1.0/containers/test001”
]
},
“metadata”: null,
“may_cancel”: false,
“err”: “”,
“location”: “none”
}
Error: Failed to run: /usr/bin/lxd forkstart test001 /var/lib/lxd/containers /var/log/lxd/test001/lxc.conf:
Trylxc info --show-log test001
for more info
I have subuid and suigid files are of these values:
root:100000:65536
lxd:100000:65536
root:1000:1
Using LXD version 3.21