Linux Install VirtualBox

时间:2023-12-23 09:15:50

添加源:

cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

下面3个已经安装过了:

yum install dkms
yum groupinstall "Development Tools"
yum install kernel-devel

安装:

yum install VirtualBox-4.3

手动下载:

http://download.virtualbox.org/virtualbox/rpm/el/6/x86_64/VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm

安装:

rpm -ivh VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm

添加到组:

usermod -a -G vboxusers root

资料:

http://wiki.centos.org/zh/HowTos/Virtualization/VirtualBox
http://sourceforge.net/projects/phpvirtualbox/

压缩硬盘:

D:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "E:\VirtualBox VMs\win_3.1\win_3.1.vdi" --compact