From owner-freebsd-virtualization@FreeBSD.ORG Thu Jan 23 13:14:06 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 045DC7C5 for ; Thu, 23 Jan 2014 13:14:06 +0000 (UTC) Received: from mail-vc0-x232.google.com (mail-vc0-x232.google.com [IPv6:2607:f8b0:400c:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AA35B1DB0 for ; Thu, 23 Jan 2014 13:14:05 +0000 (UTC) Received: by mail-vc0-f178.google.com with SMTP id ik5so1044978vcb.9 for ; Thu, 23 Jan 2014 05:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=m4Bj+5wEJquBtYyHZ4ewGOQpgR1HzIJUbQmkUEnRLbI=; b=HT+ntTR0VusOuU7YsHF9lOQBCxs8lLRQARHkX1RR0VQoAiU14/spoBwJC2TWx+F3Im DAr/RESn9IJqfAsLK5XxSCvMkSBzdD63bc+LuhTj4H/1GS7fSTS840ZwIXVSG3lRrKxO cp6zNupPcuWZRrnuHu2I5WQ83XFX1iP3raLo0xLrazZsUAgJ5Zm0SR1Lvd2P9hnr5f8W zWelYwYf2JkfJvl7p70yzuFrQnMWB1eV5GJO0WCOE04TyY12TZQHMeIVGeqJ6uXfFPt5 ORW7bTQiGEUB1PGUO/cJXDfKVPTq1bFMw5IzpwcRemI0X6BkBTeOJ7apL73JppzdG+7E 621A== MIME-Version: 1.0 X-Received: by 10.58.146.5 with SMTP id sy5mr84510veb.43.1390482844746; Thu, 23 Jan 2014 05:14:04 -0800 (PST) Received: by 10.220.0.137 with HTTP; Thu, 23 Jan 2014 05:14:04 -0800 (PST) In-Reply-To: References: <52E0C1D4.9000304@freebsd.org> <52E0D1BB.2050807@callfortesting.org> Date: Thu, 23 Jan 2014 14:14:04 +0100 Message-ID: Subject: Re: Linux on BHyVe in 10.0-RELEASE From: =?ISO-8859-1?Q?Jonas_B=FClow?= To: Aryeh Friedman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 23 Jan 2014 13:14:06 -0000 The commands used are: #grub-bhyve -r cd0 -m ./vm/lin1/device.map -M 4096 lin1 where device.map is: #cat vm/lin1/device.map (hd0) ./vm/lin1/lin1.img (cd0) ./vm/lin1/lin1.iso Bhyve is started with: #/usr/sbin/bhyve -c 1 -m 2048 -A -I -H -s 0,hostbridge -s 2,virtio-blk,./vm/lin1/lin1.img -s 3,virtio-net,tap1 -s 4,ahci-cd,./vm/lin1/lin1.iso -S 31,uart,stdio lin1 On Thu, Jan 23, 2014 at 11:37 AM, Aryeh Friedman wrote: > > > > On Thu, Jan 23, 2014 at 5:05 AM, Jonas B=FClow wro= te: > >> I do use the precanned bhyve-script "vm0" (if that is what you mean). It >> explicitly mentions linux support. bhyveload can't be user for other ima= ges >> than FreeBSD so I don't know how to use your script for a linux OS >> > > Since I have not used bhyve-grub personally yet I can not recommend what > the correct loader command line but if bhyve-script is in anyway related = to > vmrun.sh I would be highly suspicious of any command lines you manage to > extract from it since they are often not the ones actual called. > > >> >> I assume the image is file backed as I have not assigned a dedicated >> partition to the vm (and I don't know how to do that). >> > > You can keep them anywhere no need for a special volume (mater of fact I > was just reusing the name of one of the diretoriess that PC creates durin= g > install even without it being a different vol [just assumes any FS > boundaries are the host OS's problem)... you can put the disk image any > where (your home directory would be fine for example) >