You are not logged in.
I can manualy boot the "vboxdrv" module using
sudo modprobe vboxdrv
and this works every time - I can use Virtual box withouth problems. I would really like to load this module at boot time using the "/boot/syslinux/syslinux.cfg" file and then recompile the image using mkinitcpio -p. I edited the file like this, but the module doesn't get loaded.
LABEL arch
MENU LABEL Linux (Arch)
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd vboxdrv
INITRD ../initramfs-linux.img
I have seen that people useing "modeprobe.****=*****" command or something similar in this file to load modules. How should I use this to load vboxdrv module?
Last edited by 71GA (2014-04-13 11:48:36)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
If your goal is just to have the modules loaded automatically at boot time, then the Wiki shows you how to do that using /etc/modules-load.d/
As for doing it with Syslinux, I can't help you.
Edit: Fixed the link.
Last edited by Oxyd (2014-04-13 00:31:19)
Offline
If your goal is just to have the modules loaded automatically at boot time, then the Wiki shows you how to do that using /etc/modules-load.d/
As for doing it with Syslinux, I can't help you.
The part of the wiki you linked to refers to the guest modules, though.
Of course he'll have to put vboxdrv in his *.conf file in /etc/modules-load.d/ not the guest modules which are for when you run Arch itself in a VM.
Last edited by blackout23 (2014-04-13 09:35:47)
Offline
The part of the wiki you linked to refers to the guest modules, though.
D'uh! You're right, of course. Edited my post to link to the correct section.
Offline
Just add the module to the MODULES line in /etc/mkinitcpio.conf, and then regenerate your initramfs with
mkinitcpio -p linux
Offline
I have no idea why you would ever want vboxdrv in the initramfs.
Online
Just add the module to the MODULES line in /etc/mkinitcpio.conf, and then regenerate your initramfs with
mkinitcpio -p linux
Do you know what the initramfs is for?
Offline
@Oxyd thank you for the link. I know I can do it like this but was wondering if it is possible to do it using "/boot/syslinux/syslinux.cfg" or any other method like this one below:
halimbo wrote:Just add the module to the MODULES line in /etc/mkinitcpio.conf, and then regenerate your initramfs with
mkinitcpio -p linux
Do you know what the initramfs is for?
Well I have seen that we can blacklist the modules in initramfs and I thought: "Why not loading them as well". Could you briefly expose the difference in loading the modules using
"/boot/syslinux/syslinux.cfg" and "/etc/mkinitcpio.conf". What is the core purpose of initramfs? Thank you.
Last edited by 71GA (2014-04-13 10:35:12)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
initramfs is there to have an initial filesystem in memory with all the device drivers to mount the real physical root file sysytem. So it's purpose is to achive the startup of the system. vboxdrv in initramfs is clearly not needed to start the system.
Offline
initramfs is there to have an initial filesystem in memory with all the device drivers to mount the real physical root file sysytem. So it's purpose is to achive the startup of the system. vboxdrv in initramfs is clearly not needed to start the system.
So the most correct way to load ALL the drivers at boot is to just use "/etc/modules-load.d/" and for blacklisting modules there is "/etc/modprobe.d/"... I guess I ll have to just go with the flow.
Thank you!
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
It's not only the correct way it's also way easier and faster since you don't have to "mkinitcpio -p linux" everytime you change something.
Offline
It's not only the correct way it's also way easier and faster since you don't have to "mkinitcpio -p linux" everytime you change something.
This is good point. But I don't know why my "vboxdrv" didn't work when put it in the APPEND section of syslinux.cfg... Maybe it was loadet at too early stage?
Last edited by 71GA (2014-04-13 11:56:30)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
I have never used the kernel lines in the bootmanager to load modules only the init daemon (sys V init, systemd).
Offline
71GA, you're confusing the bootloader with the initramfs. syslinux loads the initramfs, but that's all. AFAIK, you cannot load modules with the bootloader. You can add modules to the initramfs, but the initramfs is there just to set things up so that the init system can run. There is absolutely no reason to add vboxdrv to the initramfs.
Last edited by Scimmia (2014-04-13 14:36:54)
Online
I don't see the problem in adding vboxdrv to the initramfs, when he clearly wants to have it loaded anytime he boots.
For the graphics drivers it's supposed in the wiki, too.
So I don't see a problem in adding the driver for virtualbox. but that's just me, i see.
When i follow your argumentation, there is no reason to add graphics drivers in /etc/mkinitcpio.conf because the drivers are not needed to mount the initial filesystem.
Last edited by halimbo (2014-04-13 18:27:29)
Offline
I don't see the problem in adding vboxdrv to the initramfs, when he clearly wants to have it loaded anytime he boots.
For the graphics drivers it's supposed in the wiki, too.
So I don't see a problem in adding the driver for virtualbox. but that's just me, i see.When i follow your argumentation, there is no reason to add graphics drivers in /etc/mkinitcpio.conf because the drivers are not needed to mount the initial filesystem.
It's not only about mounting the real root it's about ensuring a succesfull bootup of the whole system and having graphics modules loaded early helps to do that. On my laptop for example there is a race condition with X11, which wants to start before udev figured out the appropriate graphics driver module to load. So it would boot into terminal and the display manager service would report "failed" as status otherwise.
Last edited by blackout23 (2014-04-13 18:45:14)
Offline
I don't see the problem in adding vboxdrv to the initramfs, when he clearly wants to have it loaded anytime he boots.
For the graphics drivers it's supposed in the wiki, too.
So I don't see a problem in adding the driver for virtualbox. but that's just me, i see.When i follow your argumentation, there is no reason to add graphics drivers in /etc/mkinitcpio.conf because the drivers are not needed to mount the initial filesystem.
Well adding the "vboxdrv" in the "syslinux.cfg" and doing "mkinitcpio -p" didn't work. I wonder why. It worked for module "radeon" for example.
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Because as I said, syslinux.cfg has nothing at all to do with the initramfs that you create with mkinitcpio.
Online
Okay so the whole thing is more about style and order, than about functionality, i get it.
Offline