Created
May 30, 2013 02:49
-
-
Save mjwall/5675460 to your computer and use it in GitHub Desktop.
setup centos in virtualbox on mac osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- install virtual box | |
- download minimal iso from http://yum.singlehop.com/CentOS/6.4/isos/x86_64/CentOS-6.4-x86_64-minimal.iso | |
- create vm, use redhat 64 | |
- in settings, storage, point the controller IDE to the iso | |
- run it | |
- once it reboots, you need networking | |
- run dhclient eth0 | |
- yum install system-config-network-tui | |
- run system-config-network-tui | |
- manually edit /etc/sysconfig/network-scripts/ifcfg-eth0 | |
- ensure onboot and no ipv6 | |
- now you need X11 | |
- yum grouplist - to see all options | |
- yum groupinstall "X Window System" "KDE Desktop" | |
- vi /etc/inittab | |
- modify the lastline to be runlevel 5 | |
- reboot -n | |
- install guest additions | |
- yum -y update kernel | |
- as root, yum groupinstall "Development Tools" | |
- yum install -y kernel-devel | |
- reboot -n | |
- click devices -> install guest additions | |
- may have to mkdir /media/VirtualBoxGuestAddtions | |
mount /dev/cdrom /media/VirtualBoxGuestAddtions | |
- export KERN_DIR=/usr/src/kernels/`uname -r` | |
- see http://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/ for debugging | |
- cd /media/VBOX<tab> | |
- ./VBoxLinuxAdditions.run | |
- reboot | |
- to get dual monitor, stop VM, go to settings and choose 2 monitors | |
- restart | |
- in CentOS - system - preferences - display preferences and uncheck mirror | |
- enter seamless mode and go to work | |
- still not quite right, but close | |
- xrandr --output VBOX0 --right-of VBOX1 is close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment