Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2016 10:55:44 +0100
From:      Lars Engels <lars.engels@0x20.net>
To:        Gary Palmer <gpalmer@freebsd.org>
Cc:        tech-lists <tech-lists@zyxst.net>, freebsd-fs@freebsd.org
Subject:   Re: mounting an ubuntu 14.04 bhyve image as a filesystem for editing
Message-ID:  <20161113095544.GJ68652@e-new.0x20.net>
In-Reply-To: <20161111160909.GA67078@in-addr.com>
References:  <ad82ab98-b762-ab36-5da3-51cf366c69d1@zyxst.net> <20161110152612.GH68652@e-new.0x20.net> <fa59613d-b537-2725-27aa-5d385466d83d@zyxst.net> <20161111160909.GA67078@in-addr.com>

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

--7hPxVvx9zUFtB5wE
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 11, 2016 at 04:09:09PM +0000, Gary Palmer wrote:
> On Fri, Nov 11, 2016 at 03:30:59PM +0000, tech-lists wrote:
> > On 10/11/2016 15:26, Lars Engels wrote:
> > > On Thu, Nov 10, 2016 at 12:32:07PM +0000, tech-lists wrote:
> > >> Hello list,
> > >>
> > >> [originally sent to virtualization@ but got no replies, probably
> > >> because, thinking about it, the fact that it's a bhyve image is inci=
dental]
> > >>
> > >> [snipped stuff about bhyve]
> > >>
> > >> Is there a way of taking an ubuntu VM image that normally runs as a
> > >> bhyve guest, mounting it on some mountpoint on the freebsd host and
> > >> directly editing the files within it?
> > >>
> > >> Alternatively, is there a way of making grub boot the image into
> > >> single-user-mode like one can with freebsd?
> > >>
> > >
> > > That should work (provided sysutils/fusefs-ext4fuse is installed):
> > >
> > > # mdconfig -t vnode -f $ubuntu_img
> > > # ext4fuse /dev/md0 /mnt
> > >
> >=20
> > Hi, thanks for looking at this.
> >=20
> > Unfortunately it didn't work:
> >=20
> > root@host0:/vms/138# mdconfig -t vnode -f ubuntu138.img
> > md2
> >=20
> > root@host0:/vms/138# ext4fuse /dev/md2 /mnt
> > Partition doesn't contain EXT4 filesystem
> >=20
> > root@host0:/vms/138# ls -la /dev/md2*
> > crw-r-----  1 root  operator  0xb0 Nov 11 14:58 /dev/md2
> > crw-r-----  1 root  operator  0xb4 Nov 11 15:06 /dev/md2s1
> > crw-r-----  1 root  operator  0xb5 Nov 11 15:06 /dev/md2s2
> > crw-r-----  1 root  operator  0xb6 Nov 11 15:06 /dev/md2s5
> >=20
> > root@host0:/vms/138# ext4fuse /dev/md2s1 /mnt
> > fuse: failed to open fuse device: No such file or directory
>=20
>=20
> That is a different error than the others.  I somewhat suspect
> that there is an ext partition on md2s1 but something else
> prevented the mount from proceeding.  Is there anything in
> dmesg or /var/log/messages?
>=20
> Do you have a /dev/fuse?

You need to load the fuse kernel module first

# kldload fuse

--7hPxVvx9zUFtB5wE
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJYKDigXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF
NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tkukH+wT6hJp8Cs51k6PXGo5f26nk
YQRC3ZNYIxZhc2KMZ2IZc9W0UJMc0zj2oDAFdrZ2pdQgYcmCVUa4PpVht19/mEXR
9fPJYAZioQ5KfB8NBOkmcjxdaOXOFXexT8AAt/XV61Sy/7omzerLXDGXa0AQzqZi
69aRqO4R7lFdEobLbj0v4tIU1+ks1UerU47bBZxcT5tJqRZNY9pKaUphzMzUS1op
K7xKfa9IhVzSOLIxEcZZh8dmqrc5K+FcW2E1OYNW6g9fwZFlaDyOFjKmPTODRWlI
uQjrtVqpS1qdXILpRHFdvTB22C4YHxkEmnSUgLHJxaaxApAgWoRvZDzQHi8LROU=
=6r2m
-----END PGP SIGNATURE-----

--7hPxVvx9zUFtB5wE--



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