[Bug 1074572] New: virsh attach-disk not work
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 Bug ID: 1074572 Summary: virsh attach-disk not work Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: x86-64 OS: openSUSE 42.3 Status: NEW Severity: Normal Priority: P5 - None Component: Virtualization:Tools Assignee: virt-bugs@suse.de Reporter: mlusster@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I use KVM(Libvirt) Debian guest on Leap 42.3. For guest backup data, attach /dev/sdb(sata HDD) do not work. # lsblk ... ... sdb 8:16 0 2.7T 0 disk ├─sdb1 8:17 0 80G 0 part ├─sdb2 8:18 0 400G 0 part └─sdb3 8:19 0 80G 0 part command: # /usr/bin/virsh attach-disk [guest domain] /dev/sdb vdb --live --type disk error: Failed to attach disk error: internal error: unable to execute QEMU command 'device_add': Unsupported bus. Bus doesn't have property 'acpi-pcihp-bsel' set On Leap 42.2, this command worked well, no problem. Same problem report at Red Hat Bugzilla – Bug 1507693 https://bugzilla.redhat.com/show_bug.cgi?id=1507693 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 Fei Li <fli@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fli@suse.com Assignee|virt-bugs@suse.de |fli@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 http://bugzilla.opensuse.org/show_bug.cgi?id=1074572#c1 --- Comment #1 from Fei Li <fli@suse.com> --- Hi, I could not reproduce the bug. Could you help to provide the following information? - your host kernel/qemu/libvirt version - the libvirt xml you use to start the guest - the specific distribution of your guest - the libvirtd log For the last one, in /etc/libvirt/libvirtd.conf, set: log_level = 1 log_outputs="1:file:/tmp/libvirtd.log" Then restart libvirtd and attach /tmp/libvirtd.log. FYI, I use - Leap42.3 as the host with the original kernel 4.4.76-1-default/qemu 2.9.0/libvirt v3.3.0 && the latest kernel 4.4.104-39-default/qemu 2.9.1/libvirt 3.3.0 - ubuntu-17.04-server-amd64.iso as the guest - the same virsh command line with you -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 http://bugzilla.opensuse.org/show_bug.cgi?id=1074572#c2 --- Comment #2 from M Koyama <mlusster@gmail.com> --- Thank you for reply. Sorry, I updated to Virtualization repository, so do not use problem version of Libvirt and qemu. These are problem version.(openSUSE 42.3 release package) - your host kernel/qemu/libvirt version kernel:4.4.103-18.41-default qemu: 2.9.1 libvirt: 3.3.0 - the libvirt xml you use to start the guest <domain type='kvm'> <name>vm_ns</name> <uuid>xxxxxxxxxxxxxxxx</uuid> <description>debian8 64bit</description> <memory unit='KiB'>1048576</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64' machine='pc-i440fx-1.6'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='localtime'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/guest.img'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/debian-8.10.0-amd64-netinst.iso'/> <target dev='hda' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'/> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x00' slot='0x19' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </hostdev> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> </domain> - the specific distribution of your guest Debian 8(64bit) - the libvirtd log Sorry log missing ... For the last one, in /etc/libvirt/libvirtd.conf, set: log_level = 1 log_outputs="1:file:/tmp/libvirtd.log" Then restart libvirtd and attach /tmp/libvirtd.log. Sorry I updated to libvirt version: 3.10.0, qemu version: 2.11.0. New version of libvirt work well, no problem. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 http://bugzilla.opensuse.org/show_bug.cgi?id=1074572#c3 --- Comment #3 from Fei Li <fli@suse.com> --- Hi, Sorry for the late update. I do reproduce your issue when I use the v2.9 qemu version with older machine types <= 1.6 on leap42.3. I see you use "pc-i440fx-1.6". With machine types >=2.0, there's no such error. This is due to commit id f0c9d64a removes the adding ACPI_PCIHP_PROP_BSEL for 1.6 and older machine types, which causes an error when hotplugging a pci device using qemu v2.9.* and v2.10.0. The attached patch is to fix this, you can build qemu with the patch applied or build the qemu rpm and update to verify this. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074572 http://bugzilla.opensuse.org/show_bug.cgi?id=1074572#c4 --- Comment #4 from Fei Li <fli@suse.com> --- Created attachment 758387 --> http://bugzilla.opensuse.org/attachment.cgi?id=758387&action=edit fix pcihp for 1.6 and older qemu machine types -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com