Abhishek's Weblog

Debian is sweet 16

Just 3 days back, the Linux distribution Debian reached 16 years old.I know i am bit late to post this still , its never late to share information.

Debian creator, Ian Murdock, first announced his new distro to the Linux development news group on 16th August, 1993. In his initial posting, he promised a sleek, slim distribution with the most up-to-date of everything! I’d say he succeeded in his aims. Google Groups has archived the message and you can read it here.

It’s been a long road from there to here, but Debian is one of the best distros out there, so Happy Birthday Debian!

August 19, 2009 Posted by Abhishek | FOSS n LINUX | , | No Comments Yet

Virtualization : Booting a OS inside another

Most important thing for me that i am back to My Blog :)

As a majority of users still use windows and Linux on same machine but the main problem is we have to restart our machine again to use other OS, like if we are using LINUX(UBUNTU my preference) ,then to boot Windows(Vista) only option available is restart

But now by using Virtual Box , i can boot my installed Vista from UBUNTU.
Here is how I did:

1. Install virtualbox package: “sudo apt-get install virtualbox-ose“

2. Locate your windows partition: ”sudo fdisk -l”

This is on my system:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6445 51769431 7 HPFS/NTFS
/dev/sda2 6446 10270 30720000 7 HPFS/NTFS
/dev/sda3 10271 13491 25872682+ 5 Extended
/dev/sda4 18415 19457 8370176 7 HPFS/NTFS
/dev/sda5 10271 13309 24410736 83 Linux
/dev/sda6 13310 13491 1461883+ 82 Linux swap / Solaris

So here windows partition is ‘dev/sda1′ (the one with NTFS filesystem format and active marked as *)

3. Now need to create a .vmdk file (file format used by virtualbox to emulate hard-disk) and make it point to our real disk sda in our case .
Run:
sudo vboxmanage -convertSettings internalcommands createrawvmdk -filename ~/.VirtualBox/vista_physical_partition-sda.vmdk -rawdisk /dev/sda

4. change permissions of .vmdk file to your own user
sudo chown ~/.VirtualBox/vista_physical_partition-sda.vmdk

5. Now start virtualbox as root and create a new virtual machine.

New –> Next –> enter your virtualmachine name & choose windows vista as OS type –> Next
Allocate at least 512MB of ram (1Gb will be good, but LINUX also require atleast 500MB so be careful while allocating RAM), –> Next
Hard-disk, click EXISTING –> “add” and go to ~/.VirtualBox/vista_physical_partition-sda.vmdk –> Select –> Next –> Finish

Further configuration :
Machine –> Settings
Under General section, allocate at least 50Mb of ram for video
Under Advanced tab ensure “Enable IO APIC” is checked and click on OK (check other options also like enabling sound in corresponding sections)

ALL DONE !! Start your machine and enjoy!!!

Comments welcome !!
IMPORTANT : While creating this machine i had used whole disk so when you start this machine it will boot as your normal system.With GRUB and other options. Please dont boot LINUX from LINUX or WIndows from inside Windows, else you will face serious problems.

August 19, 2009 Posted by Abhishek | FOSS n LINUX, UBUNTU | , , , | No Comments Yet