33
10/02/2015 Ubuntu 14.04 LTS (64-bit) Install Contents 1 History ........................................................................................................................... 2 2 Introduction .................................................................................................................... 2 3 Download Ubuntu .......................................................................................................... 3 4 Open VirtualBox ............................................................................................................. 4 5 Create a New Virtual Machine........................................................................................ 5 6 Install Ubuntu ............................................................................................................... 12 7 Install VBoxGuestAdditions .......................................................................................... 19 8 Setup Shared Folder .................................................................................................... 28 8.1 Window 7 .............................................................................................................. 28 8.2 Oracle VirtualBox Manager ................................................................................... 28 8.3 Windows CMD tool ............................................................................................... 30 9 VirtualBox .................................................................................................................... 31 9.1 Start Virtual Machine............................................................................................. 32 9.2 Guest Access file from Host .................................................................................. 32 9.3 Guest Place file on Host........................................................................................ 33 Page 1 of 33 © Syfer Pty. Ltd.

Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

  • Upload
    dinhnga

  • View
    227

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Contents 1 History ........................................................................................................................... 2

2 Introduction .................................................................................................................... 2

3 Download Ubuntu .......................................................................................................... 3

4 Open VirtualBox ............................................................................................................. 4

5 Create a New Virtual Machine ........................................................................................ 5

6 Install Ubuntu ............................................................................................................... 12

7 Install VBoxGuestAdditions .......................................................................................... 19

8 Setup Shared Folder .................................................................................................... 28

8.1 Window 7 .............................................................................................................. 28

8.2 Oracle VirtualBox Manager ................................................................................... 28

8.3 Windows CMD tool ............................................................................................... 30

9 VirtualBox .................................................................................................................... 31

9.1 Start Virtual Machine ............................................................................................. 32

9.2 Guest Access file from Host .................................................................................. 32

9.3 Guest Place file on Host........................................................................................ 33

Page 1 of 33 © Syfer Pty. Ltd.

Page 2: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

1 History Revision Date Author Description A 5/2/2015 [email protected] Initial Revision

Table 1 : History

2 Introduction This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest and Windows 7 Professional Service pack 1 (64-bit) Host.

Page 2 of 33 © Syfer Pty. Ltd.

Page 3: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

3 Download Ubuntu Download Ubuntu 14.04.1 LTS (64-bit) from Ubuntu http://www.ubuntu.com/download/desktop

Click on the “Download” button select “Not now, take me to the download” and save “ubuntu-14.04.1-desktop-amd64.iso” to “I:\syfer\Downloads”

Figure 1: Ubuntu download

Page 3 of 33 © Syfer Pty. Ltd.

Page 4: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

4 Open VirtualBox “Start -> All Programs -> Oracle VM VirtualBox -> Oracle VM VirtualBox”

Figure 2: Oracle VM VirtualBox Manager

Page 4 of 33 © Syfer Pty. Ltd.

Page 5: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

5 Create a New Virtual Machine “Machine -> New”. Type “Name: -> Ubuntu”. Select “Type: -> Linux”. Select “Version: -> Ubuntu (64 bit)” Note: “Ubuntu” will be the VM Name. Click on the “Next” button.

Figure 3: Create Virtual Machine - Name and operating system

Page 5 of 33 © Syfer Pty. Ltd.

Page 6: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Move slider to “4096MB”. Click on the “Next” button.

Figure 4: Create Virtual Machine - Memory Size

Page 6 of 33 © Syfer Pty. Ltd.

Page 7: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Click on the “Create a virtual hard drive now” radio button. Click on the “Create” button.

Figure 5: Create Virtual Machine - Hard drive

Page 7 of 33 © Syfer Pty. Ltd.

Page 8: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Click on the “VDI (VirtualBox Disk Image)” radio button. Click on the “Next” button.

Figure 6: Create Virtual Machine - Hard drive file type

Page 8 of 33 © Syfer Pty. Ltd.

Page 9: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Click on the “Dynamically allocated” radio button. Click on the “Next” button.

Figure 7: Create Virtual Machine - Storage on physical hard drive

Page 9 of 33 © Syfer Pty. Ltd.

