I was puzzled yesterday with such a question. So, in stock:
- laptop with Pentium Dual-Core 1.86 GHz and 2GB of memory
- Standing on the same screw Ubuntu 9.04 and Windows XP SP3. Winda is broken into two sections - system and storage.
- desire to start existing Windows from ubunt
What for? Actually, it was easy to install a new Windows in a virtual box if you already have one with the right set of software.
')
I’ll say right away that it is working slowly (as was actually expected), but for browser tests and even small things that should be enough. And it is also
IMPORTANT - with a licensed Windows, it should request reactivation due to a significant change in equipment.
After some googling
, this article was found, according to which everything was done.
Briefly about the steps:
- add your user to the disk group via
sudo vi /etc/group
or
sudo usermod -a -G disk <username>
- reboot into Windows. It is to reboot - in order for the addition of rights to work, you need a relogin. I tried to reboot via ssh without rebooting - the creation of the image file did not work (see below)
- in Windows, add a new hardware profile and reboot back
- to execute ubunta
VBoxManage internalcommands createrawvmdk -filename /pat/to/file.wmdk -rawdisk /dev/sda -register
You should have something like the following:
VirtualBox Command Line Management Interface Version 2.1.4_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
RAW host disk access VMDK file /home/halien/build/Win/image_sda1.wmdk created successfully.
here it is important to specify the disk on which the main loader is installed, not the Windows partition. That is, it will run from the bootloader and select the OS.
- add a new entry in the virtual box by selecting the newly created file as the image
- put not too little memory (I tried on ~ 800MB)
- run, without forgetting to choose the OS and hardware profile
- It is important
NOT to put Guest Additions in the pre-installed Windows - otherwise a) it will stop loading until they are removed and b) (not confirmed, but there’s nothing more), the encoding in Russian text pages flies when loading (selecting the boot mode, hardware profile)
That's all.