From owner-freebsd-virtualization@freebsd.org Tue Oct 9 09:19:39 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 8AE3210C6C0B for ; Tue, 9 Oct 2018 09:19:39 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-a.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 "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1089C7EAB1 for ; Tue, 9 Oct 2018 09:19:38 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-a.userve.net (Postfix) with ESMTPS id 099E99A; Tue, 9 Oct 2018 10:19:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1539076777; bh=hjOB6sXn/Hlxc0eVevXsg6iXFsUEFcKZcm3p+zKC1VM=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=VsPxmQY82mJjwbJ+lmCBR86kMayCIrzMiTkPp5J0+6ijHDW+xRnRDXo7+kP2ZxfBw HgckWNhNyK2qBRdtYx68BgeZY2Z6dmhjP5Ut4GCGZVJVk/FJavO/SC8orhN045JDNd iQIWnTCzNBmmKpQg4NIvIjYkizEfk3a9O3/y8nyM= 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; Tue, 9 Oct 2018 10:19:36 +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; Tue, 9 Oct 2018 10:19:36 +0100 From: Matt Churchyard To: Victor Sudakov , =?iso-8859-1?Q?Josias_L=2E_Gon=E7alves?= CC: "freebsd-virtualization@freebsd.org" Subject: RE: [vm-bhyve] Does anyone have a vm template for Linux Mint ? Thread-Topic: [vm-bhyve] Does anyone have a vm template for Linux Mint ? Thread-Index: AQHUXX+uEzZxL7GG50CRQL6QhRq5daUVXQDcgAAASQCAAAQKgIAAZwaAgABYRYCAAH+XgA== Date: Tue, 9 Oct 2018 09:19:36 +0000 Message-ID: References: <20181006141906.GA10597@admin.sibptus.ru> <20181008133604.GA77358@admin.sibptus.ru> <20181008143806.GA78665@admin.sibptus.ru> <20181008145233.GA78859@admin.sibptus.ru> <20181009021713.GA88207@admin.sibptus.ru> In-Reply-To: <20181009021713.GA88207@admin.sibptus.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="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 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: Tue, 09 Oct 2018 09:19:39 -0000 Josias L. Gon=E7alves wrote: > > > I get the same blank rectangle with Ubuntu (vm install mint > > > ubuntu-16.04-desktop-amd64.iso) > > > So there must be something amiss in my setup. >=20 >=20 > Verify if everything is installed: > pkg install bhyve-firmware-1.0_1 bhyve-rc-3 grub2-bhyve-0.40_5 > libhyve-remote-0.1.4.2 uefi-edk2-bhyve-0.1,1 uefi-edk2-bhyve-csm-0.1,1 Well, not everything from your list. I have currently >root@vas:~ # pkg info -a | egrep 'bhyve|uefi' >grub2-bhyve-0.40_4 Grub-emu loader for bhyve >uefi-edk2-bhyve-0.1,1 UEFI-EDK2 firmware for bhyve >uefi-edk2-bhyve-csm-0.1,1 UEFI-EDK2 firmware for bhyve with CSM >vm-bhyve-1.2.3 Management system for bhyve virtual machine= s >root@vas:~ # >bhyve-firmware: is a metaport for uefi-edk2-bhyve and uefi-edk2-bhyve-csm,= I already have them both installed. But no harm installing it also. >bhyve-rc-3: "FreeBSD RC script for starting bhyve guests in tmux" - I defi= nitely don't need it because I use vm-bhyve for VM management. >libhyve-remote-0.1.4.2: well, maybe this one is the culprit. We shall see = tonight if its presence makes any difference. As you mention all the required firmware is installed by the bhyve-firmware= port. You do not need to install the edk2 ports. Grub2 is not required either if you're using UEFI, although you'll need it = to run any guests with loader=3D"grub" and there's no harm having it around= if you're using bhyve. I've never heard of libhyve-remote until now. This is an additional compone= nt (something to do with FreeNAS by the look of it) and has nothing to do w= ith the actual running of bhyve or vm-bhyve. Personally I've never had success with the CSM firmware (other that with Sm= artOS which was following instructions from the original bhyve devs). My un= derstanding is that CSM is supposed to emulate a traditional BIOS, so anyth= ing that would boot on a BIOS should work (or at least try to boot). Howeve= r I usually just get a blank screen and nothing else. I have successfully** installed Ubuntu 16.04 (via VNC) using the following = template, which is just a basic UEFI config with virtio network/disk. uefi=3D"yes" graphics=3D"yes" xhci_mouse=3D"yes" cpu=3D2 memory=3D2G network0_type=3D"virtio-net" network0_switch=3D"public" disk0_type=3D"virtio-blk" disk0_name=3D"disk0.img" **I did have two fairly annoying issues getting 16.04 to work - 1) After installation it seemed to refuse to reboot without me removing the= install CD, which I obviously couldn't do. I ended up powering off the sys= tem manually with "vm poweroff guest" 2) It then would not boot due to the fact that Ubuntu 16.04 puts the bootlo= ader in a non-default location, then uses efivars to tell UEFI how to find = it. Unfortunately the bhyve EFI firmware still does not save efivars, so an= y specific boot options set by a guest are lost on restart. I had to escape= to the EFI shell and manually choose the EFI/ubuntu/grubx64.efi loader. Se= e my post #11 on this forum post for more details - https://forums.freebsd.= org/threads/how-to-install-a-ubuntu-guest-in-bhyve.66767/ Matt -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ _______________________________________________ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/m= ailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs= d.org"