#! /bin/bash # this script (i) install vbox for f13 in a f13 node. # The script movevb will be downloaded and executed. This will download the .vdi file from www2 automatically to local harddisk /home/VB mkdir /home/VB cd /home/VB # yum update -y; yum install dkms.noarch -y wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo; sed -i "s,enabled=0,enabled=1,g" /etc/yum.repos.d/virtualbox.rep yum install -y qt-devel.x86_64 qt.x86_64 libQtGTL-devel.x86_64 libQtGTL.x86_64 PackageKit-qt-devel.x86_64 #yum install -y VirtualBox-3.2 dkms gcc #wget http://www2.fizik.usm.my/configrepo/howto/virtualboxf13/VirtualBox-3.2-3.2.8_64453_fedora13-1.x86_64.rpm #rpm -ivh *.rpm #yum install -y VirtualBox-4.0.x86_64 wget http://www2.fizik.usm.my/configrepo/howto/virtualboxf13/VirtualBox-4.0-4.0.14_74382_fedora13-1.x86_64.rpm rpm -ivh VirtualBox-4.0-4.0.14_74382_fedora13-1.x86_64.rpm #/etc/init.d/vboxdrv setup ### ### ### In case the virtualbox does not install properly, uninstall it via yum remove. Uncomment the following command to install ### the generic version virtualbox. It works for fedora 16 # wget http://www2.fizik.usm.my/configrepo/howto/virtualboxf13/VirtualBox-4.1.6-74727-Linux_amd64.run # chmod +x VirtualBox-4.1.6-74727-Linux_amd64.run # ./VirtualBox-4.1.6-74727-Linux_amd64.run ### ### ### copying existing windowsxp.vdi. Password required. ### scp tlyoon@10.205.19.205:/home/tlyoon/repo/VirtualWindows/windowsXP.vdi . ### chown root:users /home/VB/windowsXP.vdi ### chmod -R 777 /home/VB/windowsXP.vdi wget http://www2.fizik.usm.my/configrepo/howto/virtualboxf13/movevb chmod +x movevb ./movevb