From owner-freebsd-virtualization@freebsd.org Wed Aug 10 12:00:55 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04DC6BB5767 for ; Wed, 10 Aug 2016 12:00:55 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD9111896 for ; Wed, 10 Aug 2016 12:00:54 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.15.1/8.15.1) with ESMTPS id u7AC0e2n004603 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 10 Aug 2016 13:00:41 +0100 (BST) (envelope-from matt.churchyard@userve.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1470830443; bh=didPcWr5y4AL/KFCHydjqj+2Pwaxxs20XauRCNIxhAo=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=IW7p4yL7xSccPA6ooswlWSgD0ZPrZ4GNtmCa9dR2AXQisllxjmSPsmBHGEIl+TSMF HjFOIC9pspWFV01ObZmWtUCOT4iyriS7UmTeWgoMsIjwLSAivEgpgLfo80QTuvq8WQ C0uBLbQJjYtNtz+vFIR/li3hC0+gzzKuyfdg6iVI= Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.847.32; Wed, 10 Aug 2016 13:00:35 +0100 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0847.030; Wed, 10 Aug 2016 13:00:34 +0100 From: Matt Churchyard To: Victor Sudakov CC: "freebsd-virtualization@freebsd.org" Subject: RE: Bhyve tests and findings Thread-Topic: Bhyve tests and findings Thread-Index: AQHR7kRdr3sAT9ONiUKmemTIvMbYHaA49GsAgAAiQQCAAG4VAIAAUWKAgAAKdYCAAAFIAIAGNT6AgAAx3aCAABVKgIAAKaBAgADx7gCAAKa/oA== Date: Wed, 10 Aug 2016 12:00:34 +0000 Message-ID: <75264feddcff47bf920081457bbd3e7b@SERVER.ad.usd-group.com> References: <386acc93-afea-9c7e-bcb0-401d1f71fa1f@freebsd.org> <20160804205702.Horde.cclsReqAJZ4gP-yp7ySWYDW@mail.eeeit.de> <20160805013102.GA88553@admin.sibptus.transneft.ru> <20160805062219.GM148@e-new.0x20.net> <20160805065945.GA98590@admin.sibptus.transneft.ru> <20160805070420.GN148@e-new.0x20.net> <20160809055227.GA68689@admin.sibptus.transneft.ru> <008d6f674dd34becb787c2153029b0f4@SERVER.ad.usd-group.com> <20160809100707.GA78888@admin.sibptus.transneft.ru> <6b97a900f4c446fd875b080780f6938b@SERVER.ad.usd-group.com> <20160810030200.GA90959@admin.sibptus.transneft.ru> In-Reply-To: <20160810030200.GA90959@admin.sibptus.transneft.ru> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 10 Aug 2016 12:00:55 -0000 > > > > > >=20 > > > > > > > uefi=3D"yes" > > > > > > > graphics=3D"yes" > > > > > >=20 > > > > > > Dear Colleagues, > > > > > >=20 > > > > > > Can I enjoy and test all those nice "UEFI-GOP" features on a=20 > > > > > > 10.3-RELEASE system, or do I have to install CURRENT for that? > > > > >=20 > > > > > AFAIK you can checkout usr.sbin/bhyve from the 11 branch and=20 > > > > > compile it on 10.3. > > > >=20 > > > > I'm not sure how to compile something from a different branch=20 > > > > without compiling the whole world. make what? > > >=20 > > > For bhyve it's easy. Check out the sources, go to usr.sbin/bhyve=20 > > > and run > > >=20 > > > make depend; make obj; make; make install.=20 > >=20 > > >Unfortunately, after all my efforts, with libvmmapi and bhyve=20 > > >compiled from CURRENT sources: > >=20 > > >Aug 09 12:46:52: warning; UEFI graphics is only available in=20 > > >FreeBSD 11 and newer Aug 09 12:46:52: booting > >=20 > > >Bummer! > >=20 > > It's possible that you do have a bhyve system with graphics support. Un= fortunately vm-bhyve isn't aimed at users who have manually merged changes,= and will blindly tell anyone that isn't running 11+ that they don't have g= raphics support.=20 > >=20 > > You have a couple of options - > >=20 > > 1) Run bhyve manually rather than using vm-bhyve > > 2) Upgrade to the 11 beta > > 3) Modify vm-bhyve to not automatically skip graphics support if the=20 > > version is less than 11 >=20 > >Aha! I've commented out the version check from vm-run, and now when=20 > >trying to install, I get: >=20 > >=C1=D7=C7 09 17:01:05: initialising > >=C1=D7=C7 09 17:01:05: [loader: none] > >=C1=D7=C7 09 17:01:05: [uefi: yes] > >=C1=D7=C7 09 17:01:05: [cpu: 1] > >=C1=D7=C7 09 17:01:05: [memory: 1G] > >=C1=D7=C7 09 17:01:05: [hostbridge: standard] =C1=D7=C7 09 17:01:05: [= com=20 > >ports: com1] =C1=D7=C7 09 17:01:05: [uuid:=20 > >093f9134-5e18-11e6-9502-5404a6b49a66] > >=C1=D7=C7 09 17:01:05: [utctime: no] > >=C1=D7=C7 09 17:01:05: [debug mode: no] > >=C1=D7=C7 09 17:01:05: [primary disk: disk0.img] =C1=D7=C7 09 17:01:05:= =20 > >[primary disk dev: file] =C1=D7=C7 09 17:01:05: generated static mac=20 > >58:9c:fc:03:77:3b (based on 'win:0:1470736865:0') =C1=D7=C7 09 17:01:05:= =20 > >initialising network device tap5 =C1=D7=C7 09 17:01:05: adding tap5 ->=20 > >bridge1 (isolated) =C1=D7=C7 09 17:01:05: dynamically allocated port 590= 0=20 > >for vnc connections =C1=D7=C7 09 17:01:05: booting =C1=D7=C7 09 17:01:05= : [bhyve=20 > >options: -c 1 -m 1G -Hwl bootrom,/d02/vm/.config/BHYVE_UEFI.fd -U=20 > >093f9134-5e18-11e6-9502-5404a6b49a66] > >=C1=D7=C7 09 17:01:05: [bhyve devices: -s 0,hostbridge -s 31,lpc -s=20 > >4:0,ahci-hd,/d02/vm/win/disk0.img -s=20 > >5:0,virtio-net,tap5,mac=3D58:9c:fc:03:77:3b -s=20 > >>6:0,fbuf,tcp=3D0.0.0.0:5900,wait] =C1=D7=C7 09 17:01:05: [bhyve consol= e: -l=20 > >com1,/dev/nmdm0A] =C1=D7=C7 09 17:01:05: [bhyve iso device: -s=20 > >3:0,ahci-cd,/d02/vm/.iso/bhyve_win7_x64.iso] > >=C1=D7=C7 09 17:01:05: starting bhyve (run 1) =C1=D7=C7 09 17:01:05: bhy= ve exited=20 > >with status 1 =C1=D7=C7 09 17:01:05: destroying network device tap5 =C1= =D7=C7 09=20 > >17:01:05: stopped >=20 > Looks like bhyve is exiting immediately. Easiest thing is to probably add= debug=3D"yes" to the guest config file then try and run it again. Any out= put from the bhyve command will be written to bhyve.log (note that's a diff= erent file to vm-bhyve.log). >=20 Tried that. root@vas:/d02/vm/win # file bhyve.log bhyve.log: empty root@vas:/d02/vm/win # more win.conf guest=3D"windows" uefi=3D"yes" graphics=3D"yes" cpu=3D1 memory=3D1G network0_type=3D"virtio-net" network0_switch=3D"isolated" disk0_type=3D"ahci-hd" disk0_name=3D"disk0.img" debug=3D"yes" uuid=3D"093f9134-5e18-11e6-9502-5404a6b49a66" network0_mac=3D"58:9c:fc:03:77:3b" root@vas:/d02/vm/win # >I have tried replicating manually all the options vm is passing to bhyve, = like=20 >bhyve -c 1 -m 1G -Hwl bootrom,/d02/vm/.config/BHYVE_UEFI.fd \ > -U 093f9134-5e18-11e6-9502-5404a6b49a66 \ >> -s 0,hostbridge -s 31,lpc -s 4:0,ahci-hd,/d02/vm/win/disk0.img \ > -s 5:0,virtio-net,tap5,mac=3D58:9c:fc:03:77:3b -s 6:0,fbuf,tcp=3D0= .0.0.0:5900,wait \ > -l com1,stdio \ > -s 3:0,ahci-cd,/d02/vm/.iso/bhyve_win7_x64.iso > But bhyve just spits out the "usage" help (that's why it exits immediatel= y). But I cannot find out what's incorrect with the options. You just need the vm name (win) on the end: # bhyve [options] vm-name Matt -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru