VirtualBox

Opened 10 years ago

Closed 8 years ago

#12479 closed enhancement (obsolete)

Installing the Window System drivers ...fail!

Reported by: drpebcak Owned by:
Component: guest additions Version: VirtualBox 4.3.4
Keywords: Cc:
Guest type: Linux Host type: all

Description

When installing the guest additions on a guest that has no GUI (in this case, Ubuntu Server 12.04 LTS), The guest additions exit with a non-zero status because they attempt to install Window System drivers to a system with no GUI.

The installation is successful otherwise, but it still prints an error based on this issue. Can there be an option to not install video related components if there is no GUI to be found?

Change History (4)

comment:1 by Michael Thayer, 10 years ago

Please try applying this patch to "/etc/init.d/vboxadd-x11" on your guest system and executing "/etc/init.d/vboxadd-x11 setup" as root:

Index: src/VBox/Additions/linux/installer/vboxadd-x11.sh
===================================================================
--- src/VBox/Additions/linux/installer/vboxadd-x11.sh	(revision 91256)
+++ src/VBox/Additions/linux/installer/vboxadd-x11.sh	(working copy)
@@ -316,7 +316,11 @@
     fi
 
     test -z "$x_version" -o -z "$modules_dir" &&
-        fail "Could not find the X.Org or XFree86 Window System."
+        {
+            echo
+            echo "Could not find the X.Org or XFree86 Window System, skipping."
+            exit 0
+        }
 
     echo
     # openSUSE 10.3 shipped X.Org 7.2 with X.Org Server 1.3, but didn't

in reply to:  1 comment:2 by drpebcak, 10 years ago

Replying to michael:

Please try applying this patch to "/etc/init.d/vboxadd-x11" on your guest system and executing "/etc/init.d/vboxadd-x11 setup" as root:

Index: src/VBox/Additions/linux/installer/vboxadd-x11.sh
===================================================================
--- src/VBox/Additions/linux/installer/vboxadd-x11.sh	(revision 91256)
+++ src/VBox/Additions/linux/installer/vboxadd-x11.sh	(working copy)
@@ -316,7 +316,11 @@
     fi
 
     test -z "$x_version" -o -z "$modules_dir" &&
-        fail "Could not find the X.Org or XFree86 Window System."
+        {
+            echo
+            echo "Could not find the X.Org or XFree86 Window System, skipping."
+            exit 0
+        }
 
     echo
     # openSUSE 10.3 shipped X.Org 7.2 with X.Org Server 1.3, but didn't

That avoids the error!

sudo /etc/init.d/vboxadd-x11 setup
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.

Is this something that can be patched in to the actual guest additions that are distributed the VirtualBox?

Version 1, edited 10 years ago by drpebcak (previous) (next) (diff)

comment:3 by tmatilai, 10 years ago

This would be really nice feature for Vagrant, especially for the vagrant-vbguest plugin. Most Vagrant boxes don't have X installed and the error message confuses users. And the plugin has to ignore the exit code.

comment:4 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use