Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2017 09:46:18 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Balaji Palaniswami <heisenbug.bala@gmail.com>
Cc:        Warner Losh <imp@bsdimp.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Creating bootable vm disk
Message-ID:  <A7E921AC-C1B1-4CCD-A3D3-2B729DD9F9D1@cs.huji.ac.il>
In-Reply-To: <CAB0r=auWX_3USVL9uaKQXXEKH4T1Mo7KNR03tChRHq1EWBAvMQ@mail.gmail.com>
References:  <CAB0r=asgaEFbQUvx-tEnZDEDwvt8H%2B1eB0Sq3FFeJ3DCCL%2BbNQ@mail.gmail.com> <CANCZdfog3vO=9o71yDoLZDZFGQjwndtEJauaBGPO7OCQyfSPJA@mail.gmail.com> <CAB0r=auN44jySKM_GJj5wQDNcM1g3vDEihg49nZOWZX2rQVytQ@mail.gmail.com> <CAB0r=auWX_3USVL9uaKQXXEKH4T1Mo7KNR03tChRHq1EWBAvMQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 30 Jan 2017, at 22:25, Balaji Palaniswami =
<heisenbug.bala@gmail.com> wrote:
>=20
>>=20
>> On Mon, Jan 30, 2017 at 8:00 AM, Warner Losh <imp@bsdimp.com> wrote:
>>=20
>>> On Sun, Jan 29, 2017 at 11:57 PM, Balaji Palaniswami
>>> <heisenbug.bala@gmail.com> wrote:
>>>> Hi All,
>>>>=20
>>>> I followed this https://wiki.freebsd.org/FreeBSD/arm/crossbuild.
>>>> buildworld, buildkernel, distribution, installkernel (TARGET=3Darm =
and
>>> arch=3D
>>>> armv6)  went fine. I have compiled stuff at /home/username/nfsroot.
>>> Instead
>>>> of writing into sdcard or USB, i want to create bootable vm disk to
>>> boot in
>>>> bhyve. To create i tried mkimg
>>>>=20
>>>> sudo mkimg -s gpt -b nfsroot/boot/mbr  -p
>>>> freebsd-boot:=3Dnfsroot/boot/gptboot -p =
freebsd-ufs:=3Droot-file-system.ufs
>>> -p
>>>> freebsd-swap::1G -o fbsd-2.img
>>>>=20
>>>> Here i created root filesystem using makefs which provided the
>>>> rootfilesystem.ufs. Then i verified those contents by mounting  =
which
>>> looks
>>>> as it is in /nfsroot. But mkimg did not create boot partition =
properly.
>>>> Because when i tried to mount those partition it threw I/O error =
and
>>> when i
>>>> was trying to boot using beehive it says "kernel not found".
>>>>=20
>>>> Is there any script or list of commands to accomplish this task ?
>>>=20
>>> NanoBSD can create images for non-VM targets for arm. Which board =
are
>>> you looking at?
>>>=20
>>> Did you put the right u-boot on the images that you are creating?
>>>=20
>>> Warner
>>>=20
>>=20
>> apologize for top posting.
> I am trying to boot using bhyve instead of hardware. So i am looking =
at
> constructing vm disk from the output of cross compilation steps as
> mentioned in wiki. Just skimmed over crochet repo, it is also =
constructing
> the vmdisk from freebsd source tree.I am trying to figure out the way =
to
> build vm disk in crochet which is compatible bhyve (raw).
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


stupid question, on what hardware are you running bhyve?

danny




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7E921AC-C1B1-4CCD-A3D3-2B729DD9F9D1>