From: "Wangpan" Subject: [qemu-kvm] unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk4' for device Date: Wed, 5 Dec 2012 11:11:38 +0800 Message-ID: <1874500028.27445.1354677100939.JavaMail.hzwangpan@corp.netease.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: "kvm" Return-path: Received: from [220.181.31.109] ([220.181.31.109]:47137 "EHLO corp.netease.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752497Ab2LEDSG (ORCPT ); Tue, 4 Dec 2012 22:18:06 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I am using qemu-kvm recantly, version info: # kvm --version QEMU emulator version 1.1.2 (qemu-kvm-1.1.2+dfsg-2, Debian), Copyright (c) 2003-2008 Fabrice Bellard # virsh version Compiled against library: libvir 0.9.12 Using library: libvir 0.9.12 Using API: QEMU 0.9.12 Running hypervisor: QEMU 1.1.2 # uname -a (both the host and guest) Linux Debian 3.2.0-3-amd64 #1 SMP Thu Jun 28 09:07:26 UTC 2012 x86_64 GNU/Linux # cat /etc/issue (both the host and guest) Debian GNU/Linux wheezy/sid and I get into trouble when I attach detach a disk to a guest, libvirt give me this error message: unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk4' for device the steps I did: 1) attach a disk to a guest by virsh attach-device 2) wait for 1s 3) detach the disk by virsh detach-device 4) wait for 1s 5) repeat step 1~4 after doing these steps about 12hours, the "Duplicate ID" error occurs, if I don't run step 2&4, the error occurs at a short time. anyone can give me some clues? Thanks in advance! Best Regards Wangpan