Jump to content
funtoo forums
s4uliu5

[SOLVED] Failed to run: /usr/sbin/lxd forkstart fun-2 /var/lib/lxd/containers /var/log/lxd/fun-2/lxc.conf

Recommended Posts

Hi,

I've got an errors

# lxc launch funtoo fun-2
Creating fun-2
Starting fun-2
error: Failed to run: /usr/sbin/lxd forkstart fun-2 /var/lib/lxd/containers /var/log/lxd/fun-2/lxc.conf: 
Try `lxc info --show-log local:fun-2` for more info

# lxc info --show-log local:fun-2
Name: fun-2
Remote: unix://
Architecture: x86_64
Created: 2018/03/06 09:42 UTC
Status: Stopped
Type: persistent
Profiles: default

Log:

            lxc 20180306094259.401 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306094259.401 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306094259.442 ERROR    lxc_conf - conf.c:run_buffer:438 - Script exited with status 1.
            lxc 20180306094259.442 ERROR    lxc_start - start.c:lxc_init:651 - Failed to run lxc.hook.pre-start for container "fun-2".
            lxc 20180306094259.442 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306094259.442 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306094259.442 ERROR    lxc_start - start.c:__lxc_start:1426 - Failed to initialize container "fun-2".
            lxc 20180306094259.443 ERROR    lxc_container - lxccontainer.c:wait_on_daemonized_start:751 - No such file or directory - Failed to receive the container state

fun ~ # 

or

# lxc launch ubuntu:14.04 c1
Creating c1
Starting c1
error: Failed to run: /usr/sbin/lxd forkstart c1 /var/lib/lxd/containers /var/log/lxd/c1/lxc.conf:
Try `lxc info --show-log local:c1` for more info
fun ~ # lxc info --show-log local:c1
Name: c1
Remote: unix://
Architecture: x86_64
Created: 2018/03/06 09:31 UTC
Status: Stopped
Type: persistent
Profiles: default

Log:

            lxc 20180306093152.830 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306093152.830 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306093152.859 ERROR    lxc_conf - conf.c:run_buffer:438 - Script exited with status 1.
            lxc 20180306093152.859 ERROR    lxc_start - start.c:lxc_init:651 - Failed to run lxc.hook.pre-start for container "c1".
            lxc 20180306093152.860 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306093152.860 WARN     lxc_monitor - monitor.c:lxc_monitor_fifo_send:111 - Failed to open fifo to send message: No such file or directory.
            lxc 20180306093152.860 ERROR    lxc_start - start.c:__lxc_start:1426 - Failed to initialize container "c1".
            lxc 20180306093152.860 ERROR    lxc_container - lxccontainer.c:wait_on_daemonized_start:751 - No such file or directory - Failed to receive the container state

fun ~ # 

 

My system is

# uname -a
Linux fun 4.14.12-2 #1 SMP Mon Mar 5 10:48:09 EET 2018 x86_64 Intel(R) Xeon(R) CPU E31235 @ 3.20GHz GenuineIntel GNU/Linux
# lxd --version
2.21
# lxc --version
2.21
# lxc info
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
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  certificate: |
    -----BEGIN CERTIFICATE-----
...
    vg==
    -----END CERTIFICATE-----
  certificate_fingerprint: a1d240ce836f964a92433d9df8441bdcd9584b61d6c0f928be71d0931d4ddb8f
  driver: lxc
  driver_version: 2.1.1
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.14.12-2
  server: lxd
  server_pid: 17164
  server_version: "2.21"
  storage: zfs
  storage_version: 0.7.5-r0-gentoo

Any ideas?

What should I check?

Thank you.

Share this post


Link to post
Share on other sites

I checked the lxd logs and found

Mar  6 11:25:03 joke lxd[17164]: action=r err="Failed to run: apparmor_parser -rWL /var/lib/lxd/security/apparmor/cache /var/lib/lxd/security/apparmor/profiles/lxd-fun-2: AppArmor parser error for /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 in /var/lib/lxd/security/app
armor/profiles/lxd-fun-2 at line 1: Could not open 'tunables/global'" lvl=eror msg="Running apparmor" output="AppArmor parser error for /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 in /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 at line 1: Could not open 'tunables
/global'\n" t=2018-03-06T11:25:03+0200                                                                                                                                                                                                                                            
Mar  6 11:25:03 joke lxd[17164]: container=fun-2 err="Failed to run: apparmor_parser -rWL /var/lib/lxd/security/apparmor/cache /var/lib/lxd/security/apparmor/profiles/lxd-fun-2: AppArmor parser error for /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 in /var/lib/lxd/secur
ity/apparmor/profiles/lxd-fun-2 at line 1: Could not open 'tunables/global'" lvl=eror msg="start hook failed" t=2018-03-06T11:25:03+0200

While installing LXD/LXC I also installed "sys-apps/apparmor", without "sec-policy/apparmor-profiles". Installing "sec-policy/apparmor-profiles" solved the problem.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...