From owner-freebsd-virtualization@freebsd.org Thu Mar 1 09:51:22 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 74F79F2F210 for ; Thu, 1 Mar 2018 09:51:22 +0000 (UTC) (envelope-from artemrts@ukr.net) Received: from frv197.fwdcdn.com (frv197.fwdcdn.com [212.42.77.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10AC378C1F for ; Thu, 1 Mar 2018 09:51:21 +0000 (UTC) (envelope-from artemrts@ukr.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Cc:To:Subject:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+tsJhIpFIqGv/LtIbditN6M7CV9tDebdIBAkfxzygM8=; b=wlI61bViT6dib1S+3GMYCrw/Fc hd4IfAD1klIHxHA+nbeISFaY3lu/bvNh8UdVAyIRf1Mj9z/gF4gZNjWF4yxDxHZwo6afxPtSAudn6 iUx0GYsD92LnytUA/wX6XVxcmC+F6IYvP+Z1hz+ELgLUVLoVNVePePTwpeAx82RdzeBw=; Received: from [10.10.10.52] (helo=frv52.fwdcdn.com) by frv197.fwdcdn.com with smtp ID 1erKrp-000A5t-14 for freebsd-virtualization@freebsd.org; Thu, 01 Mar 2018 11:51:13 +0200 Date: Thu, 01 Mar 2018 11:51:12 +0200 From: wishmaster Subject: Re: bhyve - windows7 installation To: Ludovit Koren Cc: freebsd-virtualization@freebsd.org X-Mailer: mail.ukr.net 5.0 Message-Id: <1519897621.423119418.rh2w2yz2@frv52.fwdcdn.com> In-Reply-To: <86inagi7jy.fsf@gmail.com> References: <86inagi7jy.fsf@gmail.com> X-Reply-Action: reply Received: from artemrts@ukr.net by frv52.fwdcdn.com; Thu, 01 Mar 2018 11:51:12 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary 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 09:51:22 -0000 --- Original message --- From: "Ludovit Koren" Date: 1 March 2018, 11:40:05 > > > 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. Just download virtio driver from here https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.141-1/ Then add this ISO as ahci-cd to your virtual machine, next from Windows go to the Hardware Manager and update virtio driver for Network Card. -- Vitaly