nemesis under vbox

Arch based Porteus community project
User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

nemesis under vbox

Post#1 by francois » 10 Oct 2015, 13:26

I have tried to install nemesis guest under vbox porteus host with:
https://wiki.archlinux.org/index.php/Vi ... inux_hosts

From v1.2-151101 nemesis will work under virtual box porteus and any other distribution.

The solution is to use use this vboxadditions.iso from arch linux, which you will have to untar. It will be located in folder /virtualbox-guest-iso-5.0.8-1-any.pkg/usr/lib/virtualbox/additions/
https://www.archlinux.org/packages/comm ... /download/

Sharing folders between vbox guest and host:
https://forum.porteus.org/viewtopic.php ... 52&p=35413

Under plasma5 you can put a script in the ~/.config/autostart scripts folder to have the share available at boot up of the vbox nemesis guest.

Edited 151105.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: nemesis under vbox

Post#2 by wread » 11 Oct 2015, 19:53

I could start nemesis in vbox, but it fails to boot with no sync kernel (panic):
http://www.mediafire.com/view/jswo0npq9 ... isvbox.png

Elemental, Watson: 000-kernels differ!...., Nooo, shouldn't be!, RFC

Regards 8)
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#3 by francois » 12 Oct 2015, 02:14

I have no problem at all since the begining with nemesis. I never had kernel panic. My problem now is installing the guest additions. I miss the kernel-headers for linux 4.2.3.

What can I do for you? Do you want me to explain in detail my way to install it or are you going to tell me how you did so?
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: nemesis under vbox

Post#4 by brokenman » 12 Oct 2015, 03:18

How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#5 by francois » 12 Oct 2015, 03:27

4.2.3-1 does nost seem to work for 4.2.3. But maybe I did not try it properly. I will try a second round.

Thanks.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: nemesis under vbox

Post#6 by brokenman » 12 Oct 2015, 04:38

Try these instead. They are generated from the kernel I built.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#7 by francois » 16 Oct 2015, 00:36

Downloaded brokenman crippled source and linux-headers modules.

vbox installation under nemesis not evident:

Code: Select all

root /home/guest # pacman -S virtualbox qt4
resolving dependencies...
looking for conflicting packages...

Packages (11) libmng-2.0.3-1  libvpx-1.4.0-2  linux-4.2.3-1
              linux-firmware-20150904.6ebf5d5-1  mkinitcpio-18-2
              mkinitcpio-busybox-1.21.1-2  python2-2.7.10-2  sdl-1.2.15-7
              virtualbox-host-modules-5.0.6-1  qt4-4.8.7-2  virtualbox-5.0.6-1

