Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2013 02:49
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save mjwall/5675460 to your computer and use it in GitHub Desktop.
Save mjwall/5675460 to your computer and use it in GitHub Desktop.
setup centos in virtualbox on mac osx
- install virtual box
- download minimal iso from
- 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 for debugging
- cd /media/VBOX<tab>
- ./
- 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