From owner-freebsd-virtualization@freebsd.org Thu Mar 1 13:33:42 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 7A3DDF2A6D7 for ; Thu, 1 Mar 2018 13:33:42 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com [IPv6:2a00:1450:400c:c0c::236]) (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 ED80184FFE for ; Thu, 1 Mar 2018 13:33:41 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: by mail-wr0-x236.google.com with SMTP id v65so6114595wrc.11 for ; Thu, 01 Mar 2018 05:33:41 -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:content-transfer-encoding; bh=tmkvI/I97WiYYU3X2yZU0rV/LwrFRl0jzwVPfZNmmb8=; b=RFa9vhmtCqO0SqDgeT/rlYtrlpuTrs3j6RDfVxulnIU/7J5iQ60TxT6JJGBVwVr1PR 3kZYi6PPHewNn/VQwSwp3byajZs5q1Vk+9Ufpey4iayOO03tqzNUspM5Lkg0TwWyedN4 1m81aPI96FtxYrOwXdkFjdsltYj4aLhMizct/tf5qv6eIt/ebVLthwrawosdvNsbFKam U1wlacKNCEEcERbmpgsLs1WoaLjgq8cGHXHcyAyKv7NSMS4DoOIBxkszGlgojac7y6L6 DH0PThLctOE5JYkExfMuflCOoC7h2vcvzV/JfZnDMY4tBltl1J63mXFe7iW307bTpIU9 E77w== 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 :content-transfer-encoding; bh=tmkvI/I97WiYYU3X2yZU0rV/LwrFRl0jzwVPfZNmmb8=; b=tyQ3osCn3dmGcyRUcboJCwLiP3fNRS90VEAEQjt5/U3oL3bHwI7+cHVfM6Mq7G47io maXFrzsgmmTgS7zYmHXT8yZ3q/wCru+x1A/m6/Nm/Jc6HyuWAklrLuujgR2jjZhYao+q mZthwNxXWVxsONYB27rGCJf/ZTva7AT5XD09ZecLAiEuxeWr/qnW+WsX3lHS5L3tt//x cOCZBnybxNYmjD+9nNI4IkTJ6LfW+oBD0cpwLUZxiWdhVAI67b3q1WZHkBf/mYv8zGy4 gsgOQq1jkCaaYgeK3sia6KdWLB2RaXedrwS0MnVNqBj+KW8wt0a46Ux+nSBOWifrJPWS HRuw== X-Gm-Message-State: APf1xPDBikNyml1OdalNggI2C1iAEBri3Eg9SEJAlZAcNBJXhGobWmlO KqsyC/UckeANHLemjoyyPWxDeA== X-Google-Smtp-Source: AG47ELv7ztnSHNazAD/ymgPi1lfSXmwE5J27WrzYb7qoEp7C8UF6tO966suwmQTSiPOZp4m0qBysLA== X-Received: by 10.223.200.2 with SMTP id d2mr1753438wrh.81.1519911219908; Thu, 01 Mar 2018 05:33:39 -0800 (PST) Received: from jedi.localdomain (178-143-48-243.dynamic.orange.sk. [178.143.48.243]) by smtp.gmail.com with ESMTPSA id w29sm3918252wra.84.2018.03.01.05.33.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 05:33:39 -0800 (PST) Received: by jedi.localdomain (Postfix, from userid 1001) id 4AE47AA0; Thu, 1 Mar 2018 14:33:38 +0100 (CET) From: Ludovit Koren To: Harry Schmalzbauer Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve - windows7 installation References: <86inagi7jy.fsf@gmail.com> <5A97E07B.7060000@omnilan.de> User-Mail-Address: ludovit.koren@gmail.com Date: Thu, 01 Mar 2018 14:33:38 +0100 In-Reply-To: <5A97E07B.7060000@omnilan.de> (Harry Schmalzbauer's message of "Thu, 01 Mar 2018 12:14:03 +0100") Message-ID: <86efl3j4y5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 13:33:42 -0000 >>>>> Harry Schmalzbauer writes: > Bez=C3=BCglich Ludovit Koren's Nachricht vom 01.03.2018 08:22 (local= time): >>=20 >> Hi, >>=20 >> on FreeBSD 11.1-STABLE #0 r329013, I was trying to install windows7 >> using bhyve. I run the following commands: >>=20 >> 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 >>=20 >> ifconfig bridge0 create >> ifconfig bridge0 up >> ifconfig tap1 create >> ifconfig bridge0 addm em0 addm tap1 >>=20 >> and I was able to install windows successfully: >>=20 >> bhyve -S -c 1 -s 0,hostbridge -s >> 3,ahci-hd,/dev/zvol/zroot/msw7,sectorsize=3D512 -s >> 4,ahci-cd,install_windows_w7_professional_x64.iso -s >> 2:0,virtio-net,tap1 -s 31,lpc -s >> 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1366,h=3D768,wait -l com1,/dev/nmdm0A= -l >> com2,/dev/nmdm1A -l >> bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 4G -H -w >> windows7 >>=20 >>=20 >> The windows seems to be working fine. The problem is, I have no work= ing >> network interface, nor can I install one. >>=20 >> 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 =E2=80=93 $$\$OEM$ or th= e like =E2=80=93 > but I don't remember out of mind and I'm even unsure if this was NT o= nly...) > I'm either attaching a second ODD or another HDD, wich provides driver > files on FAT32 =E2=80=93 until I find some time to improve C skills a= nd 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 wi= th > the virtio-141 drivers): > -s > 3,ahci,hd:/dev/zvol/zroot/msw7,sectorsize=3D512/8192,cd:./en_windows_= 7_professional_with_sp1_vl_build_x64_dvd_u_677791.iso,cd:./virtio-win-0.1.1= 41.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, r= ight? > So you have been able to finsih setup and login via VNC, still no mou= se. > 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=3D5= 12/8192 -s 10,virtio-net,tap1 -s 31,lpc -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1= 366,h=3D768,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=3D0x0c0320 card=3D0x17df103c chip=3D0x1e2d808= 6 rev=3D0x04 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '7 Series/C216 Chipset Family USB Enhanced Host Controll= er' class =3D serial bus subclass =3D USB bar [10] =3D type Memory, range 32, base 0xd4739000, size 1024, enabl= ed The intention is to have usb device in the windows. Any suggestions? Thank you very much. Regards, lk