VirtualBox How Do You Install Guest Additions?

Forum Forums New users New Users and General Questions VirtualBox How Do You Install Guest Additions?

  • This topic has 15 replies, 6 voices, and was last updated Jun 22-4:54 am by qwee.
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #36936
    Member
    gregorylock

      I’ve been searching all over google to find out how to install the guest additions for antiX-19.2_x64-full. I also looked at the official website and even searched the documentation. I don’t know why I keep coming up empty. I tried several different combinations but I can’t get antiX to go full screen. After spending a couple of hours trying, I decided to ask for help.

      I’m running VirtualBox 6.1
      I logged in as root before trying these commands. All of these did ‘something’.
      The first command I tried was sh ./VBoxLinuxAdditions.run
      I started all over and tried: apt install linux-headers-$(uname -r) build-essential dkms
      I also tried: apt install virtualbox-guest-dkms virtualbox-guest-x11

      If any of these worked. Then how do you get it go full screen?

      #36937
      Moderator
      BobC
        Helpful
        Up
        0
        ::

        I don’t know the answer to your question, but I just want to point out that it looks like you are trying to install it all from scratch, so maybe people here would be able to help you, but maybe not, as there are a number of versions etc.

        antiX has virtualbox available via the “Package Installer” and also via “Manage Packages”, which really runs Synaptic, by using search in either for virtualbox. Both are on the System tab of the Control Centre. The package installer is the simpler of the two. I would expect it to install everything correctly because that has been tested and could be supported. After installing it via Package Installer and exiting that program, if you found it didn’t work, you could use Synaptic to see exactly what packages did and didn’t get installed as a result.

        As far as changing the screen size, I just changed it in the guest OS and it changed. I’m sorry, its been too long since I installed virtualbox, but I don’t recall doing anything special for the display other than increasing the memory a bit. I’m not sure where your problem is there.

        PS: Here is what I have installed in Synaptic. You need to click the pic to see the list. If you use Synaptic or Package Installer, or even apt-get, when it installs it should automatically bring in any dependencies.

        • This reply was modified 2 years, 11 months ago by BobC.
        • This reply was modified 2 years, 11 months ago by BobC.
        • This reply was modified 2 years, 11 months ago by BobC.
        Attachments:
        #36942
        Member
        Xecure
          Helpful
          Up
          0
          ::

          I tried several different combinations but I can’t get antiX to go full screen.

          Ok. So this means “I am running antiX as GUEST of Virtualbox 6.1”. Good. Now we know a bit more.
          You must have the “Guest Additions ISO” downloaded for Virtualbox to do things.

          These are the steps (more or less). Let us know where you got stuck.
          WARNING: These command may contain typos. Pay attention to what I am trying to explain and make sure to correct my typo if I wrote it wrong.

          0. Install antiX in VirtualBox.
          1. Login as your normal user in your antiX system (installed inside Vitualbox)
          2. Open a terminal and login as root:
          su
          3. Purge all virtualbox-guest packages from the system.
          apt purge virtualbox-guest-*
          4. Make sure you have make and gcc installed on your antiX system
          apt install gcc make
          5. On your HOST machine, insert your Virtualbox Guest Additions iso (VB interface-> Devices menu > Insert Guest Additions CD Image).
          6. Check to see if the device has mounted automatically in your antiX GUEST system (navigate to the folder /media/sr0 using a file manager or check in terminal: cd /media/sr0 and then ls to display all files).
          6.1 If it hasn’t automatically mounted, manually mount it
          mount /dev/sr0 /media/sr0
          6.2 If there is an error while mounting, saying /media/sr0 doesn’t exist, create the folder manually in terminal and try mounting the cd again.

          mkdir /media/sr0
          mount /dev/sr0 /media/sr0

          7. Navigate to the folder in terminal
          cd /media/sr0
          8. Run the autoinstall script
          VBoxLinuxAdditions.run
          8.1 If it doesn’t launch properly, copy it to a temporary folder and execute it there:

          cp /media/sr0/VBoxLinuxAdditions.run /tmp
          /tmp/VBoxLinuxAdditions.run

          Installation should be done. After restarting, you should now have the screen change resolution automatically, access to your Share Folder, etc. If there is any error, please report back. If possible on the exact step and the error displayed.

          EXTRA STEP (optional):
          9. If you want to use other VBox more advanced options, like seamless mode, copy/paste between guest and host, etc. add a startup command to ~/.desktop-session/startup (Open a new terminal in normal user)
          geany ~/.desktop-session/startup
          Now add these lines anywhere you want so that all Virtual Box options launch on startup:

          #Running all VirtualBox options
          /usr/bin/VBoxClient-all

          Save and restart.
          Note: Things may have changed in recent VirtualBox versions. Make sure that VBoxClient-all is located in /usr/share/ doing a search:
          which VBoxClient-all
          and use that path as the correct path above.

          antiX Live system enthusiast.
          General Live Boot Parameters for antiX.

          #36947
          Member
          gregorylock
            Helpful
            Up
            0
            ::

            @Xecure

            Trying to follow your directions Here is what I tried. Still doesn’t go full screen.

            apt purge virtualbox-guest-*
            Reading package lists... Done
            Building dependency tree       
            Reading state information... Done
            Note, selecting 'virtualbox-guest-utils-modified-init' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-utils' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-modules' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-additions-iso' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-dkms' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-x11-dbgsym' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-utils-dbgsym' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-source' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-x11' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-additions' for glob 'virtualbox-guest-*'
            Note, selecting 'virtualbox-guest-dkms' instead of 'virtualbox-guest-modules'
            Package 'virtualbox-guest-additions' is not installed, so not removed
            Package 'virtualbox-guest-additions-iso' is not installed, so not removed
            Package 'virtualbox-guest-source' is not installed, so not removed
            Package 'virtualbox-guest-utils-dbgsym' is not installed, so not removed
            Package 'virtualbox-guest-x11-dbgsym' is not installed, so not removed
            The following packages will be REMOVED:
              virtualbox-guest-dkms* virtualbox-guest-utils*
              virtualbox-guest-utils-modified-init* virtualbox-guest-x11*
            0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
            After this operation, 15.5 MB disk space will be freed.
            Do you want to continue? [Y/n]
            apt install gcc make
            Reading package lists... Done
            Building dependency tree       
            Reading state information... Done
            gcc is already the newest version (4:8.3.0-1).
            make is already the newest version (4.2.1-1.2).
            0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
            /media/sr0# ls -1
            AUTORUN.INF
            autorun.sh
            cert
            NT3x
            OS2
            runasroot.sh
            TRANS.TBL
            VBoxDarwinAdditions.pkg
            VBoxDarwinAdditionsUninstall.tool
            VBoxLinuxAdditions.run
            VBoxSolarisAdditions.pkg
            VBoxWindowsAdditions-amd64.exe
            VBoxWindowsAdditions.exe
            VBoxWindowsAdditions-x86.exe
            VBoxLinuxAdditions.run
            bash: VBoxLinuxAdditions.run: command not found
            root@antix1:/media/sr0# ./VBoxLinuxAdditions.run
            bash: ./VBoxLinuxAdditions.run: Permission denied
            root@antix1:/media/sr0# sh ./VBoxLinuxAdditions.run
            Verifying archive integrity... All good.
            Uncompressing VirtualBox 6.1.10 Guest Additions for Linux........
            VirtualBox Guest Additions installer
            Removing installed version 6.1.10 of VirtualBox Guest Additions...
            vboxadd-service.sh: Stopping VirtualBox Guest Addition service.
            You may need to restart your guest system to finish removing guest drivers.
            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 
            4.9.212-antix.1-amd64-smp.
            VirtualBox Guest Additions: Running kernel modules will not be replaced until 
            the system is restarted
            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
            • This reply was modified 2 years, 11 months ago by gregorylock.
            • This reply was modified 2 years, 11 months ago by gregorylock.
            • This reply was modified 2 years, 11 months ago by gregorylock.
            #36952
            Member
            manyroads
              Helpful
              Up
              0
              ::

              Did you check this out? https://www.howtogeek.com/howto/2845/install-guest-additions-to-windows-and-linux-vms-in-virtualbox/

              Pax vobiscum,
              Mark Rabideau - http://many-roads.com
              "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
              dwm & i3wm ~Reg. Linux User #449130
              20 Jan 2021 ~ "End of an Error"

              #36954
              Forum Admin
              anticapitalista
                Helpful
                Up
                0
                ::

                I logged in as root before trying these commands.

                Don’t do this. Login as user (always)

                Philosophers have interpreted the world in many ways; the point is to change it.

                antiX with runit - leaner and meaner.

                #36956
                Member
                Xecure
                  Helpful
                  Up
                  0
                  ::

                  Trying to follow your directions Here is what I tried. Still doesn’t go full screen.

                  Worked for me many times. I always have to restart, though. Let me share my VB configuration with you:
                  In the Display options for my Virtual machine, I set 64 MB for Video Memory, VSMVGA as graphic controller, and enabled 3D acceleration (that last one should not be needed).
                  Also, when running, I make sure that “Autoscale guest screen” is enabled.

                  Once, I needed to manually change the resolution with Arandr to then get the autoscaling to work properly on next reboot.

                  Finally, if nothing else works, check that your boot parameters aren’t forcing a screen resolution.
                  sudo geany /etc/default/grub
                  Look at the line starting with GRUB_CMDLINE_LINUX_DEFAULT. Mine says:
                  vga=791 quiet video=1280x1024
                  I think that video resolution was set when selecting “Virtual Box Video” option when I first installed, but it isn’t necessary (at least it shouldn’t). With “quiet” it should be enough, I think.
                  After making the changes in grub, save and execute this command in terminal emulator.
                  sudo update-grub

                  Some questions I didn’t ask, but I may have assumed wrong. Is this an installed in Virtualbox system or running in live USB system in Virtualbox? Also, did you select EFI boot in system configuration or is it disabled (uses Legacy boot instead)? Are you installing from Windows host or linux host?

                  If you still have problems, post here what options you chose in the Virtual Machine Configuration and I will try to replicate everything as you have it and see if I get the same results (and find a way to solve it). But this probably will not be today.

                  Meanwhile, if nothing works, manually set the resolution with Arandr.

                  antiX Live system enthusiast.
                  General Live Boot Parameters for antiX.

                  #36961
                  Member
                  gregorylock
                    Helpful
                    Up
                    0
                    ::

                    I don’t know how to quote people on this forum. :/

                    @BobC After I installed the packages you show in your screen shot. It started working.

                    @manyroads I know about that.

                    @anticapitalista are you saying that you don’t want us to “su” before installing things?

                    @Xecure it’s a full install.

                    #36962
                    Forum Admin
                    anticapitalista
                      Helpful
                      Up
                      0
                      ::

                      You said you logged in as root. Don’t do this.
                      Logging in as user and using su is what you should do.

                      Philosophers have interpreted the world in many ways; the point is to change it.

                      antiX with runit - leaner and meaner.

                      #36963
                      Member
                      gregorylock
                        Helpful
                        Up
                        0
                        ::

                        @anticapitalista I meant that I used su before installing the guest-additions. I didn’t even know you could login as root from the login screen?

                        #36985
                        Member
                        Xecure
                          Helpful
                          Up
                          0
                          ::

                          @BobC After I installed the packages you show in your screen shot. It started working.

                          Good work fixing the problem. I must have omitted some step somewhere. Good thing there is more than one voice of reason in the forums.

                          Enjoy the antiX experience!

                          antiX Live system enthusiast.
                          General Live Boot Parameters for antiX.

                          #37679
                          Member
                          qwee
                            Helpful
                            Up
                            0
                            ::

                            im install it on my virtuall box . but when try insert Guest Additions CD images it cant reinstall it ?
                            see the image

                            #37684
                            Member
                            Xecure
                              Helpful
                              Up
                              0
                              ::

                              We don’t know what version of antiX you are using or what exact error it has (expand the Details word and search that error on the web).

                              antiX Live system enthusiast.
                              General Live Boot Parameters for antiX.

                              #37772
                              Member
                              qwee
                                Helpful
                                Up
                                0
                                ::

                                We don’t know what version of antiX you are using or what exact error it has (expand the Details word and search that error on the web).

                                Hello my friend how are you ?
                                im used new one i think antix 19.2 base 64

                                #37805
                                Member
                                Xecure
                                  Helpful
                                  Up
                                  0
                                  ::

                                  m used new one i think antix 19.2 base 64

                                  Make sure it is 19.2.1 base

                                  What I meant with

                                  expand the Details word and search that error on the web

                                  Is that in your screen shot, there is a button that says “Details”. If you hit it, you can see What is the specific error.
                                  If it says it cannot mount it, then you may need to create the specific directory.
                                  If it says it is already added, then it means that it has already been mounted.
                                  This is the important information.

                                  As it seems it may be a special case not related to this one, you could always open a new thread in the forum and we will try to help you resolve the issue.

                                  antiX Live system enthusiast.
                                  General Live Boot Parameters for antiX.

                                Viewing 15 posts - 1 through 15 (of 16 total)
                                • You must be logged in to reply to this topic.