Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

riscv64 qemu attach-disk成功以后进入qemu找不到新磁盘 #432

Open
lvxiaoqian555 opened this issue Sep 27, 2022 · 1 comment
Open

Comments

@lvxiaoqian555
Copy link
Contributor

lvxiaoqian555 commented Sep 27, 2022

使用virt-install创建riscv64虚拟机,attach-disk成功以后,进入qemu查看磁盘信息,没有展示新挂载的磁盘

复现步骤:

  1. 创建qemu
virt-install  \
    --qemu-commandline='-bios none -append "root=/dev/vda1 rw console=ttyS0"' \
    --name vm-riscv64  \
    --arch riscv64  \
    --machine virt  \
    --vcpus 2  \
    --memory 2048  \
    --boot kernel=/var/lib/libvirt/images/fw_payload_oe_qemuvirt.elf  \
    --disk path=/var/lib/libvirt/images/openeuler-qemu.raw  \
    --network bridge=virbr0,model=virtio  \
    --rng device=/dev/urandom,model=virtio  \
    --channel name=org.qemu.guest_agent.0  \
    --graphics none \
    --osinfo detect=on,require=off

以上镜像来自openEuler-RISC-V/testing/20220622/v0.2/QEMU/

  1. 挂载磁盘
mkdir -p /var/lib/libvirt/images/avocado_dtdaq2cx
qemu-img create -f raw /var/lib/libvirt/images/avocado_dtdaq2cx/attach.img 1G
/bin/virsh attach-disk --domain 2 --source /var/lib/libvirt/images/avocado_dtdaq2cx/attach.img --target vdb --driver qemu --subdriver raw --mode shareable

以上命令中的--domain的序号可以通过virsh list --all得到

  1. 检查结果
    virsh dumpxml vm-riscv64
    image

virsh domblklist vm-riscv64
image

cat /proc/partitions #进入qemu
image
此处可以看出 libvert 认为 attach disk 是成功的,但qemu中没有显示新增加的disk

对比x86_64

  1. 创建qemu
wget https://mirror.iscas.ac.cn/openeuler/openEuler-22.03-LTS/virtual_machine_img/x86_64/openEuler-22.03-LTS-x86_64.qcow2.xz
xz -d openEuler-22.03-LTS-x86_64.qcow2.xz
wget https://mirror.iscas.ac.cn/openeuler/openEuler-22.03-LTS/OS/x86_64/images/pxeboot/initrd.img
wget https://mirror.iscas.ac.cn/openeuler/openEuler-22.03-LTS/OS/x86_64/images/pxeboot/vmlinuz
virt-install  \
    --qemu-commandline='-append "root=/dev/sda2 rw console=ttyS0 " ' \
    --name vm-x86  \
    --arch x86_64  \
    --vcpus 2  \
    --memory 2048  \
    --boot kernel=/var/lib/libvirt/images/vmlinuz,initrd=/var/lib/libvirt/images/initrd.img  \
    --disk path=/var/lib/libvirt/images/openEuler-22.03-LTS-x86_64.qcow2  \
    --network bridge=virbr0,model=virtio  \
    --rng device=/dev/urandom,model=virtio  \
    --channel name=org.qemu.guest_agent.0  \
    --graphics none \
    --osinfo detect=on,require=off
  1. 挂载磁盘
/bin/virsh attach-disk --domain 2 --source /var/lib/libvirt/images/avocado_dtdaq2cx/attach.img --target vdb --driver qemu --subdriver raw --mode shareable
  1. 检查结果
    image
    image
    image

以上对比可以看出,在x86的qemu上attach-disk是没有问题的
我想是否可以打开riscv64的qemu的相关日志(类似上面最后一个截图里面相关的内容)

libvirt version: 8.0.0
qemu version: 6.2.0

@lvxiaoqian555
Copy link
Contributor Author

补充一些 libvirt 日志

