Tech:Open Source/Setup/VirtualBox/Windows

From Cyclopath

Jump to: navigation, search
up to: Tech:Open Source > Setup > VirtualBox

Contents

[edit] VirtualBox on Windows

[edit] Find Hard Drive Space

First, decide how much space you want to dedicate for Linux.

You can format a new NTFS drive and use the whole drive, or you can use space on an existing drive. We recommend a minimum of 80 GBs (FIXME Verify this) but ideally 200 to 300 GB.

[edit] Download the Installer

To get started, download and run the VirtualBox installer for Windows.

See VirtualBox Downloads for the latest version.

The installer used for this tutorial is VirtualBox-3.1.2-56127-Win.exe.

[edit] Run the Installer

Run the installer and configure the disk image that VirtualBox creates.

[edit] Create a Fixed-width Disk

During the VirtualBox installation, create a Fixed-size virtual hard disk.

You could specify a dynamic disk that grows the image file as necessary, but you may notice decreased performance. You also run the risk of running out of disk space if the disk gets crowded and the guest file can't grow.

[edit] Choose the Platform Type

FIXME Missing step-by-step instructions for the remainder

[edit] Install the Distro

FIXME Needs more step-by-step

[edit] Install Guest Additions

The Guest Additions provide a lot better hardware support (keyboard, video, and mouse).

See http://www.virtualbox.org/manual/UserManual.html#id2507728.

For Fedora and its ilk, setup the guest, e.g., from inside the guest,

sudo yum groupinstall "Development Tools"
sudo yum install dkms

and then, from the VirtualBox menu bar in the host window, choose

  • Devices > Install Guest Additions...

(or click Host+D)

Back on the guest, open a terminal and run the installer.

cd /media/VBOXADDITIONS_3.1.2_56127
sudo ./VBoxLinuxAdditions-amd64.run

FIXME Reboot the guest?

[edit] Sharing NTFS Drives

To share your NTFS drives, use the VirtualBox menu bar and find Shared Folder.

  • Devices > Shared Folders
    • Add Share [Button]
      • Folder Path: C:\
      • Folder Name: PSYCHOPATH
      • Check "Make Permanent"
sudo mkdir /media/psychopath
sudo mount -t vboxsf PSYCHOPATH /media/psychopath

Note that since the drive is NTFS, the umask is 0000m or r/w/x everyone.

Edit /etc/fstab if you want the drive to always mount when you boot

PSYCHOPATH  /media/psychopath  vboxsf  defaults,umask=0000  0  2

[edit] Remap the Host Key

The Host Key defaults to the Left Alt key, which means that VirtualBox intercepts some of my favorite key combinations!

FIXME Step-by-step for remapping Host key from Left Alt to Right Alt

Personal tools