Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2015 09:53:54 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: nanoBSD boot problem (on USB stick or as a HD)
Message-ID:  <55F8CBB2.1080109@freebsd.org>
In-Reply-To: <CAO0mX5YwFpUhcWfni8QeyOzesFmLpCQnkPT5zFOYU5PokYdiFw@mail.gmail.com>
References:  <CAO0mX5YwFpUhcWfni8QeyOzesFmLpCQnkPT5zFOYU5PokYdiFw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/15/15 5:31 PM, Stefano Garzarella wrote:
> Hi all,
> I created a nanoBSD image for my gsoc project (ptnetmap on bhyve).
>
> I would like to boot this image on USB stick or in the hypervisor as a HD.
> I have some problem because if I set NANO_DRIVE="da0" (for USB boot)
> in the nanoBSD configuration file, the boot from USB stick works well,
> but when I try to boot the same image in the hypervisor as a HD,
> I have the following mountroot error:

you have to override vfs.root.mountfrom in the hypervisor's loader
bhyveload. otherwise it looks at /etc/fstab in the root filesystem,
and you can't have it work both ways..

one possibility is to use  gpart label to describe the device.
possibly it woudl hav ehte same result in both cases, but I don't know 
for sure that
it works for root device.. you'd have to test.

>
> Trying to mount root from ufs:/dev/da0s1a [ro]...
> mountroot: waiting for device /dev/da0s1a ...
> Mounting from ufs:/dev/da0s1a failed with error 19.
>
> Loader variables:
>     vfs.root.mountfrom=ufs:/dev/da0s1a
>     vfs.root.mountfrom.options=ro
>
> mountroot>
>
>
> At this point I need to manually specify "ufs:/dev/ad0s1a" to properly mount
> the root.
>
> Can you help me?
> There is some tricks to avoid this mountroot error?
>
> Thanks,
> Stefano Garzarella
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55F8CBB2.1080109>