2022-09-23 02:31:21.653+0000: 190578: debug : qemuDomainStorageSourceAccessModify:7767 : src='/var/lib/libvirt/images/avocado_dtdaq2cx/attach.img' readonly=0 force_ro=0 force_rw=0 revoke=0 chain=1
2022-09-23 02:31:21.653+0000: 190578: debug : virDomainLockImageAttach:263 : plugin=0x7f550c0ac460 dom=0x7f5544022810 src=0x55ca891eecf0
2022-09-23 02:31:21.653+0000: 190578: debug : virDomainLockManagerNew:133 : plugin=0x7f550c0ac460 dom=0x7f5544022810 withResources=0
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerPluginGetDriver:276 : plugin=0x7f550c0ac460
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerNew:299 : driver=0x7f5557fef320 type=0 nparams=5 params=0x7f5552869560 flags=0x0
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerLogParams:97 :   key=uuid type=uuid value=6dc6cb0d-4609-4732-bcf4-cc4c43d7fca5
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerLogParams:90 :   key=name type=string value=avocado-vt-vm1
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerLogParams:78 :   key=id type=uint value=13
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerLogParams:78 :   key=pid type=uint value=193812
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerLogParams:93 :   key=uri type=cstring value=qemu:///system
2022-09-23 02:31:21.653+0000: 190578: debug : virDomainLockManagerAddImage:90 : Add disk /var/lib/libvirt/images/avocado_dtdaq2cx/attach.img
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerAddResource:325 : lock=0x7f5548009bf0 type=0 name=/var/lib/libvirt/images/avocado_dtdaq2cx/attach.img nparams=0 params=(nil) flags=0x2
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerAcquire:343 : lock=0x7f5548009bf0 state='<null>' flags=0x0 action=0 fd=(nil)
2022-09-23 02:31:21.653+0000: 190578: debug : virLockManagerFree:381 : lock=0x7f5548009bf0
2022-09-23 02:31:21.653+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c080120
2022-09-23 02:31:21.653+0000: 190578: debug : virFileGetMountSubtreeImpl:1979 : prefix=/dev
2022-09-23 02:31:21.657+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c080120
2022-09-23 02:31:21.657+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c027760
2022-09-23 02:31:21.657+0000: 190578: debug : virCommandRunAsync:2630 : About to run LIBVIRT_LOG_OUTPUTS=1:stderr /usr/lib/libvirt/virt-aa-helper -r -u libvirt-6dc6cb0d-4609-4732-bcf4-cc4c43d7fca5 -F /var/lib/libvirt/images/avocado_dtdaq2cx/attach.img
2022-09-23 02:31:21.659+0000: 190578: debug : virCommandRunAsync:2632 : Command result 0, with PID 193892
2022-09-23 02:31:21.798+0000: 190578: debug : virCommandRun:2476 : Result status 0, stdout: '' stderr: ''
2022-09-23 02:31:21.800+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c027760
2022-09-23 02:31:21.800+0000: 190578: debug : qemuSetupImagePathCgroup:74 : Allow path /var/lib/libvirt/images/avocado_dtdaq2cx/attach.img, perms: rw
2022-09-23 02:31:21.800+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c080120
2022-09-23 02:31:21.800+0000: 190578: debug : qemuDomainObjEnterMonitorInternal:5872 : Entering monitor (mon=0x7f550c09ba20 vm=0x7f5544022810 name=avocado-vt-vm1)
2022-09-23 02:31:21.800+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.800+0000: 190578: debug : qemuMonitorBlockdevAdd:4239 : props=0x7f554801eeb0 (node-name=libvirt-2-storage)
2022-09-23 02:31:21.800+0000: 190578: debug : qemuMonitorBlockdevAdd:4242 : mon:0x7f550c09ba20 vm:0x7f5544022810 fd:37
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToBuffer:1816 : object=0x7f554801dff0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801dff0 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801e010 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801eeb0 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801e160 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548006200 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801c070 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801a870 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801a890 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548007da0 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548003e70 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548019890 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f55480012a0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.800+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.800+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.800+0000: 190578: info : qemuMonitorSend:914 : QEMU_MONITOR_SEND_MSG: mon=0x7f550c09ba20 msg={"execute":"blockdev-add","arguments":{"driver":"file","filename":"/var/lib/libvirt/images/avocado_dtdaq2cx/attach.img","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"},"id":"libvirt-13"}
 fd=-1
