From owner-freebsd-questions@freebsd.org Wed Feb 17 21:04:59 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 109DB532EAE for ; Wed, 17 Feb 2021 21:04:59 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.holgerdanske.com", Issuer "www.holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dgr2L1TmMz3P2h for ; Wed, 17 Feb 2021 21:04:57 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Wed, 17 Feb 2021 13:04:44 -0800 Subject: Re: Slight OT: How to run existing FreeBSD on windows as a VM To: freebsd-questions@freebsd.org References: From: David Christensen Message-ID: <97dd9b19-6f6b-8c81-9f06-c9e81fa403ce@holgerdanske.com> Date: Wed, 17 Feb 2021 13:04:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Dgr2L1TmMz3P2h X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 184.105.128.27) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-2.10 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[184.105.128.27:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[184.105.128.27:from:127.0.2.255]; ARC_NA(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[holgerdanske.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2021 21:04:59 -0000 On 2021-02-17 00:21, Aryeh Friedman wrote: > I have two SSD's one that has FreeBSD installed on it and one that has > WIndows 10 on it. > > I want to run the windows SSD as a VM on FreeBSD and the FreeBSD on windows > as a VM. How can I do this without having to reinstall either one. I am > pretty sure how to do the first case since I have played with bhyve quiet > extensively including doing by hand windows VM's on it and am pretty sure > all I have to do is point bhyve to the right /dev node (I have done this > before with raw disks for FreeBSD but not windows). > > I am completely unfamiliar with how to do VM's on windows though and except > for knowing there are hypervisors for it am completely clueless about how > to do that end. If you want to convert the FreeBSD disk to a VirtualBox image file -- e.g. two FreeBSD machines that diverge when operated -- I would try the VBoxManage 'convertfromraw' command: https://www.virtualbox.org/manual/UserManual.html#vboxmanage-convertfromraw If you want to run the FreeBSD drive inside VirtualBox on Windows -- e.g. one machine that can be operated in one of two ways but retain its identity -- I would try "raw hard disk access": https://www.virtualbox.org/manual/UserManual.html#rawdisk In either case, you may need to adjust rc.conf(5) to deal with network drivers and/or settings. David