From: "Harry G. Coin" <hgcoin@gmail.com>
To: Vivek Goyal <vgoyal@redhat.com>,
linux-fsdevel@vger.kernel.org, virtio-fs@redhat.com,
linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
Richard Weinberger <richard.weinberger@gmail.com>,
Dominique Martinet <asmadeus@codewreck.org>,
David Howells <dhowells@redhat.com>,
viro@zeniv.linux.org.uk, v9fs-developer@lists.sourceforge.net
Subject: Re: [Virtio-fs] [PATCH] init/do_mounts.c: Add root="fstag:<tag>" syntax for root device
Date: Tue, 8 Jun 2021 13:38:56 -0500 [thread overview]
Message-ID: <8929c252-3d99-8cdb-1c56-5fdb1fd29fc2@gmail.com> (raw)
In-Reply-To: <20210608153524.GB504497@redhat.com>
On 6/8/21 10:35 AM, Vivek Goyal wrote:
> We want to be able to mount virtiofs as rootfs and pass appropriate
> kernel command line. Right now there does not seem to be a good way
> to do that. If I specify "root=myfs rootfstype=virtiofs", system
> panics.
>
> virtio-fs: tag </dev/root> not found
> ..
> ..
> [ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]
Whatever the best direction forward might be for kernel patches
regarding 'not block device as root', it would ease learning curves if
'the patterns that set config issue X' were the same across root 'not
block device options' whether cephfs, nfs, 9p, virtiofs. All of them
will have to handle the selinux xattr/issue, posix and flock issues,
caching etc. While by definition virtiofs has to exist only in a vm
guest, the others could be baremetal or vm guest roots. (How much 9p's
other-than-guest transports are used I don't know).
FYI (though patching the kernel may be the best option) there is a case
that does not have those kernel panics for virtiofs-root and 9p root
using stock fc34. As 9p, the virtiofs method uses the initrd creation
mechanisms provided by 'dracut' or 'initramfs' to provide the 'sysroot
pivot glue'.
On the fc34 guest a successful 'direct kernel boot' today looks like:
kernel path: /vmsystems/fedora_generic/boot/vmlinuz
initrd path: /vmsystems/fedora_generic/boot/initrd.img
Kernel args: root=virtiofs:myfs rd.shell rd.fstab
The xml to pass through virtio-fs is:
<filesystem type="mount" accessmode="passthrough">
<driver type="virtiofs" queue="1024"/>
<binary xattr="on">
<lock posix="on" flock="on"/>
</binary>
<source dir="/vmsystems/fedora_generic"/>
<target dir="myfs"/>
</filesystem>
The guest fstab is:
myfs / virtiofs defaults 0 0
HTH
Harry Coin
next prev parent reply other threads:[~2021-06-08 18:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 15:35 Vivek Goyal
2021-06-08 18:38 ` Harry G. Coin [this message]
2021-06-08 19:26 ` [Virtio-fs] " Vivek Goyal
2021-06-08 19:49 ` Harry G. Coin
2021-06-08 21:41 ` Dominique Martinet
2021-06-09 9:51 ` Stefan Hajnoczi
2021-06-09 14:13 ` [Virtio-fs] " Harry G. Coin
2021-06-09 15:45 ` Vivek Goyal
2021-06-10 8:16 ` Stefan Hajnoczi
2021-06-10 8:33 ` Dominique Martinet
2021-06-13 11:56 ` Dominique Martinet
2021-06-14 14:28 ` Vivek Goyal
2021-06-14 23:14 ` Dominique Martinet
2021-06-15 13:50 ` Vivek Goyal
2021-06-16 3:24 ` Dominique Martinet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8929c252-3d99-8cdb-1c56-5fdb1fd29fc2@gmail.com \
--to=hgcoin@gmail.com \
--cc=asmadeus@codewreck.org \
--cc=dhowells@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=richard.weinberger@gmail.com \
--cc=v9fs-developer@lists.sourceforge.net \
--cc=vgoyal@redhat.com \
--cc=viro@zeniv.linux.org.uk \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®