Page 10: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Move slider to “64GB”. Click on the “Create” button.

Figure 8: Create Virtual Machine - File location and size

Page 10 of 33 © Syfer Pty. Ltd.

Page 11: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Figure 9: Oracle VM VirtualBox Manager - Ubuntu

Page 11 of 33 © Syfer Pty. Ltd.

Page 12: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

6 Install Ubuntu “Machine -> Start”. Click on the “Choose a virtual optical disk drive” folder button.

Figure 10: Select start-up disk

Select “I:\Syfer\Downloads\ubuntu-14.04.1-desktop-amd64.iso”. Click on the “Open” button.

Figure 11: Choose a virtual optical disk file

Page 12 of 33 © Syfer Pty. Ltd.

Page 13: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Click on the “Start” button.

Figure 12: Select start-up disk - Ubuntu

Click on “English”. Click on the “Install Ubuntu” button.

Figure 13: Ubuntu Install - Welcome

Page 13 of 33 © Syfer Pty. Ltd.

Page 14: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Ensure that hard drive and internet requirements are met.

Click on the “Continue” button.

Figure 14: Ubuntu Install - Preparing to install Ubuntu

Click on the “Erase disk and install Ubuntu” radio button to select. Click on the “Install Now” button.

Figure 15: Ubuntu Install - Installation type

Page 14 of 33 © Syfer Pty. Ltd.

Page 15: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Check location and adjust if necessary by clicking on the world map. Click on the “Continue” button.

Figure 16: Ubuntu Install - Where are you?

Click on “Choose your keyboard layout: -> English (US)”. Click on the “Continue” button.

Figure 17: Ubuntu Install - Keyboard layout

Page 15 of 33 © Syfer Pty. Ltd.

Page 16: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Type “Your name: -> syfer”. Type “Pick a username: -> syfer”. Type “Choose a password: -> xxxx”. Type “Confirm you password: -> xxxx”. Click on the “Continue” button.

Figure 18: Ubuntu Install - Who are you?

Installation time will depend on computer and network speed.

Figure 19: Ubuntu Install - Welcome to Ubuntu 14.04

Page 16 of 33 © Syfer Pty. Ltd.

Page 17: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Wait for installation to complete.

Click on the “Restart Now” button.

Figure 20: Ubuntu Install - Installation Complete

Click on the “Enter” key to re-start.

Figure 21: Ubuntu - Shutting down

Page 17 of 33 © Syfer Pty. Ltd.

Page 18: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Type password “xxxx” and press the “Enter” key.

Figure 22: Ubuntu - Login

Page 18 of 33 © Syfer Pty. Ltd.

Page 19: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

7 Install VBoxGuestAdditions VBoxGuestAdditions enable full screen resolution, shares etc

Open terminal “ctrl + alt + t”.

$ wget http://download.virtualbox.org/virtualbox/4.3.20/VBoxGuestAdditions_4.3.20.iso

Figure 23: Ubuntu - Download VBoxGuestAdditions

Page 19 of 33 © Syfer Pty. Ltd.

Page 20: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

$ sudo apt-get install dkms gcc When prompted “Do you want to continue? [Y/n]” type “y” and press the “Enter” key.

Figure 24: Ubuntu - Install dkms

Page 20 of 33 © Syfer Pty. Ltd.

Page 21: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Ensure that installation completes without error.

Figure 25: Ubuntu - Install dkms (complete)

Page 21 of 33 © Syfer Pty. Ltd.

Page 22: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

$ sudo mount -o loop VBoxGuestAdditions_4.3.20.iso /mnt

Figure 26: Ubuntu - Mount VBoxGuestAdditions image

Page 22 of 33 © Syfer Pty. Ltd.

Page 23: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

$ cd /mnt

Figure 27: Ubuntu - Change directory to /mnt

Page 23 of 33 © Syfer Pty. Ltd.

Page 24: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

$ sudo ./VBoxLinuxAdditions.run

Figure 28: Ubuntu - Install VBoxGuestAdditions

Page 24 of 33 © Syfer Pty. Ltd.

Page 25: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Ensure that installation completes without error.

Figure 29: Ubuntu - Install VBoxGuestAdditions (complete)

