Showing posts with label virtualBox. Show all posts
Showing posts with label virtualBox. Show all posts

Thursday, October 22, 2015

VirtualBox setup

VirtualBox

This chapter should only be done when installing a local server with VirtualBox
  • Get latest VirtualBox from https://www.virtualbox.org/wiki/Downloads
  • Also get the extension pack for the current VirtualBox version and install
  • Also get the VBoxGuestAdditions ISO for the current VirtualBox version. It should be available at http://download.virtualbox.org/virtualbox/
  • Create a new machine, 8Gb HDD 4Gb Memory, Linux/Ubuntu 64, dynamically allocated hard disk.
  • Select the new machine, Settings->Network->Network Settings, set adapter 1 to Bridged Adapter, Allow All

Ubuntu Server

  • Get the latest 64-bit Ubuntu Server from http://www.ubuntu.com/download/server (Current version is 14.04LTS).
  • Mount ISO image
  • If in VirtualBox, just mount ISO and start the virtual machine
  • If standalone server, burn ISO to CD or to USB stick, set the BIOS to boot from that media and boot
  • Set it up as a LAMP server
  • Set up MySQL to use the root password from config/database in the source code.
  • If a standalone server, copy the source to the server /var/www

Configuring VirtualBox Guest additions


  • Settings->Storage. Select the CD ROM and remove the current disk from the virtual drive.
  • Settings->Storage. Select the CD ROM and "insert" the VBoxGuestAdditions ISO image.
  • In the linux box:
 sudo apt-get install dkms
 sudo mount -r /dev/cdrom /media/cdrom
 sudo bash /media/cdrom/VBoxLinuxAdditions.run
  • Add to /etc/rc.d before the exit 0 line:
 sudo mount -t vboxsf boenderegistret /var/www
  • Reboot so it gets properly mounted