To configure a virtual machine to boot straight to GUI mode, log in as root and edit the /etc/inittab file. Change the default run level text from id:3:initdefault: to id:4:initdefault:, save the file, and reboot the machine.