This is full ERROR log 2023-03-23 08:00:52.362+0000: starting up libvirt version: 8.0.0, package: 1ubuntu7.4 (Christian Ehrhardt <christian.ehrha...@canonical.com> Tue, 22 Nov 2022 15:59:28 +0100), qemu version: 6.2.0Debian 1:6.2+dfsg-2ubuntu6.6, kernel: 5.19.0-35-generic, hostname: c1c2 LC_ALL=C \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ HOME=/var/lib/libvirt/qemu/domain-4-instance-0000000e \ XDG_DATA_HOME=/var/lib/libvirt/qemu/domain-4-instance-0000000e/.local/share \ XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain-4-instance-0000000e/.cache \ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain-4-instance-0000000e/.config \ /usr/bin/qemu-system-x86_64 \ -name guest=instance-0000000e,debug-threads=on \ -S \ -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-4-instance-0000000e/master-key.aes"}' \ -machine pc-i440fx-6.2,usb=off,dump-guest-core=off,memory-backend=pc.ram \ -accel kvm \ -cpu Cooperlake,ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,sha-ni=on,umip=on,waitpkg=on,gfni=on,vaes=on,vpclmulqdq=on,rdpid=on,movdiri=on,movdir64b=on,fsrm=on,md-clear=on,avx-vnni=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,hle=off,rtm=off,avx512f=off,avx512dq=off,avx512cd=off,avx512bw=off,avx512vl=off,avx512vnni=off,avx512-bf16=off,taa-no=off \ -m 64 \ -object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":67108864}' \ -overcommit mem-lock=off \ -smp 1,sockets=1,dies=1,cores=1,threads=1 \ -uuid ff91d2dc-69a1-43ef-abde-c9e4e9a0305b \ -smbios 'type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=25.1.0,serial=ff91d2dc-69a1-43ef-abde-c9e4e9a0305b,uuid=ff91d2dc-69a1-43ef-abde-c9e4e9a0305b,family=Virtual Machine' \ -no-user-config \ -nodefaults \ -chardev socket,id=charmonitor,fd=33,server=on,wait=off \ -mon chardev=charmonitor,id=monitor,mode=control \ -rtc base=utc,driftfix=slew \ -global kvm-pit.lost_tick_policy=delay \ -no-hpet \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -blockdev '{"driver":"file","filename":"/var/lib/nova/instances/_base/8b58db82a488248e7c5e769599954adaa47a5314","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-2-format","read-only":true,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"}' \ -blockdev '{"driver":"file","filename":"/var/lib/nova/instances/ff91d2dc-69a1-43ef-abde-c9e4e9a0305b/disk","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage","backing":"libvirt-2-format"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=libvirt-1-format,id=virtio-disk0,bootindex=1,write-cache=on \ -add-fd set=1,fd=34 \ -chardev pty,id=charserial0,logfile=/dev/fdset/1,logappend=on \ -device isa-serial,chardev=charserial0,id=serial0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ -audiodev '{"id":"audio1","driver":"none"}' \ -vnc 0.0.0.0:0,audiodev=audio1 \ -device virtio-vga,id=video0,max_outputs=1,bus=pci.0,addr=0x2 \ -device vfio-pci,host=0000:01:00.5,id=hostdev0,bus=pci.0,addr=0x4 \ -device vfio-pci,host=0000:01:00.6,id=hostdev1,bus=pci.0,addr=0x5 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -object '{"qom-type":"rng-random","id":"objrng0","filename":"/dev/urandom"}' \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x7 \ -device vmcoreinfo \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on char device redirected to /dev/pts/3 (label charserial0) 2023-03-23T08:00:53.728550Z qemu-system-x86_64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=4, start=0xfffffffffe000000, size=0x2000: Invalid argument kvm_set_phys_mem: error registering slot: Invalid argument 2023-03-23 08:00:54.201+0000: shutting down, reason=crashed 2023-03-23 08:54:43.468+0000: starting up libvirt version: 8.0.0, package: 1ubuntu7.4 (Christian Ehrhardt <christian.ehrha...@canonical.com> Tue, 22 Nov 2022 15:59:28 +0100), qemu version: 6.2.0Debian 1:6.2+dfsg-2ubuntu6.6, kernel: 5.19.0-35-generic, hostname: c1c2 LC_ALL=C \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ HOME=/var/lib/libvirt/qemu/domain-5-instance-0000000e \ XDG_DATA_HOME=/var/lib/libvirt/qemu/domain-5-instance-0000000e/.local/share \ XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain-5-instance-0000000e/.cache \ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain-5-instance-0000000e/.config \ /usr/bin/qemu-system-x86_64 \ -name guest=instance-0000000e,debug-threads=on \ -S \ -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-5-instance-0000000e/master-key.aes"}' \ -machine pc-i440fx-6.2,usb=off,dump-guest-core=off,memory-backend=pc.ram \ -accel kvm \ -cpu Cooperlake,ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,sha-ni=on,umip=on,waitpkg=on,gfni=on,vaes=on,vpclmulqdq=on,rdpid=on,movdiri=on,movdir64b=on,fsrm=on,md-clear=on,avx-vnni=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,hle=off,rtm=off,avx512f=off,avx512dq=off,avx512cd=off,avx512bw=off,avx512vl=off,avx512vnni=off,avx512-bf16=off,taa-no=off \ -m 64 \ -object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":67108864}' \ -overcommit mem-lock=off \ -smp 1,sockets=1,dies=1,cores=1,threads=1 \ -uuid ff91d2dc-69a1-43ef-abde-c9e4e9a0305b \ -smbios 'type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=25.1.0,serial=ff91d2dc-69a1-43ef-abde-c9e4e9a0305b,uuid=ff91d2dc-69a1-43ef-abde-c9e4e9a0305b,family=Virtual Machine' \ -no-user-config \ -nodefaults \ -chardev socket,id=charmonitor,fd=33,server=on,wait=off \ -mon chardev=charmonitor,id=monitor,mode=control \ -rtc base=utc,driftfix=slew \ -global kvm-pit.lost_tick_policy=delay \ -no-hpet \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -blockdev '{"driver":"file","filename":"/var/lib/nova/instances/_base/8b58db82a488248e7c5e769599954adaa47a5314","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-2-format","read-only":true,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"}' \ -blockdev '{"driver":"file","filename":"/var/lib/nova/instances/ff91d2dc-69a1-43ef-abde-c9e4e9a0305b/disk","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage","backing":"libvirt-2-format"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=libvirt-1-format,id=virtio-disk0,bootindex=1,write-cache=on \ -add-fd set=1,fd=34 \ -chardev pty,id=charserial0,logfile=/dev/fdset/1,logappend=on \ -device isa-serial,chardev=charserial0,id=serial0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ -audiodev '{"id":"audio1","driver":"none"}' \ -vnc 0.0.0.0:0,audiodev=audio1 \ -device virtio-vga,id=video0,max_outputs=1,bus=pci.0,addr=0x2 \ -device vfio-pci,host=0000:01:00.5,id=hostdev0,bus=pci.0,addr=0x4 \ -device vfio-pci,host=0000:01:00.6,id=hostdev1,bus=pci.0,addr=0x5 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -object '{"qom-type":"rng-random","id":"objrng0","filename":"/dev/urandom"}' \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x7 \ -device vmcoreinfo \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on char device redirected to /dev/pts/3 (label charserial0) 2023-03-23T08:54:44.755039Z qemu-system-x86_64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=4, start=0xfffffffffe000000, size=0x2000: Invalid argument kvm_set_phys_mem: error registering slot: Invalid argument 2023-03-23 08:54:45.230+0000: shutting down, reason=crashed ---- Simon Jones
Simon Jones <batmanu...@gmail.com> 于2023年3月23日周四 05:49写道: > This is happened in ubuntu22.04. > > QEMU is install by apt like this: > apt install -y qemu qemu-kvm qemu-system > > and QEMU version is 6.2.0 > > ---- > Simon Jones > > > Simon Jones <batmanu...@gmail.com> 于2023年3月21日周二 08:40写道: > >> >> >> Hi all, >> >> I start a VM in openstack, and openstack use libvirt to start qemu VM, >> but now log show this ERROR. >> Is there any one know this? >> >> The ERROR log from /var/log/libvirt/qemu/instance-0000000e.log >> ``` >> 2023-03-14T10:09:17.674114Z qemu-system-x86_64: >> kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=4, >> start=0xfffffffffe000000, size=0x2000: Invalid argument >> kvm_set_phys_mem: error registering slot: Invalid argument >> 2023-03-14 10:09:18.198+0000: shutting down, reason=crashed >> ``` >> >> The xml file >> ``` >> root@c1c2:~# cat /etc/libvirt/qemu/instance-0000000e.xml >> <!-- >> WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE >> OVERWRITTEN AND LOST. Changes to this xml configuration should be made >> using: >> virsh edit instance-0000000e >> or other application using the libvirt API. >> --> >> >> <domain type='kvm'> >> <name>instance-0000000e</name> >> <uuid>ff91d2dc-69a1-43ef-abde-c9e4e9a0305b</uuid> >> <metadata> >> <nova:instance xmlns:nova=" >> http://openstack.org/xmlns/libvirt/nova/1.1"> >> <nova:package version="25.1.0"/> >> <nova:name>provider-instance</nova:name> >> <nova:creationTime>2023-03-14 10:09:13</nova:creationTime> >> <nova:flavor name="cirros-os-dpu-test-1"> >> <nova:memory>64</nova:memory> >> <nova:disk>1</nova:disk> >> <nova:swap>0</nova:swap> >> <nova:ephemeral>0</nova:ephemeral> >> <nova:vcpus>1</nova:vcpus> >> </nova:flavor> >> <nova:owner> >> <nova:user >> uuid="ff627ad39ed94479b9c5033bc462cf78">admin</nova:user> >> <nova:project >> uuid="512866f9994f4ad8916d8539a7cdeec9">admin</nova:project> >> </nova:owner> >> <nova:root type="image" >> uuid="9e58cb69-316a-4093-9f23-c1d1bd8edffe"/> >> <nova:ports> >> <nova:port uuid="77c1dc00-af39-4463-bea0-12808f4bc340"> >> <nova:ip type="fixed" address="172.1.1.43" ipVersion="4"/> >> </nova:port> >> </nova:ports> >> </nova:instance> >> </metadata> >> <memory unit='KiB'>65536</memory> >> <currentMemory unit='KiB'>65536</currentMemory> >> <vcpu placement='static'>1</vcpu> >> <sysinfo type='smbios'> >> <system> >> <entry name='manufacturer'>OpenStack Foundation</entry> >> <entry name='product'>OpenStack Nova</entry> >> <entry name='version'>25.1.0</entry> >> <entry name='serial'>ff91d2dc-69a1-43ef-abde-c9e4e9a0305b</entry> >> <entry name='uuid'>ff91d2dc-69a1-43ef-abde-c9e4e9a0305b</entry> >> <entry name='family'>Virtual Machine</entry> >> </system> >> </sysinfo> >> <os> >> <type arch='x86_64' machine='pc-i440fx-6.2'>hvm</type> >> <boot dev='hd'/> >> <smbios mode='sysinfo'/> >> </os> >> <features> >> <acpi/> >> <apic/> >> <vmcoreinfo state='on'/> >> </features> >> <cpu mode='host-model' check='partial'> >> <topology sockets='1' dies='1' cores='1' threads='1'/> >> </cpu> >> <clock offset='utc'> >> <timer name='pit' tickpolicy='delay'/> >> <timer name='rtc' tickpolicy='catchup'/> >> <timer name='hpet' present='no'/> >> </clock> >> <on_poweroff>destroy</on_poweroff> >> <on_reboot>restart</on_reboot> >> <on_crash>destroy</on_crash> >> <devices> >> <emulator>/usr/bin/qemu-system-x86_64</emulator> >> <disk type='file' device='disk'> >> <driver name='qemu' type='qcow2' cache='none'/> >> <source >> file='/var/lib/nova/instances/ff91d2dc-69a1-43ef-abde-c9e4e9a0305b/disk'/> >> <target dev='vda' bus='virtio'/> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' >> function='0x0'/> >> </disk> >> <controller type='usb' index='0' model='piix3-uhci'> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' >> function='0x2'/> >> </controller> >> <controller type='pci' index='0' model='pci-root'/> >> <interface type='hostdev' managed='yes'> >> <mac address='fa:16:3e:aa:d9:23'/> >> <source> >> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' >> function='0x5'/> >> </source> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' >> function='0x0'/> >> </interface> >> <serial type='pty'> >> <log >> file='/var/lib/nova/instances/ff91d2dc-69a1-43ef-abde-c9e4e9a0305b/console.log' >> append='off'/> >> <target type='isa-serial' port='0'> >> <model name='isa-serial'/> >> </target> >> </serial> >> <console type='pty'> >> <log >> file='/var/lib/nova/instances/ff91d2dc-69a1-43ef-abde-c9e4e9a0305b/console.log' >> append='off'/> >> <target type='serial' port='0'/> >> </console> >> <input type='tablet' bus='usb'> >> <address type='usb' bus='0' port='1'/> >> </input> >> <input type='mouse' bus='ps2'/> >> <input type='keyboard' bus='ps2'/> >> <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'> >> <listen type='address' address='0.0.0.0'/> >> </graphics> >> <audio id='1' type='none'/> >> <video> >> <model type='virtio' heads='1' primary='yes'/> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' >> function='0x0'/> >> </video> >> <hostdev mode='subsystem' type='pci' managed='yes'> >> <source> >> <address domain='0x0000' bus='0x01' slot='0x00' function='0x6'/> >> </source> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' >> function='0x0'/> >> </hostdev> >> <memballoon model='virtio'> >> <stats period='10'/> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' >> function='0x0'/> >> </memballoon> >> <rng model='virtio'> >> <backend model='random'>/dev/urandom</backend> >> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' >> function='0x0'/> >> </rng> >> </devices> >> </domain> >> ``` >> >> >> ---- >> Simon Jones >> >