From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 12 09:35:27 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 87347EEE for ; Tue, 12 Feb 2013 09:35:27 +0000 (UTC) (envelope-from hawara@Hawara.com) Received: from hawara.com (hawara.com [188.123.234.55]) by mx1.freebsd.org (Postfix) with ESMTP id BC805FC2 for ; Tue, 12 Feb 2013 09:35:26 +0000 (UTC) Received: from hawara.office.masterhost.ru ([87.242.97.4]) (AUTH: CRAM-MD5 hawara@hawara.com, TLS: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by hawara.com with ESMTPSA; Tue, 12 Feb 2013 13:35:23 +0400 id 000DBB28.511A0CDB.00004325 Message-ID: <511A0CDB.7090309@Hawara.com> Date: Tue, 12 Feb 2013 13:35:23 +0400 From: Marat Bakeev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130111 Thunderbird/17.0.2 MIME-Version: 1.0 To: Neel Natu Subject: Re: vtnet cannot allocate interrupts References: <5118E47B.9020807@Hawara.com> <1399173350.4891.1360607669873.JavaMail.root@daemoninthecloset.org> <51193EED.2070004@hawara.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 12 Feb 2013 09:35:27 -0000 On 12/02/2013 05:21, Neel Natu wrote: > Hi Marat, > > On Mon, Feb 11, 2013 at 10:56 AM, Marat Bakeev wrote: >> 11.02.2013 22:34, Bryan Venteicher пишет: >> >>> Recent bhyve changed to use MSIX instead of MSI. I wonder if that >>> is causing this. If you do: >>> >>> $ BHYVE_USE_MSI=true bhyve ... >>> >>> does it work? >>> >> No, it won`t work, but it seems i had msix disabled in loader.conf, as in >> example from here - http://www.emulsoft.com/bhyve-ufs.txt. >> I enabled msix, and the vtnet device is now loading fine. >> > Glad to hear. > >> Do I need other options in loader.conf, like these?: >> >> smbios.bios.vendor="BHYVE" >> console="userboot" >> hw.pci.honor_msi_blacklist="0" >> > No, you don't need these anymore. > > Here is a simple set of instructions that should get you started: > http://people.freebsd.org/~neel/bhyve/bhyve_instructions.txt > > They do not have all the bells-and-whistles as some of the other > HOWTOs but it should get you a working VM in a short amount of time. > > best > Neel It seems it`s not really working :( I only tested 10-current guest, and only that it boots with vtnet device. The vtnet device appears, but i can`t get it to work - no packets come inside the guest. 10-CURRENT guest: root@vm2:~ # uname -a FreeBSD vm2 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Dec 8 18:14:15 PST 2012 root@bhyve:/usr/obj/usr/src/sys/GENERIC amd64 root@vm2:~ # ifconfig vtnet0: flags=8943 metric 0 mtu 1500 options=80028 ether 00:a0:98:e0:a7:44 inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::2a0:98ff:fee0:a744%vtnet0 prefixlen 64 scopeid 0x1 nd6 options=29 media: Ethernet 1000baseT status: active Host system: [root@spark /usr/src]# ifconfig em0: flags=8943 metric 0 mtu 1500 options=42098 ether 08:60:6e:44:5f:17 inet x.x.x.2 netmask 0xffffffe0 broadcast x.x.x..31 inet6 fe80::a60:6eff:fe44:5f17%em0 prefixlen 64 scopeid 0x1 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active bridge0: flags=8802 metric 0 mtu 1500 ether 02:f3:6c:99:4a:00 nd6 options=29 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0 member: tap3 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 2000000 member: em0 flags=143 ifmaxaddr 0 port 1 priority 128 path cost 20000 tap3: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:8c:3f:30:03 nd6 options=29 media: Ethernet autoselect status: active Opened by PID 63225 [root@spark /usr/src]# ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down root@vm2:~ # ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes load: 0.00 cmd: ping 702 [select] 16.51r 0.00u 0.00s 0% 9888k 0/17 packets received (0.0%) After enabling msix - 9.1 guest won`t boot at all, it cannot attach vtblk: virtio_pci0: port 0x2000-0x201f mem 0x40000000-0x40001fff at device 1.0 on pci0 vtnet0: on virtio_pci0 virtio_pci0: host features: 0x18020 virtio_pci0: negotiated features: 0x18020 virtio_pci0: cannot allocate interrupts vtnet0: cannot allocate virtqueues device_attach: vtnet0 attach returned 6 virtio_pci1: port 0x2040-0x207f at device 2.0 on pci0 vtblk0: on virtio_pci1 virtio_pci1: host features: 0x10000004 virtio_pci1: negotiated features: 0x10000004 virtio_pci1: cannot allocate interrupts vtblk0: cannot allocate virtqueue device_attach: vtblk0 attach returned 6 If I run 9.1 with BHYVE_USE_MSI - vtblk works, but no vtnet device