2022-09-23 02:31:21.800+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.800+0000: 193815: info : qemuMonitorIOWrite:402 : QEMU_MONITOR_IO_WRITE: mon=0x7f550c09ba20 buf={"execute":"blockdev-add","arguments":{"driver":"file","filename":"/var/lib/libvirt/images/avocado_dtdaq2cx/attach.img","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"},"id":"libvirt-13"}
 len=254 ret=254 errno=0
2022-09-23 02:31:21.800+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.800+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.800+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: debug : qemuMonitorJSONIOProcessLine:222 : Line [{"return": {}, "id": "libvirt-13"}]
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONValueFromString:1691 : string={"return": {}, "id": "libvirt-13"}
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleStartMap:1583 : parser=0x7f55177fd730
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleMapKey:1563 : parser=0x7f55177fd730 key=0x7f554801fd32
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleStartMap:1583 : parser=0x7f55177fd730
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleEndMap:1604 : parser=0x7f55177fd730
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleMapKey:1563 : parser=0x7f55177fd730 key=0x7f554801fd40
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleString:1546 : parser=0x7f55177fd730 str=0x7f554801fd46
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONParserHandleEndMap:1604 : parser=0x7f55177fd730
2022-09-23 02:31:21.802+0000: 193815: debug : virJSONValueFromString:1735 : result=0x7f54f000bc70
2022-09-23 02:31:21.802+0000: 193815: info : qemuMonitorJSONIOProcessLine:241 : QEMU_MONITOR_RECV_REPLY: mon=0x7f550c09ba20 reply={"return": {}, "id": "libvirt-13"}
2022-09-23 02:31:21.802+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 190578: debug : qemuMonitorBlockdevAdd:4239 : props=0x7f554801c350 (node-name=libvirt-2-format)
2022-09-23 02:31:21.802+0000: 190578: debug : qemuMonitorBlockdevAdd:4242 : mon:0x7f550c09ba20 vm:0x7f5544022810 fd:37
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToBuffer:1816 : object=0x7f554801dff0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801dff0 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548001280 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801c350 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548020210 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f55480208a0 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548019b10 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548004e50 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548003b10 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548003b30 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801ee90 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801eeb0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.802+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 190578: info : qemuMonitorSend:914 : QEMU_MONITOR_SEND_MSG: mon=0x7f550c09ba20 msg={"execute":"blockdev-add","arguments":{"node-name":"libvirt-2-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"},"id":"libvirt-14"}
 fd=-1
2022-09-23 02:31:21.802+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: info : qemuMonitorIOWrite:402 : QEMU_MONITOR_IO_WRITE: mon=0x7f550c09ba20 buf={"execute":"blockdev-add","arguments":{"node-name":"libvirt-2-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"},"id":"libvirt-14"}
 len=192 ret=192 errno=0
2022-09-23 02:31:21.802+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.802+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: debug : qemuMonitorJSONIOProcessLine:222 : Line [{"return": {}, "id": "libvirt-14"}]
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONValueFromString:1691 : string={"return": {}, "id": "libvirt-14"}
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleStartMap:1583 : parser=0x7f55177fd730
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleMapKey:1563 : parser=0x7f55177fd730 key=0x7f54f0003482
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleStartMap:1583 : parser=0x7f55177fd730
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleEndMap:1604 : parser=0x7f55177fd730
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleMapKey:1563 : parser=0x7f55177fd730 key=0x7f54f0003490
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleString:1546 : parser=0x7f55177fd730 str=0x7f54f0003496
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONParserHandleEndMap:1604 : parser=0x7f55177fd730
2022-09-23 02:31:21.807+0000: 193815: debug : virJSONValueFromString:1735 : result=0x7f54f01bbed0
2022-09-23 02:31:21.807+0000: 193815: info : qemuMonitorJSONIOProcessLine:241 : QEMU_MONITOR_RECV_REPLY: mon=0x7f550c09ba20 reply={"return": {}, "id": "libvirt-14"}
2022-09-23 02:31:21.807+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: debug : qemuDomainObjExitMonitor:5902 : Exited monitor (mon=0x7f550c09ba20 vm=0x7f5544022810 name=avocado-vt-vm1)
2022-09-23 02:31:21.807+0000: 190578: debug : qemuDomainObjEnterMonitorInternal:5872 : Entering monitor (mon=0x7f550c09ba20 vm=0x7f5544022810 name=avocado-vt-vm1)
2022-09-23 02:31:21.807+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: debug : qemuMonitorAddDeviceProps:2820 : mon:0x7f550c09ba20 vm:0x7f5544022810 fd:37
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToBuffer:1816 : object=0x7f55480057f0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f55480057f0 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f55480060e0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548021c60 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801dff0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548005640 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548003b30 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801fa00 type=4 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548019b10 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548000ee0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548004bb0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548001280 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.807+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 190578: info : qemuMonitorSend:914 : QEMU_MONITOR_SEND_MSG: mon=0x7f550c09ba20 msg={"execute":"device_add","arguments":{"driver":"virtio-blk-pci","bus":"pci.7","addr":"0x0","share-rw":true,"drive":"libvirt-2-format","id":"virtio-disk1","write-cache":"on"},"id":"libvirt-15"}
 fd=-1
