From owner-freebsd-virtualization@FreeBSD.ORG Thu Jan 23 21:47:27 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 8F35EB20 for ; Thu, 23 Jan 2014 21:47:27 +0000 (UTC) Received: from mail-pd0-x234.google.com (mail-pd0-x234.google.com [IPv6:2607:f8b0:400e:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 54E5D1F86 for ; Thu, 23 Jan 2014 21:47:27 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id x10so2303617pdj.39 for ; Thu, 23 Jan 2014 13:47:27 -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=EjE2PXsfuvAfLA2sCMeFoltYPjNy9C1KmV8FOYtY99A=; b=Xfb+edJ8RAiEKG84lFvoZQCVp/M9pOmxwzzD3SnhCOmToGGnwd08KdPIJNieJ9Y8l4 WgpLyBXCVPr0B6ZaV76Xr2v+A04K9K0pGbyTHdQ5pFTQGplkSYr2pvhc3H01q6TAjpBA Y0zXx9/x0ABvoatPTgpkcsLFzfMm7BJ+W1085hcIo6jH7uD/LrLNgz6nlIeLpEvJ+ZDG RcCy8b5FatoRDzt2B4449TyYql3gBHZ3AzFhVLbbi53EJ/ZE2qsQXFxXOmMn2GvVpo+t cNIg/+wJpZ60+alAc9V0PY3Qu7qJrL+uY7hoCOqOGZoLj/8MvBxfohHgfNv7ql6USTyI CymA== MIME-Version: 1.0 X-Received: by 10.68.43.101 with SMTP id v5mr10449219pbl.149.1390513646976; Thu, 23 Jan 2014 13:47:26 -0800 (PST) Received: by 10.68.155.38 with HTTP; Thu, 23 Jan 2014 13:47:26 -0800 (PST) In-Reply-To: References: <52E0C1D4.9000304@freebsd.org> <52E0D1BB.2050807@callfortesting.org> Date: Thu, 23 Jan 2014 16:47:26 -0500 Message-ID: Subject: Re: Linux on BHyVe in 10.0-RELEASE From: Aryeh Friedman To: Neel Natu 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 21:47:27 -0000 The original err=3D22 sounds like he might of attempted to run as non-root? On Thu, Jan 23, 2014 at 4:45 PM, Neel Natu wrote: > Hi Jonas, > > On Thu, Jan 23, 2014 at 1:02 PM, Jonas B=FClow > wrote: > > I had one working ubuntu13.10 vm instance but I'm unable to reproduce i= t. > > When I try to start the vm I get: > > > > /usr/sbin/bhyve -c 1 -m 2048 -A -I -H -s 0,hostbridge -s > > 2,virtio-blk,./vm/vm1/vm1.img -s 3,virtio-net,tap1 -s > > 4,ahci-cd,./vm/vm1/vm1.iso -S 31,uart,stdio vm1 > > > > vm exit[0] > > > > reason VMX > > > > rip 0x0000000000000000 > > > > > > inst_length 0 > > > > > > error 0 > > > > > > exit_reason 33 > > > > > > > > qualification 0x0000000000000000 > > > > Looks like you are running into every possible problem there is :-) > > Anyways, could you confirm that you are loading the guest kernel into > 'vm1' using grub-bhyve before executing the command above? > > best > Neel > > > > > > > > > > > /J > > > > > > On Thu, Jan 23, 2014 at 5:00 PM, Jonas B=FClow > wrote: > > > >> I will describe the steps when I manage to reproduce the installation. > >> Right now I get stuck with undestroyable vm instances: > >> > >> root@bulow:/mnt/bhyve-script # ls /dev/vmm/ > >> > >> lin0 > >> > >> root@bulow:/mnt/bhyve-script # bhyvectl --destroy --vm=3Dlin0 > >> > >> errno =3D 22 > >> > >> > >> On Thu, Jan 23, 2014 at 3:44 PM, Matthias Gamsjager < > mgamsjager@gmail.com>wrote: > >> > >>> Could you elaborate what you did to get it working? > >>> > >>> > >>> On Thu, Jan 23, 2014 at 3:41 PM, Jonas B=FClow >wrote: > >>> > >>>> Success. I have a working ubuntu 13.10 running under bhyve on FreeBS= D > >>>> 10.0-RELEASE. > >>>> > >>>> > >>>> > >>>> /J > >>>> > >>>> > >>>> On Thu, Jan 23, 2014 at 11:37 AM, Aryeh Friedman > >>>> wrote: > >>>> > >>>> > > >>>> > > >>>> > > >>>> > On Thu, Jan 23, 2014 at 5:05 AM, Jonas B=FClow >>>> >wrote: > >>>> > > >>>> >> 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 O= S > >>>> >> > >>>> > > >>>> > Since I have not used bhyve-grub personally yet I can not recommen= d > >>>> 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 create= s > >>>> during > >>>> > install even without it being a different vol [just assumes any FS > >>>> > boundaries are the host OS's problem)... you can put the disk imag= e > any > >>>> > where (your home directory would be fine for example) > >>>> > > >>>> _______________________________________________ > >>>> 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" > _______________________________________________ > 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" > --=20 Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org