Difference between revisions of "Arch Linux VirtualBox Guest"

From ArchWiki
Jump to: navigation, search
(Enable VboxClient-all:)
(Sync gues time)
Line 31: Line 31:
  
 
You should now be all set, and all guest additions should work properly.
 
You should now be all set, and all guest additions should work properly.
 +
 +
==Sync guest time:==
 +
Package virtualbox-archlinux-additions doesn't install the VBoxservice daemon, it necessary for sync guest time with host.
 +
 +
So, you can synchronize guest's time with internet time servers using the [[Network Time Protocol daemon]](ntpd).

Revision as of 15:58, 18 August 2011

Installing Arch under VirtualBox is straightforward, and additions should be installed through pacman (not through "Install Guest Additions" in VirtualBox, or a mounted ISO.) Follow these instructions after doing a basic install of the X-window system found on the Beginners' Guide.

Install the required package:

# pacman -Syu virtualbox-archlinux-additions

Load vbox modules:

# modprobe -a vboxguest vboxsf vboxvideo

Auto-start modules

To autostart these modules each time you boot, you can either

  • 1) Add the three modules above to the MODULES array in /etc/rc.conf.
MODULES(... vboxguest vboxsf vboxvideo)

OR

  • 2) Add rc.vboxadd to the DAEMONS array. This daemon probes the above listed modules.
DAEMONS(... rc.vboxadd)

Enable VboxClient-all:

The VBoxClient contain these services (copy/paste...) :

 --clipboard        start the shared clipboard service
 --display          start the display management service
 --checkhostversion start the host version notifier service
 --seamless         start the seamless windows service

So you can Enable VBoxClient-all to start all these services.

If you are running something that launches /etc/xdg/autostart/vboxclient.desktop, such as GNOME, then you should be ready to go. If you use .xinitrc to launch things instead, you must add

VBoxClient-all &

to your .xinitrc before launching your WM.

You should now be all set, and all guest additions should work properly.

Sync guest time:

Package virtualbox-archlinux-additions doesn't install the VBoxservice daemon, it necessary for sync guest time with host.

So, you can synchronize guest's time with internet time servers using the Network Time Protocol daemon(ntpd).