Bahman
(Bahman sharzad)
October 20, 2022, 8:02am
1
I have ubuntu 22.04 server on vmware player (16) and lxc version is 5.0.1
i have 5 lxd on this server and working fine
i try to launch a new one
root@ubuntu22:~# lxc launch ubuntu:focal/amd64 guacamole
Creating guacamole
Starting guacamole
Error: Failed to run: /snap/lxd/current/bin/lxd forkstart guacamole /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/guacamole/lxc.conf: exit status 1
Try lxc info --show-log local:guacamole
for more info
root@ubuntu22:~# lxc info --show-log local:guacamole
Name: guacamole
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2022/10/20 09:55 CEST
Last Used: 2022/10/20 09:56 CEST
Log:
lxc guacamole 20221020075600.479 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc guacamole 20221020075600.479 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc guacamole 20221020075600.480 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc guacamole 20221020075600.480 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc guacamole 20221020075600.575 ERROR conf - …/src/src/lxc/conf.c:run_buffer:321 - Script exited with status 1
lxc guacamole 20221020075600.575 ERROR conf - …/src/src/lxc/conf.c:lxc_setup:4400 - Failed to run mount hooks
lxc guacamole 20221020075600.575 ERROR start - …/src/src/lxc/start.c:do_start:1272 - Failed to setup container “guacamole”
lxc guacamole 20221020075600.575 ERROR sync - …/src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)
lxc guacamole 20221020075600.597 WARN network - …/src/src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from “eth0” to its initial name “vethed2a3b48”
lxc guacamole 20221020075600.597 ERROR lxccontainer - …/src/src/lxc/lxccontainer.c:wait_on_daemonized_start:877 - Received container state “ABORTING” instead of “RUNNING”
lxc guacamole 20221020075600.597 ERROR start - …/src/src/lxc/start.c:__lxc_start:2107 - Failed to spawn container “guacamole”
lxc guacamole 20221020075600.597 WARN start - …/src/src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 17 for process 9074
lxc guacamole 20221020075605.646 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc guacamole 20221020075605.646 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc 20221020075605.660 ERROR af_unix - …/src/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20221020075605.660 ERROR commands - …/src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command “get_state”
Bahman
(Bahman sharzad)
October 20, 2022, 8:07am
2
i copy one existing to some name and start this without any problem !
tomp
(Thomas Parrott)
October 20, 2022, 10:00am
3
Can you try again, while at the same time running lxc monitor --pretty
so we can get the debug output?
Bahman
(Bahman sharzad)
October 20, 2022, 10:22am
4
do you mean
lxc launch ubuntu:focal/amd64 guacamole and from other monitor say lxc monitor --pretty
Bahman
(Bahman sharzad)
October 20, 2022, 10:29am
5
from first terminal:
root@ubuntu22:~# lxc launch ubuntu:focal/amd64 test
Creating test
Starting test
Error: Failed to run: /snap/lxd/current/bin/lxd forkstart test /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/test/lxc.conf: exit status 1
Try lxc info --show-log local:test
for more info
from other terminal at the same time lxc monito --pretty:
root@ubuntu22:~# lxc monitor --pretty
DEBUG [2022-10-20T12:25:26+02:00] Event listener server handler started id=7e2dca1d-57f4-4665-a88b-3e3fe9fc2700 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2022-10-20T12:25:26+02:00] Handling API request ip=@ method=GET protocol=unix url="/internal/containers/test/onstopns?netns=%2Fproc%2F34020%2Ffd%2F4&project=default&target=stop" username=root
DEBUG [2022-10-20T12:25:26+02:00] Waiting for existing operation lock to finish before running hook action=start instance=test instanceType=container project=default
ERROR [2022-10-20T12:25:31+02:00] Failed starting container action=start created=“2022-10-20 10:25:25.680813633 +0000 UTC” ephemeral=false instance=test instanceType=container project=default stateful=false used=“1970-01-01 00:00:00 +0000 UTC”
DEBUG [2022-10-20T12:25:31+02:00] Instance operation lock finished action=start err=“Failed to run: /snap/lxd/current/bin/lxd forkstart test /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/test/lxc.conf: exit status 1” instance=test project=default reusable=false
DEBUG [2022-10-20T12:25:31+02:00] Start finished instance=test instanceType=container project=default stateful=false
DEBUG [2022-10-20T12:25:31+02:00] Failure for operation class=task description=“Starting instance” err=“Failed to run: /snap/lxd/current/bin/lxd forkstart test /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/test/lxc.conf: exit status 1” operation=7cd42d8c-c257-4e3c-ba24-220a83813974 project=default
INFO [2022-10-20T12:25:31+02:00] ID: 7cd42d8c-c257-4e3c-ba24-220a83813974, Class: task, Description: Starting instance CreatedAt=“2022-10-20 12:25:26.001673339 +0200 CEST” Err=“Failed to run: /snap/lxd/current/bin/lxd forkstart test /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/test/lxc.conf: exit status 1” Location=none MayCancel=false Metadata=“map[]” Resources=“map[instances:[/1.0/instances/test]]” Status=Failure StatusCode=Failure UpdatedAt=“2022-10-20 12:25:26.001673339 +0200 CEST”
DEBUG [2022-10-20T12:25:31+02:00] Instance initiated stop action=stop instance=test instanceType=container project=default
DEBUG [2022-10-20T12:25:31+02:00] Instance operation lock created action=stop instance=test project=default reusable=false
DEBUG [2022-10-20T12:25:31+02:00] Event listener server handler stopped listener=7022c645-d3cf-40cc-80b4-0f9406967d2a local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2022-10-20T12:25:31+02:00] Stopping device device=eth0 instance=test instanceType=container project=default type=nic
DEBUG [2022-10-20T12:25:32+02:00] Handling API request ip=@ method=GET protocol=unix url="/internal/containers/test/onstop?project=default&target=stop" username=root
DEBUG [2022-10-20T12:25:32+02:00] Container stopped, cleaning up instance=test instanceType=container project=default
DEBUG [2022-10-20T12:25:32+02:00] Stopping device device=root instance=test instanceType=container project=default type=disk
DEBUG [2022-10-20T12:25:32+02:00] UnmountInstance started instance=test project=default
DEBUG [2022-10-20T12:25:32+02:00] UnmountInstance finished instance=test project=default
DEBUG [2022-10-20T12:25:32+02:00] Unmounted ZFS dataset dev=mirapool/containers/test driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/mirapool/containers/test pool=mirapool volName=test
DEBUG [2022-10-20T12:25:32+02:00] Instance operation lock finished action=stop err="" instance=test project=default reusable=false
DEBUG [2022-10-20T12:25:32+02:00] Scheduler: container test stopped: re-balancing
Bahman
(Bahman sharzad)
October 27, 2022, 6:14am
6
i am not able to add new images i can only copy and rename existing lxd.