Total Download Size:   138.18 MiB
Total Installed Size:  430.44 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 linux-firmware-2015...    29.7 MiB  2.51M/s 00:12 [######################] 100%
 mkinitcpio-busybox-...   150.6 KiB   666K/s 00:00 [######################] 100%
 mkinitcpio-18-2-any       37.3 KiB   654K/s 00:00 [######################] 100%
 linux-4.2.3-1-x86_64      56.5 MiB  2.21M/s 00:26 [######################] 100%
 python2-2.7.10-2-x86_64   10.5 MiB  2.34M/s 00:05 [######################] 100%
 sdl-1.2.15-7-x86_64      340.9 KiB   796K/s 00:00 [######################] 100%
 libvpx-1.4.0-2-x86_64    853.3 KiB  1108K/s 00:01 [######################] 100%
 libmng-2.0.3-1-x86_64    169.4 KiB   647K/s 00:00 [######################] 100%
 qt4-4.8.7-2-x86_64        21.0 MiB  2.23M/s 00:09 [######################] 100%
 virtualbox-host-mod...   183.3 KiB   719K/s 00:00 [######################] 100%
 virtualbox-5.0.6-1-...    18.8 MiB  1746K/s 00:11 [######################] 100%
(11/11) checking keys in keyring                   [######################] 100%
(11/11) checking package integrity                 [######################] 100%
(11/11) loading package files                      [######################] 100%
(11/11) checking for file conflicts                [######################] 100%
error: failed to commit transaction (conflicting files)
linux-firmware: /usr/lib/firmware/3com/typhoon.bin exists in filesystem
linux-firmware: /usr/lib/firmware/RTL8192E/boot.img exists in filesystem
linux-firmware: /usr/lib/firmware/RTL8192E/data.img exists in filesystem
linux-firmware: /usr/lib/firmware/RTL8192E/main.img exists in filesystem
linux-firmware: /usr/lib/firmware/acenic/tg1.bin exists in filesystem
linux-firmware: /usr/lib/firmware/acenic/tg2.bin exists in filesystem
linux-firmware: /usr/lib/firmware/adaptec/starfire_rx.bin exists in filesystem
linux-firmware: /usr/lib/firmware/adaptec/starfire_tx.bin exists in filesystem
linux-firmware: /usr/lib/firmware/agere_ap_fw.bin exists in filesystem
linux-firmware: /usr/lib/firmware/agere_sta_fw.bin exists in filesystem
linux-firmware: /usr/lib/firmware/amdgpu/carrizo_ce.bin exists in filesystem
linux-firmware: /usr/lib/firmware/amdgpu/carrizo_me.bin exists in filesystem
...

...
linux-firmware: /usr/share/licenses/linux-firmware/LICENSE.hfi1_firmware exists in filesystem
linux-firmware: /usr/share/licenses/linux-firmware/LICENSE.i915 exists in filesystem
linux-firmware: /usr/share/licenses/linux-firmware/LICENSE.radeon exists in filesystem
linux-firmware: /usr/share/licenses/linux-firmware/WHENCE exists in filesystem
Errors occurred, no packages were upgraded.
root /home/guest # 
However, by skipping the problematic packages:

Code: Select all

root /home/guest # pacman -S mkinitcpio-busybox mkinitcpio python sdl libvpx libmng qt4 virtualbox-host-modules virtualbox --ignore linux-firmware
warning: python-3.5.0-2 is up to date -- reinstalling
resolving dependencies...
warning: ignoring package linux-firmware-20150904.6ebf5d5-1
warning: cannot resolve "linux-firmware", a dependency of "linux"
warning: cannot resolve "linux>=4.2", a dependency of "virtualbox-host-modules"
warning: ignoring package linux-firmware-20150904.6ebf5d5-1
warning: cannot resolve "linux-firmware", a dependency of "linux"
warning: cannot resolve "linux<4.3", a dependency of "virtualbox-host-modules"
warning: ignoring package linux-firmware-20150904.6ebf5d5-1
warning: cannot resolve "linux-firmware", a dependency of "linux"
warning: cannot resolve "linux>=4.2", a dependency of "virtualbox-host-modules"
warning: ignoring package linux-firmware-20150904.6ebf5d5-1
warning: cannot resolve "linux-firmware", a dependency of "linux"
warning: cannot resolve "linux<4.3", a dependency of "virtualbox-host-modules"
warning: cannot resolve "virtualbox-host-modules", a dependency of "virtualbox"
:: The following packages cannot be upgraded due to unresolvable dependencies:
      virtualbox-host-modules  virtualbox

:: Do you want to skip the above packages for this upgrade? [y/N] y
looking for conflicting packages...

Packages (7) libmng-2.0.3-1  libvpx-1.4.0-2  mkinitcpio-18-2
             mkinitcpio-busybox-1.21.1-2  python-3.5.0-2  qt4-4.8.7-2
             sdl-1.2.15-7

Total Installed Size:  191.44 MiB
Net Upgrade Size:       90.30 MiB

:: Proceed with installation? [Y/n] y
(7/7) checking keys in keyring                     [######################] 100%
(7/7) checking package integrity                   [######################] 100%
(7/7) loading package files                        [######################] 100%
(7/7) checking for file conflicts                  [######################] 100%
(7/7) checking available disk space                [######################] 100%
(1/7) installing mkinitcpio-busybox                [######################] 100%
(2/7) installing mkinitcpio                        [######################] 100%
Optional dependencies for mkinitcpio
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
(3/7) reinstalling python                          [######################] 100%
(4/7) installing sdl                               [######################] 100%
Optional dependencies for sdl
    alsa-lib: ALSA audio driver [installed]
    libpulse: PulseAudio audio driver [installed]
(5/7) installing libvpx                            [######################] 100%
(6/7) installing libmng                            [######################] 100%
(7/7) installing qt4                               [######################] 100%
Optional dependencies for qt4
    qtchooser: set the default Qt toolkit
    postgresql-libs: PostgreSQL driver
    libmariadbclient: MariaDB driver
    unixodbc: ODBC driver
    libfbclient: Firebird/iBase driver
    libxinerama: Xinerama support [installed]
    libxcursor: Xcursor support [installed]
    libxfixes: Xfixes support [installed]
    icu: Unicode support [installed]
    sni-qt: StatusNotifierItem (AppIndicators) support
root /home/guest # 
I got it. :D :(
Rebooting for the .xzm modules to take effect with persistence mode.
Install:

Code: Select all

root /home/guest # pacman -S virtualbox-host-dkms
root /home/guest # dkms install vboxhost/5.0.6
root /home/guest # # dkms install vboxhost/$(pacman -Q virtualbox|awk '{print $2}'|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')
root /home/guest # modprobe vboxdrv
root /home/guest # groupadd vboxusers

Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#8 by francois » 26 Oct 2015, 03:29

Frankly, if someone is getting nemesis going under vbox please provide the procedure.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#9 by francois » 04 Nov 2015, 18:37

It was so stupid not enough persitent in RTFM (Read The Formidable Manual). Here is the guest additions for hosts other than arch linux:
https://wiki.archlinux.org/index.php/Vi ... tions_disc

Please use this vboxadditions.iso from arch linux, which you will have to untar. It will be located in folder /virtualbox-guest-iso-5.0.8-1-any.pkg/usr/lib/virtualbox/additions/:
https://www.archlinux.org/packages/comm ... /download/

Arch linux wiki's are great but you have to read them all. :crazy:
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: SOLVED: nemesis under vbox

Post#10 by francois » 07 Nov 2015, 00:07

And back again. Shared folders do not work though full screen mode does.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#11 by francois » 21 Nov 2015, 18:22

porteus-nemesis-v3.2-x86_64.iso 2015-11-15
This version seems to behave well under vbox as compared to those before, it will boot full screen of scaled mode. Trying to install permanent shared folders:
https://forum.porteus.org/viewtopic.php?f=81&t=4852
I get the error message:

Code: Select all

The virtualbox guest addition do not appear to be on this machine ...
TROUBLESHOOTING.

1.0 Trying to reinstall guest iso:
Installing vbox guest.
http://download.virtualbox.org/virtualbox/5.0.4/

I get the same error message:

Code: Select all

The virtualbox guest addition do not appear to be on this machine ...

Code: Select all

root ~ # mkdir /mnt/shares
root ~ # mount -t vboxsf sda5 /mnt/shares
mount: unknown filesystem type 'vboxsf'
root ~ # mount -t vboxsf sda5 /mnt/shares
mount: unknown filesystem type 'vboxsf'
root ~ # 
2.0 Installation for custom kernel, as nemesis seems to be one:
https://wiki.archlinux.org/index.php/Vi ... nux_guests
Guests running a custom kernel
As this installation step is quite similar to the Virtualbox kernel modules section for the host described above, please refer to that section (next link) for more information and replace all virtualbox-host-modules, virtualbox-host-dkms and vboxhost-hookAUR statements by virtualbox-guest-modules, virtualbox-guest-dkms and vboxguest-hookAUR respectively.

https://wiki.archlinux.org/index.php/Vi ... el_modules

Add kernel and crippled sources modules:
http://brokenman.porteus.org/nemesis/kernel/

Code: Select all

root ~ # pman -S virtualbox-guest-dkms
resolving dependencies...
looking for conflicting packages...

Packages (1) virtualbox-guest-dkms-5.0.8-2

Total Download Size:   0.48 MiB
Total Installed Size:  5.55 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 virtualbox-guest-dk...   491.1 KiB  1043K/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) installing virtualbox-guest-dkms             [######################] 100%

Creating symlink /var/lib/dkms/vboxguest/5.0.8/source ->
                 /usr/src/vboxguest-5.0.8

DKMS: add completed.
==> To build and install your modules run: dkms install vboxguest/5.0.8
==> To do this automatically at startup run: systemctl enable dkms.service
Optional dependencies for virtualbox-guest-dkms
    linux-headers
    linux-lts-headers
 Decompressing virtualbox-guest-dkms-5.0.8-2-x86_64.pkg.tar.xz 
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
 Stripping virtualbox-guest-dkms-5.0.8-2-x86_64.pkg.tar.xz 

 Size before strip: 
 6.2M
 Size after strip: 
 6.1M

Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /tmp/virtualbox-guest-dkms-5.0.8-2-x86_64.pkg.xzm, block size 262144.
[===============================================================|] 254/254 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments, compressed xattrs
	duplicates are removed
Filesystem size 565.71 Kbytes (0.55 Mbytes)
	9.88% of uncompressed filesystem size (5723.24 Kbytes)
Inode table size 2204 bytes (2.15 Kbytes)
	23.28% of uncompressed inode table size (9468 bytes)
Directory table size 2690 bytes (2.63 Kbytes)
	42.26% of uncompressed directory table size (6365 bytes)
Number of duplicate files found 59
Number of inodes 295
Number of files 251
Number of fragments 16
Number of symbolic links  0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 44
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)

568K	/tmp/virtualbox-guest-dkms-5.0.8-2-x86_64.pkg.xzm

 Operation completed successfully. 
The following modules were copied to your modules folder:
/mnt/sda1/porteus/modules

virtualbox-guest-dkms-5.0.8-2-x86_64.pkg.xzm

Packages were removed from /var/cache/pacman/pkg.
#
Next step will be to add vboxguest-hook:

Code: Select all

guest /root/Downloads $ pacaur -S vboxguest-hook.tar.gz
:: Package(s) vboxguest-hook.tar.gz not found in repositories, trying AUR...
:: resolving dependencies...
:: Could not connect to the AUR
error: duplicated database entry 'texinfo'
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: Could not connect to the AUR
:: no results found for vboxguest-hook.tar.gz
guest /root/Downloads $ 
I will have to use the makepkg after installing the untar packages. (to be followed)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#12 by francois » 11 Dec 2015, 17:42

With nemesis 3.3

1.0 internet connection within vbox does not work:

Code: Select all

ip link
Only 1: lo: will appear, there is no other interface possibility

Code: Select all

dhcpcd eth0
eth0: interface not found or invalid.

2.0 Shared folders do not work:
It is possible to mount a permanent folder, but there is an error message stating that there is no access to the vbox guest addition.
Voltaire: Le mieux est l'ennemi du bien.

biotec
White ninja
White ninja
Posts: 23
Joined: 23 Jan 2014, 23:50
Distribution: slackware
Location: Oviedo

Re: nemesis under vbox

Post#13 by biotec » 12 Dec 2015, 23:48

Hello François

Well. in my hands, internet works well on a Nemesis 3.3 freshly booted under VBox 5.0.6 (the host is a Slackware; no changes cheatcode, conventionall boot method -not EFI-). Maybe are you using some particular configuration that prevents internet connection?

I did not try guest additions with Nemesis, so I cannot say if shared folders would work on my setup.

I use Porteus under VBox a lot to make preliminary tests of customised porteus before distributing them to students, so I am somewhat used to deal with VirtualBox (not an expert, tho), and I am following the Nemesis development from the distance, so let me know if you want me to test some particular setup.

Thanks for all the work of Porteus Team.

Ricardo.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: nemesis under vbox

Post#14 by brokenman » 13 Dec 2015, 01:47

How are you installing virtualbox?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: nemesis under vbox

Post#15 by francois » 13 Dec 2015, 02:34

I was on vbox 5.0.4, trying 5.0.10 now.
Voltaire: Le mieux est l'ennemi du bien.

Post Reply