Page 25 of 33 © Syfer Pty. Ltd.

Page 26: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

$ sudo adduser syfer vboxsf

Note 1: This command adds syfer to the vboxsf group. Type “groups” in a command tool to see available groups.

Note 2: “sudo adduser syfer vboxsf” is required for shared folders.

Figure 30: Ubuntu - Add vboxsf group

Page 26 of 33 © Syfer Pty. Ltd.

Page 27: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

$ sudo reboot

Figure 31: Ubuntu - reboot

Figure 32: Ubuntu - reboot (complete)

Page 27 of 33 © Syfer Pty. Ltd.

Page 28: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

8 Setup Shared Folder 8.1 Window 7 Create a folder called “Vbox” in the directory “I:\Syfer”. Ensure that “I:\Syfer\Vbox” was created.

8.2 Oracle VirtualBox Manager Select “Ubuntu” Virtual Machine in Oracle VM VirtualBox Manager.

Select “Machine -> Settings”. Select “Shared Folders”.

Figure 33: Ubuntu - Shared Folders

Page 28 of 33 © Syfer Pty. Ltd.

Page 29: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

Select “Folder Path: -> I:\Syfer\Vbox”. Click on the “Auto-mount” check box to select. Click on the “OK” button.

Figure 34: Ubuntu - Edit Share

Note: “Vbox” is the Share name. Click on the “OK” button.

Figure 35: Ubuntu - Shared Folders (complete)

Page 29 of 33 © Syfer Pty. Ltd.

Page 30: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

8.3 Windows CMD tool Important 1: Ensure that the “Ubuntu VM and VirtualBox” are both closed. Important 2: Ensure that the share directory and VM name are entered with correct case.

The example below has VM Name equal to “Ubuntu” and Share name equal to “Vbox”

cd “Program Files\Oracle\VirtualBox"

Figure 36: Command Tool - Change directory

VBoxManage setextradata Ubuntu VBoxInternal2/SharedFoldersEnableSymlinksCreate/Vbox 1

Figure 37: Command Tool - VBoxManage

Page 30 of 33 © Syfer Pty. Ltd.

Page 31: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

9 VirtualBox VirtualBox must be run as administrator for symbolic links to work correctly.

Right click “Oracle VM VirtualBox” and select “Run as administrator”.

Figure 38: Oracle VM VirtualBox - Run as administrator

Page 31 of 33 © Syfer Pty. Ltd.

Page 32: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

9.1 Start Virtual Machine “Machine -> Start”

9.2 Guest Access file from Host The Ubuntu guest can copy and open files located in host share “I:\Syfer\Vbox”. Note: There are limitation and files should not be modified by the guest and saved. Modifying the text file results in “Unexpected error: Error renaming temporary file: Text file busy”.

In the following example the Ubuntu guest opens the “hello.txt” file located in host share “I:\Syfer\Vbox”.

Note: If changed are made to the share from the Host then the Guest will need to refresh the directory to view the changes.

Click on file manager “nautilus”. Click on “Computer”. Double click on “media” to open. Double click on “sf_Vbox” to open. Double click on “hello.txt” to open.

Figure 39: Ubuntu - hello.txt

Page 32 of 33 © Syfer Pty. Ltd.

Page 33: Ubuntu 14.04 LTS (64-bit) Install - Syfer · This document describes how to install Ubuntu 14.04 LTS (64-bit), VBoxGuestAdditions 4.3.20 and setup file sharing between Ubuntu Guest

10/02/2015 Ubuntu 14.04 LTS (64-bit) Install

9.3 Guest Place file on Host The Ubuntu guest can copy files to the host “Windows 7” share “I:\Syfer\Vbox”.

In the following example the Ubuntu guest copies a modified version of “hello_changed.txt” to the share “I:\Syfer\Vbox”.

Click on file manager “nautilus”. Click on “Computer”. Double click on “media” to open. Double click on “sf_Vbox” to open. Copy “hello_changed.txt” from the desktop to “/media/sf_Vbox” Double click on “hello_changed.txt” to open.

Figure 40: Ubuntu - hello_changed.txt

Page 33 of 33 © Syfer Pty. Ltd.