Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 14:14:04 +0100
From:      =?ISO-8859-1?Q?Jonas_B=FClow?= <jonas.bulow@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: Linux on BHyVe in 10.0-RELEASE
Message-ID:  <CAEGOEeX2dJ2DXh3JfaFG2kq7uqy=E87M7-JJ-x72he4-CZESmw@mail.gmail.com>
In-Reply-To: <CAGBxaXkq=AG%2B%2BdwxpAu3W=0UQBgbWzutkSV=EauNGDsgTYNS1Q@mail.gmail.com>
References:  <CAEGOEeUo-spSp051MWg-4%2B_vDACBK9NqWOPz7LBdDEHvGS3=_w@mail.gmail.com> <52E0C1D4.9000304@freebsd.org> <CAEGOEeWbysCn5Ma-aGOLGmbJPTn0CTa%2BMjRvwGVYm7jJJ57coQ@mail.gmail.com> <52E0D1BB.2050807@callfortesting.org> <CAEGOEeVUvHmypGBgd0V=Ffhzex2zsVuihA8rbxhLX9QCFxvO%2Bg@mail.gmail.com> <CAGBxaXm1-0NBwOTx40V9C-Z0wF5a9y%2BHNMRuM-N5UansiiREeQ@mail.gmail.com> <CAEGOEeV2=3Nn-5rebUJfNL-xeutSZH5_i7HkiB9ucEC%2BPD2_nw@mail.gmail.com> <CAGBxaXkui_vc0RLNcXab6qE2YRXyXRcP-p=KmwtQBsF87mDYXw@mail.gmail.com> <CAEGOEeV7rOogDA3NhZFMjbQ30ygJ4s%2BnD=DkvMNj-KR3Vah35w@mail.gmail.com> <CAGBxaX=aBYeXVKC5TNW%2Bu_VNMbbrgU251XA0w7rVUmqZ=PvjAA@mail.gmail.com> <CAEGOEeVhK9mQ2xh3VPCoUNDQR5X-SE1ZEjnNp3CcRwmkMMCzRA@mail.gmail.com> <CAGBxaXkq=AG%2B%2BdwxpAu3W=0UQBgbWzutkSV=EauNGDsgTYNS1Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<aryeh.friedman@gmail.com>wrote:

>
>
>
> On Thu, Jan 23, 2014 at 5:05 AM, Jonas B=FClow <jonas.bulow@gmail.com>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)
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEGOEeX2dJ2DXh3JfaFG2kq7uqy=E87M7-JJ-x72he4-CZESmw>