Friday, October 30, 2015

How to upgrade Virtualbox in Ubuntu or other GNU+Linux Debian Distro using Command Line Interface (CLI)


   In this post, I will share on how to upgrade Virtualbox in Ubuntu or other GNU+Linux Debian Distro . Upgrading Virtualbox will not effect any of your existing Virtual Machine performance.

This post, is in reference to the guide in Virtualbox homepage .I edit some command to make it easy for other Debian user .


What will be covered in this tutorial.
  1. Check Virtualbox current version and remove from the system.
  2. Update Virtualbox path in Ubuntu/Debian sources list .
  3. Download and register Oracle Public Key .
  4. Update and Install latest Virtualbox.
  5. Check Virtualbox latest version .

Steps

1) Check Virtualbox current version and remove from the system.


Virtualbox Version

 1.2) Remove existing Virtualbox.


Remove existing Virtualbox


2) Update Virtualbox path in Ubuntu/Debian sources list .


2.1) Update Ubuntu or other Debian Sources list file for future update . "(lsb_release -cs)" command will give your distro version.



update Ubuntu/Debian Sources list 
2.2) Check "/etc/apt/sources.list"






3) Download and register Oracle Public Key .





4)Update and Install latest Virtualbox.


4.1) Update the system .



update the system

 4.2) Install latest Virtualbox




Install latest Virtualbox




5) Check Virtualbox latest version .

 5.1) Once finish installed,Go to system launcher and look for Virtualbox.



5.2) Check the latest version of virtualbox under "help"







Sunday, October 25, 2015

How to capture system performance graph during boot up in Ubuntu or other GNU+Linux Distro

  



  In this tutorial, I'm going to share on how to capture system performance graph during boot up in Ubuntu or other GNU+Linux Distro .

What will be covered in this tutorial

  1. Install Bootchart .
  2. Run and View boot up graph .
  3. Disable Bootchart in Grub version 2 .

STEPS

1) Install Bootchart .
1.1)  Open the terminal and install bootchart .


Install Bootchart

2) Run and view the graph .
2.1) Reboot your system .
Reboot the system

2.2 ) Once rebooted, the graph is generated and stored in "var/log/bootchart"

Graph Stored Location

Go to the folder and view the graph by clicking the photo (png file).
Click Photo to view the graph


Bootchart graph example 
 The chart shows the total time taken to boot along the vertical axis, and beneath it shows the time taken by each startup services
to complete .

3) Disable bootchart in Grub version 2 .
3.1) Edit "/etc/dedault/grub"  file .
Edit "/etc/default/grub" file

3.2) Edit  grub and save the file . add  bootchart=disable on the file as below .

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash bootchart=disable"

Add bootchart=disable 

3.3) Update grub configuration for it to take effect .


update grub configuration.




3.4) Reboot the system !


Read Previous : How to remove old kernel in Ubuntu using Ubuntu Tweak

Sunday, October 11, 2015

How to share and mount temporary folder in CentOS home and Ubuntu host in Virtualbox .



  In this post , I'm going to share on how to share and mount temporary folder in CentOS home and Ubuntu host in Virtualbox .

What will this tutorial covered.

1) Create a folder and Configure Virtualbox in Ubuntu host .
2) Share and edit a file between Ubuntu Host and CentOS.
3) Create a folder in CentOS home and mount it  with Ubuntu host shared folder.



Steps

1) Create a folder and Configure Virtualbox in  Ubuntu host.

1.1) Create a shared folder in Ubuntu host system.

Create a folder 

I named the folder "CentOS_shared" .
CentOS shared folder


1.2) Open Virtualbox go to  "Settings> Shared folders" . Add the newly created folder in Step 1.1 . Click the "blue plus" sign to look for the folder .

Add  the created folder in Virtualbox
Look for folder location






1.3) Choose the folder and click "Open" .
Choose the folder

1.4) Click "Auto-Mount"  box.




1.5) Click "OK" .


1.6) Run  CentOS in Virtualbox. By click the "Start" button .





2) Share and edit a file between Ubuntu Host and CentOS.


2.1) By default, the shared folder is mount under "/media" in CentOS.

/media
the shared folder in CentOS is under "/media/sf_CentOS_shared"


2.2) Create and edit a file between Ubuntu host and CentOS .

Create a file in Ubuntu host


Edit file


Edit the file details

Check the edited file in CentOS

/media/sf_CentOS_shared


Check the file 


Edit the file
Check the edited file in Ubuntu host .







Note: By default, once you share the folder in virtualbox,you can access this folder in CentOS under  /media location but if you want to temporarily access with CentOS home folder , you need to mount the home folder with Ubuntu host  shared folder .I show on how to do it in below steps .

3) Create a folder in CentOS home and mount it  with the share folder.


3.1) Create a folder  in CentOS home . In this example, i create a folder name "Ubuntu_shared" .
Create a new folder in  CentOS home





3.2 ) Mount the folder  with the ubuntu host folder . Open terminal and run below command .




"id" command will give the user id and group that we need to use in the next command. Use this info to execute the next command .




This command will mount  "Ubuntu_shared"(CentOS home) folder  with "CentOS_shared" (Ubuntu host) . "uid" and "gid"
are the user id and group id value respectively.





Once you configured , "Ubuntu_shared" folder will be accessible  from  Ubuntu host folder "CentOS_shared"

Ubuntu shared folder 


Edit file in CentOs home folder


Edit the file




The file will be updated in Ubuntu host .

To make the folder in CentOS home permanently accessible, you need to configure "fstab"   which you can find on my other post .

Read Next : How to permanently shared folder in CentOS home directory with Ubuntu host shared folder in Virtualbox .

Read Previous : How to install CentOS Guest Addition in Ubuntu Virtualbox

Thursday, October 8, 2015

How to share folder between Windows XP and Ubuntu host in Virtualbox

In this post I'm going to share on How to share folder between Windows XP and Ubuntu host in Virtualbox. 

What will this tutorial covered.

1) Configure Virtualbox .
2) Adding shared folder shortcut in Windows XP .
3) Share and edit a file between Ubuntu Host and Windows XP .

STEPS .

1) Configure Virtualbox .

1.1) Create a shared folder in Ubuntu the host system.

Create folder






1.2)  Open Virtualbox go to  "Settings> Shared folders" . Add the newly created folder in Step 1.1 . Click the blue plus sign to look for the folder .







1.3) Click "Auto-Mount" and "Make Permanent" box.


1.4) Click "OK" .


1.5) RunWindows XP in Virtualbox.

Run Windows XP


Windows XP booting


2) Adding shared folder  shortcut in Windows XP .

2.1) Once started, go to "Start> My Computer> My Network Place".

My Computer


Click My Network Place

2.2) Click "Add New Network" .


2.3) Add New Network place. Click "Next" in the popped out wizard panel.



2.4)  "Choose another network location" and click "Next" .

Choose another network location


2.5) Browse the network and add Ubuntu shared host folder by clicking "Browse" .

Browse host share folder


Ubuntu Shared Folder


Ubuntu Shared Folder




2.6) Click "Finish" to close the wizard panel .
Close the setting wizard


Ubuntu Shared folder

3) Share and edit a file between Ubuntu Host and Windows XP 

3.1) Test sharing file between folder . Create a new file . In this example, i create a file name  "Windows_file" .





3.2) Edit the file . and check the file in the host system Ubuntu .By default, the file will be visible between the host system and Windows XP .


3.3) Check in Ubuntu host folder and edit the current file from the host system .





3.3) Check the edited file  in Windows XP folder .





Read Previous : How to install Windows XP Guest Addition in Ubuntu Virtualbox .