2022-09-23 02:31:21.807+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: info : qemuMonitorIOWrite:402 : QEMU_MONITOR_IO_WRITE: mon=0x7f550c09ba20 buf={"execute":"device_add","arguments":{"driver":"virtio-blk-pci","bus":"pci.7","addr":"0x0","share-rw":true,"drive":"libvirt-2-format","id":"virtio-disk1","write-cache":"on"},"id":"libvirt-15"}
 len=193 ret=193 errno=0
2022-09-23 02:31:21.807+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.807+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: debug : qemuMonitorJSONIOProcessLine:222 : Line [{"return": {}, "id": "libvirt-15"}]
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONValueFromString:1691 : string={"return": {}, "id": "libvirt-15"}
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleStartMap:1583 : parser=0x7f55177fd730
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleMapKey:1563 : parser=0x7f55177fd730 key=0x7f54f0001132
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleStartMap:1583 : parser=0x7f55177fd730
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleEndMap:1604 : parser=0x7f55177fd730
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleMapKey:1563 : parser=0x7f55177fd730 key=0x7f54f0001140
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleString:1546 : parser=0x7f55177fd730 str=0x7f54f0001146
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONParserHandleEndMap:1604 : parser=0x7f55177fd730
2022-09-23 02:31:21.862+0000: 193815: debug : virJSONValueFromString:1735 : result=0x7f54f01b7b70
2022-09-23 02:31:21.862+0000: 193815: info : qemuMonitorJSONIOProcessLine:241 : QEMU_MONITOR_RECV_REPLY: mon=0x7f550c09ba20 reply={"return": {}, "id": "libvirt-15"}
2022-09-23 02:31:21.862+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190578: debug : qemuDomainObjExitMonitor:5902 : Exited monitor (mon=0x7f550c09ba20 vm=0x7f5544022810 name=avocado-vt-vm1)
2022-09-23 02:31:21.862+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c080120
2022-09-23 02:31:21.862+0000: 190578: info : virObjectNew:258 : OBJECT_NEW: obj=0x7f550c023c20 classname=virDomainEventDeviceAdded
2022-09-23 02:31:21.862+0000: 190578: debug : virObjectEventNew:621 : obj=0x7f550c023c20
2022-09-23 02:31:21.862+0000: 190578: info : virEventGLibTimeoutUpdate:397 : EVENT_GLIB_UPDATE_TIMEOUT: timer=75 interval=0
2022-09-23 02:31:21.862+0000: 190578: debug : virEventGLibTimeoutUpdate:408 : Update timeout data=0x7f552c0085b0 timer=75 interval=0 ms
2022-09-23 02:31:21.862+0000: 190578: debug : qemuDomainObjEnterMonitorInternal:5872 : Entering monitor (mon=0x7f550c09ba20 vm=0x7f5544022810 name=avocado-vt-vm1)
2022-09-23 02:31:21.862+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190578: debug : qemuMonitorGetDeviceAliases:3830 : aliases=0x7f5552869740
2022-09-23 02:31:21.862+0000: 190578: debug : qemuMonitorGetDeviceAliases:3832 : mon:0x7f550c09ba20 vm:0x7f5544022810 fd:37
2022-09-23 02:31:21.862+0000: 190575: debug : virEventGLibTimeoutDispatch:305 : Dispatch timeout data=0x7f552c0085b0 cb=0x7f5557d1e690 timer=75 opaque=0x7f550c027610
2022-09-23 02:31:21.862+0000: 190575: info : virEventGLibTimeoutDispatch:308 : EVENT_GLIB_DISPATCH_TIMEOUT: timer=75 cb=0x7f5557d1e690 opaque=0x7f550c027610
2022-09-23 02:31:21.862+0000: 190575: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c027610
2022-09-23 02:31:21.862+0000: 190578: debug : virJSONValueToBuffer:1816 : object=0x7f554801ea60
2022-09-23 02:31:21.862+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801ea60 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.862+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f554801c350 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.862+0000: 190575: info : virEventGLibTimeoutUpdate:397 : EVENT_GLIB_UPDATE_TIMEOUT: timer=75 interval=-1
2022-09-23 02:31:21.862+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548024b60 type=0 gen=0x7f55480219c0
2022-09-23 02:31:21.862+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548024af0 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.862+0000: 190578: debug : virJSONValueToStringOne:1747 : object=0x7f5548021c60 type=2 gen=0x7f55480219c0
2022-09-23 02:31:21.862+0000: 190575: debug : virEventGLibTimeoutUpdate:408 : Update timeout data=0x7f552c0085b0 timer=75 interval=-1 ms
2022-09-23 02:31:21.862+0000: 190578: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190575: info : virObjectNew:258 : OBJECT_NEW: obj=0x7f5530006a40 classname=virDomain
2022-09-23 02:31:21.862+0000: 190575: info : virObjectRef:402 : OBJECT_REF: obj=0x7f554c00b450
2022-09-23 02:31:21.862+0000: 190578: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190575: info : virObjectRef:402 : OBJECT_REF: obj=0x55ca891c5a50
2022-09-23 02:31:21.862+0000: 190575: debug : virAccessManagerCheckDomain:237 : manager=0x55ca891c5a50(name=stack) driver=QEMU domain=0x7ffe86704620 perm=0
2022-09-23 02:31:21.862+0000: 190578: info : qemuMonitorSend:914 : QEMU_MONITOR_SEND_MSG: mon=0x7f550c09ba20 msg={"execute":"qom-list","arguments":{"path":"/machine/peripheral"},"id":"libvirt-16"}
 fd=-1
