Received: from eggs.gnu.org ([2001:4830:134:3::10]:43571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBnRo-0006wP-Fg for qemu-devel@nongnu.org; Mon, 28 Jul 2014 12:06:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBnRe-0002qU-38 for qemu-devel@nongnu.org; Mon, 28 Jul 2014 12:06:48 -0400 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:64399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBnRd-0002ob-SM for qemu-devel@nongnu.org; Mon, 28 Jul 2014 12:06:38 -0400 Received: by mail-wg0-f46.google.com with SMTP id m15so7550355wgh.5 for ; Mon, 28 Jul 2014 09:06:34 -0700 (PDT) Date: Mon, 28 Jul 2014 17:06:29 +0100 From: Stefan Hajnoczi Message-ID: <20140728160629.GJ13872@stefanha-thinkpad.redhat.com> References: <5e19cd6.405d.1474d87f13a.Coremail.melolinux@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cN519qCC4CN1mUcX" Content-Disposition: inline In-Reply-To: <5e19cd6.405d.1474d87f13a.Coremail.melolinux@163.com> Subject: Re: [Qemu-devel] nic is lost, in the virtual machine running List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: melolinux Cc: qemu-devel --cN519qCC4CN1mUcX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 19, 2014 at 03:31:00PM +0800, melolinux wrote: > 1. /usr/bin/qemu-system-x86_64 -machine accel=3Dkvm -name a58970a2-10aa-4= 973-9261-7384b2f53221 -S -machine pc-0.14,accel=3Dkvm,usb=3Doff -m 4096 -sm= p 4,sockets=3D1,cores=3D4,threads=3D1 -uuid f3a2217f-ae5c-461b-a922-d37a3a9= 8edc6 -no-user-config -nodefaults -chardev socket,id=3Dcharmonitor,path=3D/= var/lib/libvirt/qemu/a58970a2-10aa-4973-9261-7384b2f53221.monitor,server,no= wait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dloc= altime -no-shutdown -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.= 0x2 -device virtio-serial-pci,id=3Dvirtio-serial0,bus=3Dpci.0,addr=3D0x5 -d= rive file=3D/dev/493bdd93-6eb4-4499-a344-99cd0abef251/95eb250a-05ab-4da1-86= 73-8a616b4d0a6e,if=3Dnone,id=3Ddrive-ide0-0-0,format=3Dqcow2,cache=3Dwriteb= ack -device ide-hd,bus=3Dide.0,unit=3D0,drive=3Ddrive-ide0-0-0,id=3Dide0-0-= 0,bootindex=3D1 -drive file=3D/dev/493bdd93-6eb4-4499-a344-99cd0abef251/27d= 2df8a-dc00-4f6a-8669-f5dffc7a92d8,if=3Dnone,id=3Ddrive-ide0-0-1,format=3Dqc= ow2,cache=3Dwriteback -device ide-hd,bus=3Dide.0,unit=3D1,drive=3Ddrive-ide= 0-0-1,id=3Dide0-0-1 -netdev tap,ifname=3Dtapa589700,script=3Dno,id=3Dhostne= t0 -device e1000,netdev=3Dhostnet0,id=3Dnet0,mac=3Dc6:b0:5c:de:54:39,bus=3D= pci.0,addr=3D0x3 -chardev spicevmc,id=3Dcharchannel0,name=3Dvdagent -device= virtserialport,bus=3Dvirtio-serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dc= hannel0,name=3Dcom.redhat.spice.0 -device usb-tablet,id=3Dinput0 -spice por= t=3D5900,addr=3D10.9.40.213,disable-ticketing,seamless-migration=3Don -vga = qxl -global qxl-vga.ram_size=3D67108864 -global qxl-vga.vram_size=3D9437184= -device intel-hda,id=3Dsound0,bus=3Dpci.0,addr=3D0x4 -device hda-duplex,id= =3Dsound0-codec0,bus=3Dsound0.0,cad=3D0 -device virtio-balloon-pci,id=3Dbal= loon0,bus=3Dpci.0,addr=3D0x6 >=20 >=20 > 2. Problem found :the client can't find the network device (It takes a lo= ng time since we create the vm) >=20 > 3. we use "qemu-monitor-commond --hmp xx info pci" to check it and find t= hat we lost the ethernet controller. There is not enough information in #2 and #3 to say what is going on. What does lspci report inside the guest? Does rmmod and modprobe of the NIC driver inside the guest bring the interface back? Did you check that QEMU's "info pci" reports the NIC when the guest has booted but doesn't report it when the network becomes unavailable? If yes, then please check the libvirt log for hot unplug events (/var/log/libvirt). Stefan --cN519qCC4CN1mUcX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJT1nUFAAoJEJykq7OBq3PIjikIAMcgS65hngbYSS1FjF6a//9L 33O1hndbIMCvq/ZKUKTjQ0o+4RQpcRvt+KpBT4XlJlpnbkxWIDj+rU8//FQLdcPA LQ7GeZdNF5CMckA2udyyR4f38uZgquy7gQlL2Q0vPtNPgDL/4n78HbgQLYBhuZvy 7/ceqCUIybi3sIX0TpKOKrOpNFVg2J2ipZ6ZLSYB3WxZhLfKk3G/uI5Q9VVSkQBH zwVwOslDxjBrNtIqickFgkro7QJpiSjpW4xemMfWSCt+fBWu0sT2AAoUEbb4NiS2 TAajp/6k7Cp8rYkwHBSVYcGlUpZ//DduUV/qurSEp6j6zGw21HjOr3e4gKw+L38= =IGrz -----END PGP SIGNATURE----- --cN519qCC4CN1mUcX--