All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
To: Aruna Hewapathirane <aruna.hewapathirane@gmail.com>
Cc: kernelnewbies <kernelnewbies@kernelnewbies.org>,
	"Valdis Klētnieks" <valdis.kletnieks@vt.edu>,
	"Dhaval Giani" <dhaval.giani@gmail.com>
Subject: Re: Kernel Compile Issue
Date: Tue, 29 Jun 2021 11:25:56 +0200	[thread overview]
Message-ID: <20210629092556.capmn4vs23iwkbas@sofaking> (raw)
In-Reply-To: <CAFSeFg8r8+bsL5fwv+EgeGptpwAHfNsccRgB0Y6yz79h-y=Jyg@mail.gmail.com>

> > > Jun 25 10:46:42 debian systemd-modules-load[201]: Failed to find module 'vmhgfs'
> > > Jun 25 10:46:42 debian systemd[1]: Failed to start Load Kernel Modules.
> > > Jun 25 10:46:42 debian systemd[1]: Unit systemd-modules-load.service entered failed state.
> > >
> > > Does that make sense to you or anyone ?
> >
> > For reasons understandable only to systemd, it tried to modprobe vmhgfs and
> > didn't find it in the initramfs.

What Valdis says: I would expect that you can find a 'vmhgfs.ko' file somewhere
in /lib/modules that systemd is trying to load, but can't because it wasn't
included in the initramfs.

*Goes looking for 'vmhgfs.ko' in package manager*

Oh, so the vmhgfs.ko module is installed with open-vm-tools, not
virtualbox-modules. TIL.

Also it appears that vmhgfs is for VMware, not VirtualBox.

> > Does this configuration actually *need* a  vmware shared folder in order to boot?
> Uh-uh no it does not.
> 
> I guess  it is looking for that 'vmhgfs' because I installed VirtualBox.
> And something really interesting, I deleted VirtualBox or so I
> thought. I recompiled the kernel
> and checked, same 'bleeping' error. So reinstall VirtualBox and like
> some Voo Doo magic all
> my operating systems showed up which tells me Virtual Box keeps its
> folder and settings in
> your home folder. One lives and learns :-)

Just so we're on the same page: This module is for VMware, not VirtualBox. So I
wouldn't expect (un)installing VirtualBox would affect this module.

> > If so, you'll need to tell your dracut/  mkinitramfs/whatever command to include it.
> > If not, you'll need to tell it to not look for it.

Exactly. I don't know if/how you do this with systemd, but if you don't need the
module at boot, systemd shouldn't be trying to load it.

> I am going to keep working on this as and when I have the time I want
> to know how to fix this.
> We know it is because I installed VirtualBox, now I gotta find a fix :-(

Silly idea maybe (because I'm no systemd expert): In OpenRC you can blacklist
modules in /etc/modprobe.d. Maybe something like this [0]:

	echo "blacklist vmhgfs" >> /etc/modprobe.d/vmware

Looks like you can even add it as a boot parameter. And I would assume that it
works with systemd as well, because Arch Linux uses systemd by default.

[0] https://wiki.archlinux.org/title/Kernel_modules#Blacklisting

Best of luck!
-- Thomas

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2021-06-29  9:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-23  2:48 Kernel Compile Issue Aruna Hewapathirane
2021-06-24 10:21 ` Thomas Bracht Laumann Jespersen
2021-06-24 13:35   ` Aruna Hewapathirane
2021-06-24 16:13     ` Cindy Sue Causey
2021-06-24 17:56       ` Aruna Hewapathirane
2021-06-24 17:29     ` Thomas Bracht Laumann Jespersen
2021-06-24 18:19       ` Aruna Hewapathirane
2021-06-24 23:09         ` Valdis Klētnieks
2021-06-24 23:36           ` Aruna Hewapathirane
2021-06-25  0:51             ` Valdis Klētnieks
2021-06-25 20:05               ` Aruna Hewapathirane
2021-06-26  6:39                 ` Valdis Klētnieks
2021-06-28 11:58                   ` Aruna Hewapathirane
2021-06-29  9:25                     ` Thomas Bracht Laumann Jespersen [this message]

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=20210629092556.capmn4vs23iwkbas@sofaking \
    --to=t@laumann.xyz \
    --cc=aruna.hewapathirane@gmail.com \
    --cc=dhaval.giani@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=valdis.kletnieks@vt.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.