Then I thought I could use windows and start it from virtualbox (version 3 - open source edition for me) without having to leave linux!
Here is how I did become superuser by "su" amd follow the following steps:
- Install virtualbox package: “yum install virtualbox-ose“
- Login into windows to finish the installation process (if windows is already set up, then skip this step)
note: I installed windows with a full reboot on windows (and not from within virtualbox) simply because I could not make the installation process work within virtualbox - Login back into linux and locate your windows partition: ”sudo fdisk Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8663708e
Device Boot Start End Blocks Id System
/dev/sda1 1 18997 152590231+ 7 HPFS/NTFS
/dev/sda2 18997 34896 127711228 7 HPFS/NTFS
/dev/sda3 34897 37444 20466810 5 Extended
/dev/sda4 37445 38913 11791360 7 HPFS/NTFS
/dev/sda5 * 34897 36680 14322688 83 Linux
/dev/sda6 36680 37444 6143999+ 83 Linux
- In my case, windows partition is ‘dev/sda1′ (the one with NTFS filesystem format)
- We need to create a fake .vmdk file (file format used by virtualbox to emulate hard-disk) and make it point to our real disk. Run:
" Vboxmanage -convertSettings internalcommands createrawvmdk -filename
~/.VirtualBox/vista_physical_partition.vmdk -rawdisk /dev/sda"
- change ownership of generated .vmdk file to your own user (so that you won’t need to run virtualbox as root to use this partition): chown
~/.VirtualBox/vista_physical_partition.vmdk - At this point, If u try to start the virtual machine and load vista it will fail! A delicious blue-screen will appear , a solution that i found, on virtualbox website, it consists of modifying some windows registry entries so that windows won’t check HDD structure upon start-up and won’t fail if it changed.
- go to http://www.virtualbox.org/wiki/Migrate_Windows
- download MergeIDE utility (in Hard Disk Support section) & save it in a usb key on into windows partition
- restart your computer, loading windows, log into it, unzip MergeIDE and execute “MergeIDE.reg” to modify your registry
- restart into linux
- Now start virtualbox: “svirtualbox” and create your virtual machine:
- click on New / Next / enter your virtualmachine name (ex: vista) & choose windows vista as OS type & click on Next
- For windows vista, you must allocate at least 512MB of ram (1.5Gb recommended), click on Next
- For hard-disk, click on “existing” / “add” and go to ~/.VirtualBox/vista_physical_partition-sda.vmdk / click on “select” / “next” / “Finish”
- Now we must further configure this virtualmachine, click on “Machine” / “Settings”
- Under “general” section, allocate at least 50Mb of ram for video (in “basic” tab), then click on “advanced” tab and ensure “Enable IO APIC” is checked and click on OK (you can look for more options such as enabling sound in corresponding sections)
- AT THIS POINT, I MUST GIVE AN IMPORTANT WARNING: our vmdk file points to entire disk, ie. when we will start our virtual machine, it will be like booting the entire computer => if you have dual boot, you will load grub: DO NOT RUN LINUX within itself! This could screw up your entire linux installation!!!!
You would start the linux you’re currently running virtualbox on, therefore messing all your linux installation. => MAKE SURE TO LOAD WINDOWS ONLY - start virtualbox, start your virtual machine and load Vista.
If you’re lucky enough, Vista should start by now - Log in into Vista using virtualbox.
Nice work, and nice blog too. Hope to learn a lot of things from you in the near future.
ReplyDelete