From owner-freebsd-virtualization@FreeBSD.ORG Thu Jan 23 10:05:20 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5EE970F for ; Thu, 23 Jan 2014 10:05:20 +0000 (UTC) Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [IPv6:2607:f8b0:400c:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7789A1A35 for ; Thu, 23 Jan 2014 10:05:20 +0000 (UTC) Received: by mail-vb0-f47.google.com with SMTP id p6so921962vbe.34 for ; Thu, 23 Jan 2014 02:05:19 -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=MhRSBNOcG2PMZ3Q9qNyS+CXS/p6Jg/7EypEkZuPBn3M=; b=X5QHN6OSqgr2gc7aKN5Wt7KZQTLoPHNy+nnaTQrBY6f/D5ZzQGXpNdMvOkhKJ3cTOn EJ0rDniO5zmWT4v32f/TyiHTo3TkGNfWjxOMtxRri7re6q71JWqY2mbi7+TX8I+XEm3/ tT1eVIV1lo+r4geqztSfCcmet7AbMQEM6QX/9ZNR1Wpde4dkeshliqNI6bY0MSlPlfNK 070rNSX3buLdsNNjmQyEBCW5Huft/mQpznVsE0F04wQH3VuCKHvedU5BgcTjEWsWpPai BNFmswpcjBSi2h6kJjilpcfL3OOwY+3ynWzpmwJjj1b7daTEOfpvlCL+NAx4+LkrDEkT fJEA== MIME-Version: 1.0 X-Received: by 10.220.139.136 with SMTP id e8mr1118236vcu.34.1390471519485; Thu, 23 Jan 2014 02:05:19 -0800 (PST) Received: by 10.220.0.137 with HTTP; Thu, 23 Jan 2014 02:05:19 -0800 (PST) In-Reply-To: References: <52E0C1D4.9000304@freebsd.org> <52E0D1BB.2050807@callfortesting.org> Date: Thu, 23 Jan 2014 11:05:19 +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 10:05:20 -0000 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 images than FreeBSD so I don't know how to use your script for a linux OS. 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). /J On Thu, Jan 23, 2014 at 10:51 AM, Aryeh Friedman wrote: > Sorry for the repost > > I am currently attempting to import a linux instance into bhyve via > petitecloud but here is the script that PC would generate for such a > instance tell me if something like it works: (just replace the mentions o= f > freebsd with linux ones): > > #!/bin/sh > > pw lock petitecloud > truncate -s 10G /vms/pri/jf4aibtonk > ifconfig tap202 destroy > ifconfig tap202 create > ifconfig tap202 up > sleep 5 > ifconfig bridge0 addm tap202 up > > /usr/sbin/bhyveload -m 512 -d /vms/cds/FreeBSD-10.0-BETA2-amd64-disc1.iso > jf4aibtonk > /usr/sbin/bhyve -c 1 -m 512 -AI -H -P -g 0 -s 0:0,hostbridge -s > 1:0,virtio-net,tap202 -s 2:0,virtio-blk,/vms/pri/jf4aibtonk -s > 3:0,virtio-blk,/vms/cds/FreeBSD-10.0-BETA2-amd64-disc1.iso -S > 31,uart,stdio jf4aibtonk > echo $!>/var/run/petitecloud/jf4aibtonk > ifconfig tap202 destroy > ifconfig tap202 create > ifconfig tap202 up > sleep 5 > ifconfig bridge0 addm tap202 up > > /usr/sbin/bhyveload -m 512 -d /vms/pri/jf4aibtonk jf4aibtonk > /usr/sbin/bhyve -c 1 -m 512 -AI -H -P -g 0 -s 0:0,hostbridge -s > 1:0,virtio-net,tap202 -s 2:0,virtio-blk,/vms/pri/jf4aibtonk -S > 31,uart,stdio jf4aibtonk > echo $!>/var/run/petitecloud/jf4aibtonk > > > I suggest try it via PC or some other precanned script and then debug and > adopt from there (i.e. use the assumption that everything is file backed > not disk backed until you can isolate the issue) > > > > > On Thu, Jan 23, 2014 at 4:45 AM, Jonas B=FClow wro= te: > >> Can you elaborate more what you mean? >> >> I currently do: >> >> cp vm0 lin1 >> ...edit lin1 and set linux and ubuntu13.10 >> sh lin1 iso >> =3D> failing install >> >> /J >> >> >> >> On Thu, Jan 23, 2014 at 10:38 AM, Aryeh Friedman < >> aryeh.friedman@gmail.com> wrote: >> >>> Try: >>> >>> truncat --size 10G disk.img >>> bhyve.... -d disk.img >>> >>> >>> On Thu, Jan 23, 2014 at 4:37 AM, Jonas B=FClow w= rote: >>> >>>> I tried to run from an USB drive with a standard file backend (non >>>> ZFS?). >>>> >>>> Mounted as: >>>> >>>> /dev/da5p1 on /mnt (ufs, local, soft-updates) >>>> >>>> Installation of ubuntu still fails when trying to install the grub >>>> bootloader. >>>> >>>> /J >>>> >>>> >>>> On Thu, Jan 23, 2014 at 9:58 AM, Aryeh Friedman < >>>> aryeh.friedman@gmail.com> wrote: >>>> >>>>> Does using the standard file backed bhye work? >>>>> >>>>> >>>>> On Thu, Jan 23, 2014 at 3:56 AM, Jonas B=FClow wrote: >>>>> >>>>>> fwiw, I do not have any /dev/zvol in the host. I'm using a vanilla >>>>>> FreeBSD >>>>>> 10.0-Release install using ZFS. >>>>>> >>>>>> /J >>>>>> >>>>>> >>>>>> On Thu, Jan 23, 2014 at 9:24 AM, Michael Dexter >>>>>> wrote: >>>>>> >>>>>> > >>>>>> > Here's what I've found so far: >>>>>> > >>>>>> > vmrun.sh does not like zvols and I am hoping for: >>>>>> > >>>>>> > sh vmrun.sh -m 1024 -d /dev/zvol/zroot/vm3 vm3 >>>>>> > >>>>>> > It gets as far as: >>>>>> > >>>>>> > Writing partition tables [In Progress ] >>>>>> > Initializing ada0p2 [ Failed ] >>>>>> > >>>>>> > I am trying to figure out why. >>>>>> > >>>>>> > What does work for me for FreeBSD VM's is to prepare >>>>>> /dev/zvol/zroot/vm3 >>>>>> > using the bhyve-script approach and then boot it as usual. >>>>>> > >>>>>> > I will include this in an rc version of "bhyve-script" that I hope >>>>>> to >>>>>> > release shortly. It may not be worth adding the functionality to >>>>>> > bhyve-script as it is EOL. >>>>>> > >>>>>> > Michael >>>>>> > >>>>>> > On 1/22/14 11:26 PM, Jonas B=FClow wrote: >>>>>> > > Yes, if "using zvol" is the same thing as using ZFS for the gues= t >>>>>> image. >>>>>> > > >>>>>> > > I tried setting DEVTYPE to "" with the same result. >>>>>> > > >>>>>> > > /J >>>>>> > > >>>>>> > > >>>>>> > > On Thu, Jan 23, 2014 at 8:16 AM, Peter Grehan >>>>> > >>>>>> > wrote: >>>>>> > > >>>>>> > >> Hi Jonas, >>>>>> > >> >>>>>> > >> >>>>>> > >> Installation starts and everything looks good until it tries t= o >>>>>> install >>>>>> > >>> the >>>>>> > >>> grub boot loader. That last step fails. Exiting the installer >>>>>> and >>>>>> > running: >>>>>> > >>> #sh lin1 start >>>>>> > >>> Gives a grub prompt. >>>>>> > >>> >>>>>> > >>> Any hints? >>>>>> > >>> >>>>>> > >> >>>>>> > >> Are you using a zvol for the guest disk image ? >>>>>> > >> >>>>>> > >> later, >>>>>> > >> >>>>>> > >> Peter. >>>>>> > >> >>>>>> > >> >>>>>> > > _______________________________________________ >>>>>> > > freebsd-virtualization@freebsd.org mailing list >>>>>> > > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >>>>>> > > To unsubscribe, send any mail to " >>>>>> > freebsd-virtualization-unsubscribe@freebsd.org" >>>>>> > > >>>>>> > >>>>>> > >>>>>> _______________________________________________ >>>>>> freebsd-virtualization@freebsd.org mailing list >>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >>>>>> To unsubscribe, send any mail to " >>>>>> freebsd-virtualization-unsubscribe@freebsd.org" >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >>>>> >>>> >>>> >>> >>> >>> -- >>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >>> >> >> > > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >