From owner-freebsd-virtualization@freebsd.org Thu Mar 1 18:29:10 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BF94F41B0C for ; Thu, 1 Mar 2018 18:29:10 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A255573BDE for ; Thu, 1 Mar 2018 18:29:09 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id 188so13968055wme.1 for ; Thu, 01 Mar 2018 10:29:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:user-mail-address:date:in-reply-to :message-id:user-agent:mime-version; bh=vbu1YQ9jjnIz12vziN1kXD91ZBBjYIV/3j9kip+7mQg=; b=pPwDGlrz1S+bmzKF1SmFDMxd8V37AF5QJ4kK58BFriW69QA6cMI+s7u1V7PScAopv8 9gJ63wFrDslbnZBLTNimfuljl8gG/yBGcZ6VlVJDOXqxbc/72ieqe0Jg49peLkllr0gE gYE+qRjpqiE4am8rR2A7Xxh4nzwD5AwGNYChjkPO6FV3clS7tlQFegpt7FgR0yMU1mjQ h8w+rTGT8fQXHKIS/dzJYzh/+8i9BW6CPK7UH0XBphMjTeQ3gleQmiKSCI5cp+nuQ0Dm 26/+pvpNkk7/qH83k9FEdJ2L7zgNGj+d/1xoC/r2QDXCzJAmAqEyXrOnblk3lAgNaNhO Hzxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:user-mail-address :date:in-reply-to:message-id:user-agent:mime-version; bh=vbu1YQ9jjnIz12vziN1kXD91ZBBjYIV/3j9kip+7mQg=; b=sEStRwWevaJt6CnohShIEcGwVETgvkLqZsmKuMCDCzG7MThZdSQN7PJRgLe4S/LH1P /Cf956+jxXprDUM0zzZIk5UThaCzamaJaOp/YgYUxB+m21rlf9d7W9LWwvY3+u2gyHMq CzvR/iaqvMa6xCiUbqkGNd9c8ZgQRAQmJ6E//QS2ZGHptvhidVVJZv5jVPxkiZccyLOr 5vEpXVNoKokfaGmxcVwt8ddwwVroFouK80BmrSoz0OapWOkFwCQBPNEpdZTasrlDRNoT CGhP7XLv031c67QXx+pjJR03pOrr84Bb+vSxKHShPVegfp1yPNFqM/qx0Xxgh1b+5eez KpqQ== X-Gm-Message-State: AElRT7G5Iqbn5wA4F8vZ+fhNC8bE6OS4rzHaA58tZs+E1BarE7AeKEuH QIOo+6QfUemozr2D1bGwUytQLw== X-Google-Smtp-Source: AG47ELslq71M5Uhxnuje1g3Hva7yfQev3Ru1yYEwfSAPbhKh5GYcgmBOUr6+BaX6taRQ9NINqr1UcQ== X-Received: by 10.28.3.4 with SMTP id 4mr2738990wmd.60.1519928947978; Thu, 01 Mar 2018 10:29:07 -0800 (PST) Received: from jedi.localdomain (adsl-dyn-247.95-102-174.t-com.sk. [95.102.174.247]) by smtp.gmail.com with ESMTPSA id 186sm2504735wmm.32.2018.03.01.10.29.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 10:29:07 -0800 (PST) Received: by jedi.localdomain (Postfix, from userid 1001) id E9116B29; Thu, 1 Mar 2018 19:29:05 +0100 (CET) From: Ludovit Koren To: "Rodney W. Grimes" Cc: Harry Schmalzbauer , freebsd-virtualization@freebsd.org Subject: Re: bhyve - windows7 installation References: <201803011406.w21E62La025815@pdx.rh.CN85.dnsmgr.net> User-Mail-Address: ludovit.koren@gmail.com Date: Thu, 01 Mar 2018 19:29:05 +0100 In-Reply-To: <201803011406.w21E62La025815@pdx.rh.CN85.dnsmgr.net> (Rodney W. Grimes's message of "Thu, 1 Mar 2018 06:06:02 -0800 (PST)") Message-ID: <86606fir9q.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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: Thu, 01 Mar 2018 18:29:10 -0000 >>>>> Rodney W Grimes writes: >> >>>>> Harry Schmalzbauer writes: >> >> > Bez?glich Ludovit Koren's Nachricht vom 01.03.2018 08:22 (localtime): >> >> >> >> Hi, > ... >> > After connecting via VNC the vm boots from DVD and you see the setup >> > program. You won't have mouse support, but keyboard's been working, right? >> > So you have been able to finsih setup and login via VNC, still no mouse. >> > Use your existing setup or do a new one to make the last assumptions true. >> > If you booted with the two ISO images, use the keyboard to start >> > "control panel/Device Manager", where you should find the unattached >> > virtio NIC. Installt/Update the driver from there, you can tell the >> > assistant to use e:\ as source (your 2nd. ODD). >> >> Thank you very much. It is up and running. >> >> I have an additional question. When I try to run: >> >> bhyve -c 1 -s 0,hostbridge -s >> 3,ahci-hd,/dev/zvol/zroot/msw7,sectorsize=512/8192 -s >> 10,virtio-net,tap1 -s 31,lpc -s >> 29,fbuf,tcp=0.0.0.0:5900,w=1366,h=768,wait -s 26,passthru,0/26/0 -S >> -l com1,/dev/nmdm0A -l com2,/dev/nmdm1A -l >> bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 4G -H -w >> windows7 >> bhyve: passthru device 0/26/0 BAR 0: base 0xd4739000 or size 0x400 not page aligned > ^^^^^ >> >> bhyve: failed to initialize BARs for PCI 0/26/0 >> >> >> >> pciconf -vlb ppt0@pci0:0:26:0 >> ppt0@pci0:0:26:0: class=0x0c0320 card=0x17df103c chip=0x1e2d8086 rev=0x04 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '7 Series/C216 Chipset Family USB Enhanced Host Controller' >> class = serial bus >> subclass = USB >> bar [10] = type Memory, range 32, base 0xd4739000, size 1024, enabled > ^^^^^^^^^^ > Due to the design of the IOMMU you can only manage IO space in page > (4096 on x86) granually sizes. The device your trying to pass in > has a 1024 byte memory region that is part of a 4096 byte page that > may have other things in it. > At this time bhyve does not have any way to deal with this, though some > other hypervisors have techniques that make this work. I used VirtualBox. I gave a try to bhyve. I am using FreeBSD for all work I need. I need windows for some tasks: some VPN (I am not able to connect with vpnc, openconnect, racoon, strongswan), Iphone backup, etc. I am not able to use a single hypervisor for all of that. Could you recommend one? thanks. regards, lk > I do not have or know of any list of USB controller cards that > have 4k aligned and 4k sized BAR's. >> The intention is to have usb device in the windows. > A discussion recently in the developers conference call > touched on this very subject. The basic design would be > rather than pass in a whole controller would be to add > the ability to pass in individual devices. >> Any suggestions? > Are you trying to pass in a motherboard resource? > You might find an add on USB card that has proper BAR > size and alignment, though I have no tips for which > ones do or dont. > It may also be possible to hack the code to ignore the > error IF SECRUITY IS OF NO CONCERN, as this hack would > allow the VM guest to access devices outside of its > domain. I am uncertain if this might have other side > effects as to loss of access to devices in the same > page from the host perspective. > -- > Rod Grimes rgrimes@freebsd.org