From owner-freebsd-virtualization@FreeBSD.ORG Mon Jan 20 20:01:57 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2CF26D2E for ; Mon, 20 Jan 2014 20:01:57 +0000 (UTC) Received: from mail-pd0-x22d.google.com (mail-pd0-x22d.google.com [IPv6:2607:f8b0:400e:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 01F4B159B for ; Mon, 20 Jan 2014 20:01:56 +0000 (UTC) Received: by mail-pd0-f173.google.com with SMTP id y10so3680328pdj.18 for ; Mon, 20 Jan 2014 12:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9ShLriB+xielHAb0xKud66z1anqKPqvC9UH5mpdfA7s=; b=WWXQ1DVj36VEHBTNWi9KwcEB0TyhQVuVF69VWjlqaGB7K6gP+awvCnWe9oc/KEjwtl pSE8cxOE5/IJ+rXmPZAJBmD0vAz3XMVW4+e7n4GYbgDiIvP3JfKFWzQFUOw3gq0Q3pgv gCFRBGQGlyPoyXOGzS9Jqnu2fab78xCqzJreP6ob5RfteJMjcN/FW5fnkcCmXnT0IkcS u17D0tFp9xPdoAsgddeESNOfXkXaneTCh8134kCJ1iarJXoGgt4VuWHTNtXBraJuKSwt 9blstXhm4AIOamNhR3Uj1fYYB7v9JnHRBIaOhXUjl1kvjKtJQvRx8Vf6UQI3TCXzyj4L 9U7g== MIME-Version: 1.0 X-Received: by 10.66.241.73 with SMTP id wg9mr20698389pac.69.1390248116435; Mon, 20 Jan 2014 12:01:56 -0800 (PST) Received: by 10.68.155.38 with HTTP; Mon, 20 Jan 2014 12:01:56 -0800 (PST) In-Reply-To: References: <52DD7C56.4090804@semmy.ru> Date: Mon, 20 Jan 2014 15:01:56 -0500 Message-ID: Subject: Fwd: bhyve: can't to passthru bge(4) card From: Aryeh Friedman To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 20:01:57 -0000 ---------- Forwarded message ---------- From: Aryeh Friedman Date: Mon, Jan 20, 2014 at 3:01 PM Subject: Re: bhyve: can't to passthru bge(4) card To: Sergey Matveychuk A question if you make the NIC the bridge device in PetiteCloud (we will have physical NIC support in the next few tertiary versions but for now your stuck with something like the manual version above) does it work any better.... I suspect you have the networking set up wrong before calling bhyve On Mon, Jan 20, 2014 at 2:43 PM, Sergey Matveychuk wrote: > Hi. > > I try to passthru bge: > % pciconf -vl > ... > ppt0@pci0:3:0:1: class=0x020000 card=0x169d103c chip=0x165714e4 > rev=0x01 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'NetXtreme BCM5719 Gigabit Ethernet PCIe' > class = network > subclass = ethernet > ... > % cat /boot/loader.conf > vmm_load="yes" > pptdevs="3/0/1" > > % bhyve -c ${VM_CPUNUM} -m ${VM_MEMSIZE} -AI -HP -g0 \ > -s 0:0,hostbridge \ > -s 3:0,passthru,3/0/1 \ > -s 2:0,virtio-blk,${VM_DISK} \ > -S 31,uart,${VM_CONSOLE} \ > ${VM_NAME} > > And I got this on boot: > > bge0: mem > 0xc0010000-0xc001ffff,0xc0020000-0xc002ffff,0xc0030000-0xc003ffff irq 36 > at device 3.0 on pci0 > bge0: APE FW version: NCSI v1.0.60.0 > bge0: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E > bge0: Try again > bge0: Try again > bge0: Try again > bge0: Try again > bge0: attaching PHYs failed > device_attach: bge0 attach returned 6 > > I used this as an instruction: https://wiki.freebsd.org/bhyve/pci_passthru > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization- > unsubscribe@freebsd.org" > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org