Page 1 of 1

Mounting shared folder in linux guest during initramfs fails

Posted: 29. Sep 2012, 23:42
by Chet
Hi!

In an initramfs of my own creation, I am trying to mount my linux guest root filesystem from a shared folder on the host.

Into the initramfs I have packed up the guest additions, kernel modules, and required libraries, and, when dropping to a busybox shell in the initramfs, all appears well at first.
  • The modules (vboxguest.ko and vboxsf.ko) load successfully, with no errors (in dmesg, anyway);
  • The "vboxguest-service" executable starts successfully; and
  • "VBoxControl sharedfolder list" shows me the correct shared folders available from the host.
However, trying to actually mount any of the listed shared folders fails, every way I've tried. In addition, configuring a shared folder as "automount" does not populate any mounts and likewise does not report any errors (that I can find).

For example:

Code: Select all

/bin/mount -t vboxfs sharename /mnt/sharename
fails with "no such device", and

Code: Select all

/sbin/mount.vboxsf sharename /mnt/sharename
fails with "Operation not permitted".

Please help! Am I doing anything known by others to be wrong? Where else can I dig for clues? Any suggestions welcome. Please also let me know if I can clarify or add any details to help.

Thanks,
Chet

Re: Mounting shared folder in linux guest during initramfs f

Posted: 30. Sep 2012, 00:16
by Chet
Following up:

Code: Select all

/bin/mount -t vboxsf sharename /mnt/sharename
also fails, with the error "Invalid argument".