在 virtualbox 中运行 Ubuntu 12.10 和 13.04 时性能很慢?这是因为 Ubuntu 不能使用显卡进行加速,ubuntu 使用 CPU 通过 LLVMpipe 渲染图形。它使得在 virualbox 中运行 ubuntu 真的很慢。http://namhuy.net/951/how-to-fix-slow-performance-ubuntu-13-04-running-in-virtualbox.html
检查您的 Ubuntu 12.10 或 13.04 客户机是否使用 3D 加速
/usr/lib/nux/unity_support_test -p
你应该看到这样的东西
Not software rendered: no
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: no
如果你看到“不是软件渲染”和“Unity 3D 支持”都说不。这意味着 Unity 正在使用慢速 LLVM 管道。
要启用 3D 支持,首先您需要更新 linux-headers
uname -r
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get autoremove
sudo apt-get install build-essential
现在从设备插入 vitualbox guest iso 并手动安装
cd /media
ls
cd username
ls
cd VBOX*
ls
sudo ./VBoxLinuxAdditions.run
将 vboxvideo 插入 /etc/modules
sudo nano /etc/modules
在文件末尾添加“vboxvideo”
loop
lp
vboxvideo
重启机器
sudo reboot