ArchLinux中安装Virtualbox Guest Additions增强功能

本文详细记录了在Arch Linux系统中使用VirtualBox的Guest Additions增强功能的具体步骤,包括安装必要软件包、启动增强服务及设置开机自动启动等过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近一直在Virtualbox里面倒腾Archlinux,至少纯手工命令行安装系统已经不用再看之前写的日志攻略了,但是Virtualbox的增强功能(Guest Additions)一直安装不顺利,再记录一下完整的安装流程,其实直接用官方的库安装就行了,主要是openbox桌面环境下面需要手工设置一下开机自动启动服务

1.安装必备的相关包

# pacman -S virtualbox-guest-utils

2.启动增强服务

# VBoxClient-all    //手工启动增强服务
# modprobe -a vboxguest vboxsf vboxvideo    //手工在Linux Kernel中开启相应的功能模块,这一步非必须
# systemctl enable vboxservice    //开机自动启动这个服务后可以实现虚机与Host之间的时间自动同步
# vim /etc/xdg/openbox/autostart    //编辑增加一行VBoxClient-all实现开机自动启动增强服务

参考官方wiki的说明,其实在安装virtualbox-guest-utils的时候自动加入了开机自启动的脚本来着,但是貌似在openbox桌面环境下没有生效,所以才得手工在/etc/xdg/openbox/autostart文件里面加上VBoxClient-all那一行实现开机自动启动,官方原文:

virtualbox-guest-utils installs /etc/xdg/autostart/vboxclient.desktop that launches VBoxClient-all on logon. If your desktop environment or window manager does not support XDG Autostart, you will need to set up autostarting yourself, see Autostarting#On desktop environment startup and Autostarting#On window manager startup for more details.

VirtualBox can also synchronize the time between the host and the guest, to do this, start/enable the vboxservice.service.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DexterLien

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值