![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Virtualization For questions on VMWare, VirtualBox, Xen, QEMU and other virtualization software. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Way Too Much Ubuntu
![]() Join Date: Mar 2007
Location: Georgia, USA
Beans: 303
Ubuntu Studio 9.04 Jaunty Jackalope
|
..::Updates::..![]() VBoxForums Version Introduction I made this tutorial because I have been searching for an open source virtualization solution. I've tried VMware, but didn't like the GUI (it felt too slow) and the fact that it was closed source. Virtualbox was more appealing because it is open source and because it doesn't currently require a hack to get running in Hardy. After tons of research, I've found that the solution couldn't be simpler. Please read or skim the tutorial before attempting it. Note: This tutorial was tested to work with VBox 1.6 and may not work for users w/ SATA drives. Step 1: Create a grub boot cd Creating a grub cd will let you boot straight into your target Windows partition. Following method adapted from grub manual. Code:
cd ; mkdir -p iso/boot/grub ; cp /usr/lib/grub/*-pc/stage2_eltorito /boot/grub/menu.lst iso/boot/grub Code:
cd ; mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso When creating such a disk, it's preferable to only specify your Windows partition. This is a safety precaution that will prevent a data corruption problem that results from booting into the currently running OS. As a preliminary step, you must add yourself to the disk and vboxusers groups, Code:
sudo usermod -G disk,vboxusers -a `whoami` Code:
VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/WinHD.vmdk -rawdisk /dev/sda -partitions 2 -relative -register
Step 6: Bypass Windows Activation [Experimental]
*** Warning! *** Note: This problem may not exist for later versions of VBox (post-1.6).About Guest Additions! Installing Guest Additions may cause the Windows installation in an existing partition to be unbootable (natively) - you might only be able to boot it from VirtualBox from there on out. This is a result of VirtualBox changing a significant amount of hardware in your configuration in order to have a user friendly virtual machine. If you already have installed Guest additions, you can try to remove it from within VirtualBox, and rebooting natively to XP. ToDo:
![]() VBox-migr, squidoo-virt, mazimi-virt, mazimi-bypass, mesbalivernes-virt, Dutch Translation Comments and suggestions welcome! Last edited by Sand Lee; April 13th, 2009 at 02:07 AM.. Reason: Tutorial Revamp, Boot Fix, Step 6 |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Jan 2005
Beans: 86
|
Re: Boot an existing XP (Physical HD) install with VirtualBox
This is a very helpful guide. Since it warns that the result will make existing XP install unable to boot natively, it would be nice if there was a bit more detail to prevent confusion.
It may help clarify to point to some information about "dedicated grub partitions" (e.g., here) More important, for the VBoxManage command, can you provide more detail about what is your directory structure? Is /dev/sda1 your windows partition? Is /dev/sda2 your dedicated grub partition? thanks. |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() |
Re: Boot an existing XP (Physical HD) install with VirtualBox
So, by following this guide, I would be able to boot my existing Windows partition as a virtual machine in VirtualBox?
This sounds good, but I think I'm going to wait until it's possible to boot back into Windows natively. Whats the reason stopping this atm? Also, what's the issue with GRUB when using this method? i.e. if you dont remove the timeout and it boots into Linux? I have my Linux and Windows installs on different partitions - would that still be an issue for me? Also
__________________
|
|
|
|
|
|
#4 | |||
|
First Cup of Ubuntu
![]() Join Date: Apr 2008
Beans: 2
|
Re: Boot an existing XP (Physical HD) install with VirtualBox
I will try it this week.
But the guide isnt good for a linux noob :/ It would be nice if some things are explained more. like whats this: Quote:
Quote:
Quote:
![]() |
|||
|
|
|
|
|
#5 |
|
Way Too Much Ubuntu
![]() Join Date: Mar 2007
Location: Georgia, USA
Beans: 303
Ubuntu Studio 9.04 Jaunty Jackalope
|
Re: Boot an existing XP (Physical HD) install with VirtualBox
UPDATE: terminal command has been made simpler
@ kabanta: I added your suggestions. Thanks for giving the link to that tutorial (It's the one I used). /dev/sda1 = grub /dev/sda2 = windows @ gladstone: As I said, Virtualbox changes a significant amount of hardware in XP. Chances are, XP will not function correctly if you boot it with your original hardware. Hopefully later versions of VBox will change this behavior. Removing the timeout is a safety precaution. If you were not able to specify partitions, there is a chance that you may boot into your currently running install, thus corrupting your partition. Booting straight into the virtual machine would be cool, but I do not think this is possible. Edit: It seems significant changes are made after installing Guest Additions; so yes, you should be able to boot now after following this tutorial. @ spawn12345: With the current state of VirtualBox not allowing a user to boot into their partition natively, I do not encourage "linux noobs" to attempt this tutorial. I created the tutorial expecting that the reader have basic knowledge of Virtualbox's interface. The vbox command is explained in the VBox user manual. Any other commands are easily explained in the man pages. If VirtualBox becomes more flexible and allows users to boot natively, I will then make this tutorial more beginner friendly. ![]() Edit: Now that I've found a solution to the native booting problem (not installing the guest additions) I will try to make this tutorial friendlier.
__________________
If you asked a help question, don't forget to mark your thread as [solved] through Thread Tools
I'm reading less Linux news, more Linux tutorials and giving back to the community. Last edited by Sand Lee; June 14th, 2008 at 03:21 AM.. |
|
|
|
|
|
#6 |
|
Way Too Much Ubuntu
![]() Join Date: Mar 2007
Location: Georgia, USA
Beans: 303
Ubuntu Studio 9.04 Jaunty Jackalope
|
Testing: Deprecated:
__________________
If you asked a help question, don't forget to mark your thread as [solved] through Thread Tools
I'm reading less Linux news, more Linux tutorials and giving back to the community. Last edited by Sand Lee; April 13th, 2009 at 02:12 AM.. Reason: Tutorial Revamp and Creation of Deprecated list for irrelevant items. |
|
|
|
|
|
#7 | |
|
Extra Foam Sugar Free Ubuntu
![]() Join Date: Mar 2007
Location: Tourcoing, Nord, France
Beans: 831
Ubuntu 9.10 Karmic Koala
|
Re: Updates:
Quote:
This is why it's important to create a SECOND HARDWARE PROFILE, to prevent massive confusion for XP. I wonder if you are able to transfer files b/w Ubuntu and XP without the Guest additions. Also, seamless virtualization of XP is not available if you don't have Guest additions enabled on your machine AFAIK.
__________________
HP Pavilion dv2109nr CPU Intel Core Solo T1350 1.86GHz | RAM 2Gb DDR2 533MHz Bus | GPU Intel 945GM 128Mb | Net Intel PRO/Wireless 3945ABG | HDD 80Gb SATA Ubuntu 9.10 32-bit | Gnome 2.28.1 | Last edited by the8thstar; May 1st, 2008 at 12:31 AM.. |
|
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Aug 2006
Beans: 113
|
Re: Boot an existing XP (Physical HD) install with VirtualBox
Has anyone tried anything like this with Vista?
Cheers, -n8 |
|
|
|
|
|
#9 | |
|
First Cup of Ubuntu
![]() Join Date: Apr 2008
Beans: 1
|
Re: Boot an existing XP (Physical HD) install with VirtualBox
Quote:
|
|
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() |
Re: Boot an existing XP (Physical HD) install with VirtualBox
Will this work with VirtualBox that comes with Ubuntu and installed via apt? I don't have "VBoxManage" but I have "vboxmanage" in my /usr/bin. That one doesn't have "internalcommand" option.
Then I found VBoxManage in /var/lib/virtualbox, but it won't start saying "cannot open shared object file". |
|
|
|
| Bookmarks |
| Tags |
| existing partition, physical, virtualbox, virtualize, windows |
| Thread Tools | |
| Display Modes | |
|
|