From owner-freebsd-virtualization@freebsd.org Thu Mar 1 11:14:07 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 AFAA0F3A532 for ; Thu, 1 Mar 2018 11:14:07 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 219437CCCF for ; Thu, 1 Mar 2018 11:14:06 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (mh0.gentlemail.de [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id w21BE4P8033714; Thu, 1 Mar 2018 12:14:04 +0100 (CET) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 45ABD2B7; Thu, 1 Mar 2018 12:14:04 +0100 (CET) Message-ID: <5A97E07B.7060000@omnilan.de> Date: Thu, 01 Mar 2018 12:14:03 +0100 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Ludovit Koren CC: freebsd-virtualization@freebsd.org Subject: Re: bhyve - windows7 installation References: <86inagi7jy.fsf@gmail.com> In-Reply-To: <86inagi7jy.fsf@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Thu, 01 Mar 2018 12:14:04 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) 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 11:14:08 -0000 Bezüglich Ludovit Koren's Nachricht vom 01.03.2018 08:22 (localtime): > > Hi, > > on FreeBSD 11.1-STABLE #0 r329013, I was trying to install windows7 > using bhyve. I run the following commands: > > mkdir -p iso-remaster/virtio > /usr/local/bin/7z x en_windows_7_professional_with_sp1_vl_build_x64_dvd_u_677791.iso > -oiso-remaster > tar xf virtio-win-0.1.141.iso -C iso-remaster/virtio/ > mkisofs -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -v -V "Custom" -udf -boot-info-table -eltorito-alt-boot -eltorito-platform 0xEF -eltorito-boot efi/microsoft/boot/efisys_noprompt.bin -no-emul-boot -o install_windows_w7_professional_x64.iso iso-remaster > > ifconfig bridge0 create > ifconfig bridge0 up > ifconfig tap1 create > ifconfig bridge0 addm em0 addm tap1 > > and I was able to install windows successfully: > > bhyve -S -c 1 -s 0,hostbridge -s 3,ahci-hd,/dev/zvol/zroot/msw7,sectorsize=512 -s 4,ahci-cd,install_windows_w7_professional_x64.iso -s 2:0,virtio-net,tap1 -s 31,lpc -s 29,fbuf,tcp=0.0.0.0:5900,w=1366,h=768,wait -l com1,/dev/nmdm0A -l com2,/dev/nmdm1A -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 4G -H -w windows7 > > > The windows seems to be working fine. The problem is, I have no working > network interface, nor can I install one. > > I do not know, what I am doing wrong. Any help appreciated. If you want to make windows Setup aware of 3rd-party drivers, you need to do that with some unattended answer file. Simply adding driver files to the same setup source won't work (while there is/was a standard path for such things – $$\$OEM$ or the like – but I don't remember out of mind and I'm even unsure if this was NT only...) I'm either attaching a second ODD or another HDD, wich provides driver files on FAT32 – until I find some time to improve C skills and write floppy support for bhyve(8) ;-) (which would be a very good practicing project imho). I'd suggest the following mass storage config (adding a second ODD with the virtio-141 drivers): -s 3,ahci,hd:/dev/zvol/zroot/msw7,sectorsize=512/8192,cd:./en_windows_7_professional_with_sp1_vl_build_x64_dvd_u_677791.iso,cd:./virtio-win-0.1.141.iso 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). Hth, -harry