[Solved] Trying to Get PCLinuxOS Installed into VirtualBox
Welcome, Guest.
“Theory and practice sometimes clash. And when that happens, theory loses. Every single time.” ― Linus Torvalds

Author Topic: [Solved] Trying to Get PCLinuxOS Installed into VirtualBox  (Read 361 times)

Offline gregorylock

  • Contributor
  • *******
  • Posts: 842
[Solved] Trying to Get PCLinuxOS Installed into VirtualBox
« on: January 02, 2020, 10:14:17 PM »
I have PCLinuxOS 2019.12 Mate.   I'm trying to get it installed and working in VirtualBox.  I'm on my 4th try.  I had trouble finding the information I want on it.  Number 1 what do you set your Virtualbox too?  I tried setting it to Linux 2.6 /3.x /4.x (64-bit)  I heard that it was originally Mandriva so I tried Mandriva (64-bit)  I'm currently trying Other Linux (64-bit).  This should be really easy information to find.  In print!  I saw one guy on youtube use "Linux 2.6 /3.x /4.x (64-bit)"  Didn't work for me.  To be clear, it does run in live mode on all the ones I mentioned. It's after I install it I really start having problems.
« Last Edit: January 03, 2020, 01:29:43 PM by gregorylock »

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5601
  • Cup of Linux Founder
    • Cup of Linux
Re: Trying to Get PCLinuxOS Installed into VirtualBox
« Reply #1 on: January 02, 2020, 10:31:13 PM »
I have run into some distributions which would not let me install them in a virtual machine no matter what I tried... Some developers (like the defunct Pear or Comice) did not want you to run their software in a VM. I say if it is not good enough to run in a VM, why would I want to run it on real hardware?
Windows assumes the user is an idiot... Linux DEMANDS Proof!

Offline gregorylock

  • Contributor
  • *******
  • Posts: 842
Re: Trying to Get PCLinuxOS Installed into VirtualBox
« Reply #2 on: January 02, 2020, 11:33:29 PM »
I have run into some distributions which would not let me install them in a virtual machine no matter what I tried... Some developers (like the defunct Pear or Comice) did not want you to run their software in a VM. I say if it is not good enough to run in a VM, why would I want to run it on real hardware?

I found a video of someone who successfully got it working in Virtual Box.  It went really easy for him.  However the guest addition feature that He was able to use is not in the latest version.

https://www.youtube.com/watch?v=wHM5-BIfr6Y

What I did to get mine working is use openSUSE (64)  The system seems to be happy except I can't get the guest additions to install.  It told me to look at the log file. If you can help me figure out how to get the guest additions installed.  Then I think I'll be home free.

Logfile


Code: [Select]
Building the main Guest Additions 6.0.14 module for kernel 5.4.6-pclos1.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/5.4.6-pclos1/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ;                                                      \
/bin/false)
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 single-build= need-builtin=1 need-modorder=1
  gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-mandriva-linux-gnu/9.2.0/include -I./arch/x86/>
  gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-mandriva-linux-gnu/9.2.0/include -I./arch/x86/includ>
In file included from ././include/linux/compiler_types.h:59,
                 from <command-line>:
/tmp/vbox.0/VBoxGuest.c: In function ‘vgdrvCheckIfVmmReqIsAllowed’:
./include/linux/compiler_attributes.h:200:41: error: expected ‘)’ before ‘__attribute__’
  200 | # define fallthrough                    __attribute__((__fallthrough__))
      |                                         ^~~~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1169:48: note: in expansion of macro ‘fallthrough’
 1169 | # define RT_FALL_THROUGH() __attribute__((fallthrough))
      |                                                ^~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1176:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1176 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuest.c:2443:13: note: in expansion of macro ‘RT_FALL_THRU’
 2443 |             RT_FALL_THRU();
      |             ^~~~~~~~~~~~
In file included from /tmp/vbox.0/include/iprt/types.h:32,
                 from /tmp/vbox.0/VBoxGuestInternal.h:33,
                 from /tmp/vbox.0/VBoxGuest.c:54:
/tmp/vbox.0/include/iprt/cdefs.h:1169:60: error: expected identifier or ‘(’ before ‘)’ token
 1169 | # define RT_FALL_THROUGH() __attribute__((fallthrough))
      |                                                            ^
/tmp/vbox.0/include/iprt/cdefs.h:1176:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1176 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuest.c:2443:13: note: in expansion of macro ‘RT_FALL_THRU’
 2443 |             RT_FALL_THRU();
      |             ^~~~~~~~~~~~
/tmp/vbox.0/VBoxGuest.c:2441:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2441 |             if (pSession->fUserSession)
      |                ^
/tmp/vbox.0/VBoxGuest.c:2444:9: note: here
 2444 |         case kLevel_AllUsers:
      |         ^~~~
make[2]: *** [scripts/Makefile.build:266: /tmp/vbox.0/VBoxGuest.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1644: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:111: vboxguest] Error 2
modprobe vboxguest failed


Post Merge: January 03, 2020, 11:20:40 AM
UPDATE 01/03/2020 @ 11:15 AM
I updated virtual box to 6.1.  Then I cloned a new copy of PCLinuxOS from my original back up.  Booted into the original install.  Opened Devices > Insert Guest Additions CD, and it prompted me asking me if I wanted to run the Guest Additions.  I said Yes.  It seems to have worked.  But I need to reboot PCLinuxOS to see.  I saved the install code for you.

Code: [Select]
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.4.6-pclos1.
Building the VirtualBox Guest Additions kernel modules.  This may take a while.
To build modules for other installed kernels, run
  /sbin/rcvboxadd quicksetup <version>
or
  /sbin/rcvboxadd quicksetup all
Running kernel modules will not be replaced until the system is restarted
vboxadd-service.sh: Starting VirtualBox Guest Addition service.
Press Return to close this window...

Post Merge: January 03, 2020, 01:30:24 PM
UPDATE 01/03/2020 @ 1:30 pm
The guest additions is working now.
« Last Edit: January 03, 2020, 01:30:24 PM by gregorylock »