the lxc monitor --type=logging --pretty
result
DEBUG [2023-01-18T00:46:20Z] API Request
{
"action": "start",
"timeout": 0,
"force": false,
"stateful": false
} ip=@ method=PUT protocol=unix url=/1.0/instances/intimate-jackal/state username=root
DEBUG [2023-01-18T00:46:20Z] New operation class=task description="Starting instance" operation=46c58054-dfe1-4f7a-82a3-0962259fd261 project=default
DEBUG [2023-01-18T00:46:20Z] Instance operation lock created action=start instance=intimate-jackal project=default reusable=false
DEBUG [2023-01-18T00:46:20Z] Started operation class=task description="Starting instance" operation=46c58054-dfe1-4f7a-82a3-0962259fd261 project=default
DEBUG [2023-01-18T00:46:20Z] Start started instance=intimate-jackal instanceType=virtual-machine project=default stateful=false
DEBUG [2023-01-18T00:46:20Z] Handling API request ip=@ method=GET protocol=unix url=/1.0/operations/46c58054-dfe1-4f7a-82a3-0962259fd261 username=root
DEBUG [2023-01-18T00:46:20Z] MountInstance started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:20Z] Matched trusted cert fingerprint=3a3ec80297877648d889423e91637deace656e8540ceeb81f514b145ade2177b subject="CN=root@lxdserver1,O=linuxcontainers.org"
DEBUG [2023-01-18T00:46:20Z] Handling API request fingerprint=3a3ec80297877648d889423e91637deace656e8540ceeb81f514b145ade2177b ip="172.31.30.129:52370" method=GET protocol=cluster url=/1.0/operations/46c58054-dfe1-4f7a-82a3-0962259fd261
DEBUG [2023-01-18T00:46:20Z] Activated RBD volume dev=/dev/rbd0 driver=ceph pool=lxd-ceph-storagepool volName=virtual-machine_intimate-jackal.block
DEBUG [2023-01-18T00:46:21Z] Activated RBD volume dev=/dev/rbd1 driver=ceph pool=lxd-ceph-storagepool volName=virtual-machine_intimate-jackal
DEBUG [2023-01-18T00:46:21Z] Mounted RBD volume dev=/dev/rbd1 driver=ceph options=discard path=/var/snap/lxd/common/lxd/storage-pools/lxd-ceph-storagepool/virtual-machines/intimate-jackal pool=lxd-ceph-storagepool
DEBUG [2023-01-18T00:46:21Z] MountInstance finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:21Z] Installing lxd-agent installPath=/var/snap/lxd/common/lxd/virtual-machines/intimate-jackal/config/lxd-agent instance=intimate-jackal instanceType=virtual-machine project=default srcPath=/snap/lxd/24308/bin/lxd-agent
DEBUG [2023-01-18T00:46:21Z] Generating NVRAM instance=intimate-jackal instanceType=virtual-machine project=default
DEBUG [2023-01-18T00:46:21Z] MountInstance started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:21Z] MountInstance finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:21Z] UnmountInstance started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:21Z] Skipping unmount as in use driver=ceph pool=lxd-ceph-storagepool refCount=1 volName=intimate-jackal
DEBUG [2023-01-18T00:46:21Z] UnmountInstance finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:21Z] Starting device device=eth0 instance=intimate-jackal instanceType=virtual-machine project=default type=nic
DEBUG [2023-01-18T00:46:21Z] Scheduler: network: tap5a52ae31 has been added: updating network priorities
DEBUG [2023-01-18T00:46:21Z] Starting device device=root instance=intimate-jackal instanceType=virtual-machine project=default type=disk
WARNING[2023-01-18T00:46:21Z] Unable to use virtio-fs for config drive, using 9p as a fallback err="Architecture unsupported" instance=intimate-jackal instanceType=virtual-machine project=default
DEBUG [2023-01-18T00:46:21Z] UpdateInstanceBackupFile started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:21Z] Skipping unmount as in use driver=ceph pool=lxd-ceph-storagepool refCount=1 volName=intimate-jackal
DEBUG [2023-01-18T00:46:21Z] UpdateInstanceBackupFile finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:46:22Z] Instance operation lock finished action=start err="<nil>" instance=intimate-jackal project=default reusable=false
DEBUG [2023-01-18T00:46:22Z] Start finished instance=intimate-jackal instanceType=virtual-machine project=default stateful=false
DEBUG [2023-01-18T00:46:22Z] Success for operation class=task description="Starting instance" operation=46c58054-dfe1-4f7a-82a3-0962259fd261 project=default
DEBUG [2023-01-18T00:46:22Z] Handling API request ip=@ method=POST protocol=unix url=/1.0/instances/intimate-jackal/console username=root
DEBUG [2023-01-18T00:46:22Z] API Request
{
"width": 120,
"height": 30,
"type": "console"
} ip=@ method=POST protocol=unix url=/1.0/instances/intimate-jackal/console username=root
DEBUG [2023-01-18T00:46:22Z] Connecting to a remote LXD over HTTPS
DEBUG [2023-01-18T00:46:22Z]
{
"width": 120,
"height": 30,
"type": "console"
}
DEBUG [2023-01-18T00:46:22Z] Sending request to LXD etag= method=POST url="https://172.31.30.130:8443/1.0/instances/intimate-jackal/console"
DEBUG [2023-01-18T00:46:22Z] Matched trusted cert fingerprint=3a3ec80297877648d889423e91637deace656e8540ceeb81f514b145ade2177b subject="CN=root@lxdserver1,O=linuxcontainers.org"
DEBUG [2023-01-18T00:46:22Z] Handling API request fingerprint=3a3ec80297877648d889423e91637deace656e8540ceeb81f514b145ade2177b ip="172.31.30.129:52382" method=POST protocol=cluster url=/1.0/instances/intimate-jackal/console
DEBUG [2023-01-18T00:46:22Z] New operation class=websocket description="Showing console" operation=7fe00d97-158d-413d-9ecd-aaf9c9616dcd project=default
DEBUG [2023-01-18T00:46:22Z] Started operation class=websocket description="Showing console" operation=7fe00d97-158d-413d-9ecd-aaf9c9616dcd project=default
DEBUG [2023-01-18T00:46:53Z] Instance operation lock created action=restart instance=intimate-jackal project=default reusable=false
DEBUG [2023-01-18T00:46:53Z] Instance initiated stop action=reboot instance=intimate-jackal instanceType=virtual-machine project=default
DEBUG [2023-01-18T00:46:53Z] Instance stopped instance=intimate-jackal instanceType=virtual-machine project=default reason=guest-reset target=reboot
DEBUG [2023-01-18T00:46:53Z] onStop hook started instance=intimate-jackal instanceType=virtual-machine project=default target=reboot
DEBUG [2023-01-18T00:46:53Z] Waiting for VM process to finish instance=intimate-jackal instanceType=virtual-machine project=default
DEBUG [2023-01-18T00:48:03Z] Finished mirroring console to websocket
DEBUG [2023-01-18T00:48:03Z] Finished mirroring websocket to console
DEBUG [2023-01-18T00:48:03Z] DefaultWriter got error getting next reader err="websocket: close 1006 (abnormal closure): unexpected EOF"
DEBUG [2023-01-18T00:48:03Z] Got error getting next reader: read tcp 172.31.30.130:8443->172.31.30.129:52398: use of closed network connection
DEBUG [2023-01-18T00:48:03Z] Console control websocket finished
DEBUG [2023-01-18T00:48:03Z] Console websocket finished
DEBUG [2023-01-18T00:48:03Z] Failure for operation class=websocket description="Showing console" err="write unix:@->/var/snap/lxd/common/lxd/logs/intimate-jackal/qemu.console: file already closed" operation=7fe00d97-158d-413d-9ecd-aaf9c9616dcd project=default
DEBUG [2023-01-18T00:48:03Z] Event listener server handler stopped listener=8b063036-133a-4b3a-bb40-b961f4d3c457 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-01-18T00:48:04Z] VM process finished instance=intimate-jackal instanceType=virtual-machine project=default
DEBUG [2023-01-18T00:48:04Z] Stopping device device=root instance=intimate-jackal instanceType=virtual-machine project=default type=disk
DEBUG [2023-01-18T00:48:04Z] Stopping device device=eth0 instance=intimate-jackal instanceType=virtual-machine project=default type=nic
DEBUG [2023-01-18T00:48:04Z] UnmountInstance started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:48:04Z] Unmounted RBD volume driver=ceph keepBlockDev=false path=/var/snap/lxd/common/lxd/storage-pools/lxd-ceph-storagepool/virtual-machines/intimate-jackal pool=lxd-ceph-storagepool volName=intimate-jackal
DEBUG [2023-01-18T00:48:05Z] Deactivated RBD volume driver=ceph pool=lxd-ceph-storagepool volName=virtual-machine_intimate-jackal
DEBUG [2023-01-18T00:48:05Z] Deactivated RBD volume driver=ceph pool=lxd-ceph-storagepool volName=virtual-machine_intimate-jackal.block
DEBUG [2023-01-18T00:48:05Z] UnmountInstance finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:48:06Z] Start started instance=intimate-jackal instanceType=virtual-machine project=default stateful=false
DEBUG [2023-01-18T00:48:06Z] Instance operation lock inherited action=restart inheritedByAction=start instance=intimate-jackal project=default reusable=false
DEBUG [2023-01-18T00:48:06Z] MountInstance started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:48:06Z] Activated RBD volume dev=/dev/rbd0 driver=ceph pool=lxd-ceph-storagepool volName=virtual-machine_intimate-jackal.block
DEBUG [2023-01-18T00:48:06Z] Activated RBD volume dev=/dev/rbd1 driver=ceph pool=lxd-ceph-storagepool volName=virtual-machine_intimate-jackal
DEBUG [2023-01-18T00:48:06Z] Mounted RBD volume dev=/dev/rbd1 driver=ceph options=discard path=/var/snap/lxd/common/lxd/storage-pools/lxd-ceph-storagepool/virtual-machines/intimate-jackal pool=lxd-ceph-storagepool
DEBUG [2023-01-18T00:48:06Z] MountInstance finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:48:06Z] Skipping lxd-agent install as unchanged installPath=/var/snap/lxd/common/lxd/virtual-machines/intimate-jackal/config/lxd-agent instance=intimate-jackal instanceType=virtual-machine project=default srcPath=/snap/lxd/24308/bin/lxd-agent
DEBUG [2023-01-18T00:48:06Z] Starting device device=eth0 instance=intimate-jackal instanceType=virtual-machine project=default type=nic
DEBUG [2023-01-18T00:48:06Z] Scheduler: network: tapc3ee4e50 has been added: updating network priorities
DEBUG [2023-01-18T00:48:06Z] Starting device device=root instance=intimate-jackal instanceType=virtual-machine project=default type=disk
WARNING[2023-01-18T00:48:06Z] Unable to use virtio-fs for config drive, using 9p as a fallback err="Architecture unsupported" instance=intimate-jackal instanceType=virtual-machine project=default
DEBUG [2023-01-18T00:48:06Z] UpdateInstanceBackupFile started instance=intimate-jackal project=default
DEBUG [2023-01-18T00:48:06Z] Skipping unmount as in use driver=ceph pool=lxd-ceph-storagepool refCount=1 volName=intimate-jackal
DEBUG [2023-01-18T00:48:06Z] UpdateInstanceBackupFile finished instance=intimate-jackal project=default
DEBUG [2023-01-18T00:48:07Z] Start finished instance=intimate-jackal instanceType=virtual-machine project=default stateful=false
DEBUG [2023-01-18T00:48:07Z] Instance operation lock finished action=restart err="<nil>" instance=intimate-jackal project=default reusable=false
DEBUG [2023-01-18T00:48:07Z] onStop hook finished instance=intimate-jackal instanceType=virtual-machine project=default target=reboot
The only highlighted content is
WARNING[2023-01-18T00:48:06Z] Unable to use virtio-fs for config drive, using 9p as a fallback err="Architecture unsupported" instance=intimate-jackal instanceType=virtual-machine project=default
i watch the vm console and lxc monitor --type=logging --pretty
at the same time.
About one minute after I execute lxd start xxxx --console
,the following log appears in the console
Error: write unix:@->/var/snap/lxd/common/lxd/logs/firm-quetzal/qemu.console: file already closed
and then
WARNING[2023-01-18T00:48:06Z] Unable to use virtio-fs for config drive, using 9p as a fallback err="Architecture unsupported" instance=intimate-jackal instanceType=virtual-machine project=default
appears in the monitor terminal, It is highlighted.