From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Virtio with multiple devices of the same type Date: Wed, 13 Feb 2008 09:24:56 +0200 Message-ID: <47B29B48.1070901@qumranet.com> References: <1202873568.3319.280.camel@athas> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, Dor Laor To: Will Trives Return-path: In-Reply-To: <1202873568.3319.280.camel@athas> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Will Trives wrote: > Hello guys, > > Bug: A virtual machine/guest can only have one virtio block device and > one virtio network device. > > Example command line: > > qemu-system-x86_64 -drive file=disk.qcow2,if=virtio,boot=on -net nic,model=virtio,macaddr=50:18:99:55:4E:43 -net tap -net nic,model=virtio,macaddr=51:17:99:55:4D:43 -net tap > You need to place the two nics on separate qemu vlans: qemu-system-x86_64 -drive file=disk.qcow2,if=virtio,boot=on -net nic,model=virtio,macaddr=50:18:99:55:4E:43.vlan=0 -net tap,vlan=0 -net nic,model=virtio,macaddr=51:17:99:55:4D:43,vlan=1 -net tap,vlan=1 (a qemu vlan is just a virtual ethernet segment, not 802.3q (or whatever it's called) vlan)). Ideally it should work without this, but there's a bug in one of the virtio optimizations that prevents it from working correctly. -- Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/