qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] nic is lost, in the virtual machine running


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] nic is lost, in the virtual machine running
Date: Mon, 28 Jul 2014 17:06:29 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Jul 19, 2014 at 03:31:00PM +0800, melolinux wrote:
> 1. /usr/bin/qemu-system-x86_64 -machine accel=kvm -name 
> a58970a2-10aa-4973-9261-7384b2f53221 -S -machine pc-0.14,accel=kvm,usb=off -m 
> 4096 -smp 4,sockets=1,cores=4,threads=1 -uuid 
> f3a2217f-ae5c-461b-a922-d37a3a98edc6 -no-user-config -nodefaults -chardev 
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/a58970a2-10aa-4973-9261-7384b2f53221.monitor,server,nowait
>  -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime 
> -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive 
> file=/dev/493bdd93-6eb4-4499-a344-99cd0abef251/95eb250a-05ab-4da1-8673-8a616b4d0a6e,if=none,id=drive-ide0-0-0,format=qcow2,cache=writeback
>  -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 
> -drive 
> file=/dev/493bdd93-6eb4-4499-a344-99cd0abef251/27d2df8a-dc00-4f6a-8669-f5dffc7a92d8,if=none,id=drive-ide0-0-1,format=qcow2,cache=writeback
>  -device ide-hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -netdev 
> tap,ifname=tapa589700,script=no,id=hostnet0 -device 
> e1000,netdev=hostnet0,id=net0,mac=c6:b0:5c:de:54:39,bus=pci.0,addr=0x3 
> -chardev spicevmc,id=charchannel0,name=vdagent -device 
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
>  -device usb-tablet,id=input0 -spice 
> port=5900,addr=10.9.40.213,disable-ticketing,seamless-migration=on -vga qxl 
> -global qxl-vga.ram_size=67108864 -global qxl-vga.vram_size=9437184 -device 
> intel-hda,id=sound0,bus=pci.0,addr=0x4 -device 
> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device 
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
> 
> 
> 2. Problem found :the client can't find the network device (It takes a long 
> time since we create the vm)
> 
> 3. we use "qemu-monitor-commond --hmp xx info pci" to check it and find that 
> 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

Attachment: pgp133FZytCd2.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]