2022-09-23 02:31:21.862+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: info : qemuMonitorIOWrite:402 : QEMU_MONITOR_IO_WRITE: mon=0x7f550c09ba20 buf={"execute":"qom-list","arguments":{"path":"/machine/peripheral"},"id":"libvirt-16"}
 len=85 ret=85 errno=0
2022-09-23 02:31:21.862+0000: 193815: info : virObjectRef:402 : OBJECT_REF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 193815: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c09ba20
2022-09-23 02:31:21.862+0000: 190575: debug : virAccessManagerCheckDomain:237 : manager=0x55ca891c5ab0(name=none) driver=QEMU domain=0x7ffe86704620 perm=0
2022-09-23 02:31:21.862+0000: 190575: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x55ca891c5a50
2022-09-23 02:31:21.862+0000: 190575: debug : remoteRelayDomainEventDeviceAdded:1105 : Relaying domain device added event avocado-vt-vm1 13 virtio-disk1, callback 4
2022-09-23 02:31:21.862+0000: 190575: debug : virNetMessageNew:44 : msg=0x55ca8920cac0 tracked=0
2022-09-23 02:31:21.863+0000: 190575: debug : virNetMessageEncodePayload:383 : Encode length as 88
2022-09-23 02:31:21.863+0000: 190575: debug : remoteDispatchObjectEventSend:4328 : Queue event 354 88
2022-09-23 02:31:21.863+0000: 190575: debug : virNetServerClientSendMessageLocked:1484 : msg=0x55ca8920cac0 proc=354 len=88 offset=0
2022-09-23 02:31:21.863+0000: 190575: info : virNetServerClientSendMessageLocked:1490 : RPC_SERVER_CLIENT_MSG_TX_QUEUE: client=0x55ca891f7030 len=88 prog=536903814 vers=1 proc=354 type=2 status=0 serial=1
2022-09-23 02:31:21.863+0000: 190575: debug : virNetServerClientCalculateHandleMode:150 : tls=(nil) hs=-1, rx=0x55ca89207810 tx=0x55ca8920cac0
2022-09-23 02:31:21.863+0000: 190575: debug : virNetServerClientCalculateHandleMode:185 : mode=03
2022-09-23 02:31:21.863+0000: 190575: info : virEventGLibHandleUpdate:195 : EVENT_GLIB_UPDATE_HANDLE: watch=47 events=3
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleUpdate:206 : Update handle data=0x55ca891fe9d0 watch=47 fd=17 events=3
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleUpdate:215 : Removed old handle source=0x55ca89201bc0
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleUpdate:224 : Added new handle source=0x55ca89201bc0
2022-09-23 02:31:21.863+0000: 190575: info : vir_object_finalize:321 : OBJECT_DISPOSE: obj=0x7f5530006a40
2022-09-23 02:31:21.863+0000: 190575: debug : virDomainDispose:348 : release domain 0x7f5530006a40 avocado-vt-vm1 6dc6cb0d-4609-4732-bcf4-cc4c43d7fca5
2022-09-23 02:31:21.863+0000: 190575: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f554c00b450
2022-09-23 02:31:21.863+0000: 190575: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f5530006a40
2022-09-23 02:31:21.863+0000: 190575: info : vir_object_finalize:321 : OBJECT_DISPOSE: obj=0x7f550c023c20
2022-09-23 02:31:21.863+0000: 190575: debug : virDomainEventDeviceAddedDispose:462 : obj=0x7f550c023c20
2022-09-23 02:31:21.863+0000: 190575: debug : virDomainEventDispose:351 : obj=0x7f550c023c20
2022-09-23 02:31:21.863+0000: 190575: debug : virObjectEventDispose:122 : obj=0x7f550c023c20
2022-09-23 02:31:21.863+0000: 190575: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c023c20
2022-09-23 02:31:21.863+0000: 190575: info : virObjectUnref:380 : OBJECT_UNREF: obj=0x7f550c027610
2022-09-23 02:31:21.863+0000: 190575: debug : virEventRunDefaultImpl:341 : running default event implementation
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleDispatch:113 : Dispatch handler data=0x55ca891fe9d0 watch=47 fd=17 events=2 opaque=0x55ca891ee6f0
2022-09-23 02:31:21.863+0000: 190575: info : virEventGLibHandleDispatch:116 : EVENT_GLIB_DISPATCH_HANDLE: watch=47 events=2 cb=0x7f5557d549f0 opaque=0x55ca891ee6f0
2022-09-23 02:31:21.863+0000: 190575: debug : virNetMessageFree:85 : msg=0x55ca8920cac0 nfds=0 cb=(nil)
2022-09-23 02:31:21.863+0000: 190575: debug : virNetServerClientCalculateHandleMode:150 : tls=(nil) hs=-1, rx=0x55ca89207810 tx=(nil)
2022-09-23 02:31:21.863+0000: 190575: debug : virNetServerClientCalculateHandleMode:185 : mode=01
2022-09-23 02:31:21.863+0000: 190575: info : virEventGLibHandleUpdate:195 : EVENT_GLIB_UPDATE_HANDLE: watch=47 events=1
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleUpdate:206 : Update handle data=0x55ca891fe9d0 watch=47 fd=17 events=1
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleUpdate:215 : Removed old handle source=0x55ca89201bc0
2022-09-23 02:31:21.863+0000: 190575: debug : virEventGLibHandleUpdate:224 : Added new handle source=0x55ca89206240
2022-09-23 02:31:21.863+0000: 190575: debug : virEventRunDefaultImpl:341 : running default event implementation
2022-09-23 02:31:21.863+0000: 190575: debug : virEventRunDefaultImpl:341 : running default event implementation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant