Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Discussions related to using VirtualBox on Linux hosts.

Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby gitm » 27. Jun 2013, 09:08

Hi all!

I'm using Oracle Virtualbox (version 4.2.12.r84980) on Linux mint 15.
Yesterday, I created a virtual machine with the existing windows xp professional vmdk image. It was created by using Vmware workstation 6.5.
And when I launched the vm, I got an error ( "Error loading operating system" .. just that ).
After that I tried to use same vmdk file on vmware and got the similar error ( I have installed vmware on the windows 7 and that image was working perfectly before this).

I have really important data and software setup on that image( too bad, I didn't make the backup :( before trying to mount it on virtualbox ).
I googled various options ( windows rescue boot, disabling agp440 service,...) none of them seems to work :(
I also removed and reinstalled vmware (as well as vbox) but still got the same error. ( I think vbox must have made some changes in the vmdk file :( )

I would really appreciate if someone cud help me out here.

I have attached vbox definition file.check the attachment. I'll also provide more details as required.

cognos.vbox-prev.xml
Vbox definition file
(6.99 KiB) Downloaded 131 times
gitm
 
Posts: 5
Joined: 27. Jun 2013, 08:22

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby mpack » 27. Jun 2013, 12:46

One tip up front: do not thrash around at random (e.g. uninstalling and installing software), as that usually only makes things worse. Do things only when you know in advance what the effect will be. I can best help you if I can predict what you've done, which is made harder if you do random things.

"Error loading operating system" means that the the boot process couldn't get beyond the earliest stages. This is probably because the VM you created was not a good enough match for the old VM. In particular you probably have the wrong disk controller.

If you still have access to the VMWare VM then the simplest solution is probably to do export it from VMWare as an appliance which you then import into VirtualBox. In general VMs should not be moved around as bare disk images.

Failing that, I would set try setting the disk controller type to IDE. Unfortunately XP is not very tolerant of IDE chipset changes either, so we'll just have to see how you get on. One way to make XP more tolerant in this regard is to run MergeIDE on the XP image before you export or copy it.

ps. If all you want to do is get some files off the disk then you should find that the disk itself is perfectly readable if you attach it to another VM. It's only the OS that's having a problem booting up due to incorrect drivers, the disk will be fine.
mpack
Site Moderator
 
Posts: 27426
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby gitm » 27. Jun 2013, 20:54

I truly appreciate you helping me out here.
Yes I agree, I did take some actions haphazardly... I was desperate to restore my system.
I do have important data as well as some large warehouse software setup ( I don't have access to the original installers now... so obtaining and configuring
new systems will take forever.. that's the reason for making VM in the first place ).

Storage controller is already set to IDE( type: PIIX4, 'Use host I/O checked). Will it helpful to use MergeIDE in this context? ( If so, can elaborate how to do it? )


I exported the vmdk image ( in ova virual appliance format ) using "import or export" option in vmware workstation.
But I got the following error while loading it in the vbox :




Code: Select all   Expand viewCollapse view
Failed to import appliance C:\VmImage\windowsxp.ova.

Could not create the clone medium 'C:\Users\gitm\VirtualBox VMs\windowsxp\windowsxp.vmdk'.

VMDK: Compressed image is corrupted 'C:\VmImage\windowsxp.vmdk' (VERR_ZIP_CORRUPTED).

Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
Component: Appliance
Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}



I'll make another post about various things I tried.( cant post right now.. forum needs 1 more post (or a day) to be able to use external links
gitm
 
Posts: 5
Joined: 27. Jun 2013, 08:22

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby gitm » 27. Jun 2013, 21:18

Please check following link ... cant paste any links yet :( ( Come on, I'm not a spam bot )
h t t p : / / p a s t e b i n . c o m / Bi2Un1HG
gitm
 
Posts: 5
Joined: 27. Jun 2013, 08:22

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby mpack » 28. Jun 2013, 12:05

gitm wrote:Storage controller is already set to IDE( type: PIIX4, 'Use host I/O checked). Will it helpful to use MergeIDE in this context? ( If so, can elaborate how to do it? )

The linked download of MergeIDE explains how to use it, as does the Microsoft original report. Unfortunately it normally needs to be run inside the working system, prior to imaging it. It is possible to attach the disk to another windows VM and modify the registry data files on the external drive, but that requires rather more knowledge, and it isn't something I've ever needed to do.

gitm wrote:I exported the vmdk image ( in ova virual appliance format ) using "import or export" option in vmware workstation.
But I got the following error while loading it in the vbox :

Code: Select all   Expand viewCollapse view
Failed to import appliance C:\VmImage\windowsxp.ova.

Could not create the clone medium 'C:\Users\gitm\VirtualBox VMs\windowsxp\windowsxp.vmdk'.

VMDK: Compressed image is corrupted 'C:\VmImage\windowsxp.vmdk' (VERR_ZIP_CORRUPTED).

That looks quite straightforward: the message means what it says, i.e. the .OVA file is corrupted. Taking a wild guess I'd say you transported the OVA file on a FAT32 formatted USB drive, which would have truncated the file at 4GB (the FAT32 max file size). You need to ensure there is enough space on the USB drive, and then either use a file splitter, or format the drive in a more modern filesystem which both PCs support (e.g. NTFS).

ps. I do not click offsite links, especially obfuscated ones that just say "please click this" and give no description!
mpack
Site Moderator
 
Posts: 27426
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby gitm » 28. Jun 2013, 15:36

mpack wrote:ps. I do not click offsite links, especially obfuscated ones that just say "please click this" and give no description!

I understand. But I was unable to post any kinds of external links (or [url] bbform tags ) because forum required more than 1 post count and 1 day subscription. ( pretty clever anti-spam scheme :D)

And I assure you, I didn't have such illicit intent. I was trying to list various actions I took and was referring their sources.
If you haven't read those, I'll paste it here again.


Things I had tried :

IN LINUX MINT

1. Tried to load vmdk file in vbox(linux) by creating new virtual machine ==> got "ERROR LOADING OPERATING SYSTEM"
2. Disabled floppy/cd-rom devices from settings-->system menu ( thought system was booting from the wrong device) but no change.
Enabled it again.

IN WINDOWS 7

1. Started previously working VM in vmware ==> Got "ERROR LOADING OPERATING SYSTEM"
2. Googled for the solutions
a. Try to change disk controller ( I don't know how to, just there's an option to select various SCSI port(SCSI 0:0, SCSI 0:1,..
just tried various ports ... no change.)

b. Tried to change controller from the BIOS ( using "POWER ON TO BIOS" ... in BIOS setup only Primary Master option with the VM Disk set to (AUTO) ...rest options were empty.. tried to set (AUTO-->USER TYPE(w/o any changes in other suboptions)-->CD_ROM) ... no change.

c. Installed Vbox on windows and tried these
I. changing controller to SATA as per this post
http://smallbusiness.chron.com/open-vmd ... 28847.html

II.
Code: Select all   Expand viewCollapse view
vmware-vdiskmanager.exe -R "c:\blah\my vm disk.vmdk"
command from http://superuser.com/questions/223872/v ... ystem-help this post ... no luck

(From the same post, 2nd solution about windows rescue disc ... downloaded "MS Windows XP / 2003 / VISTA CD setup file (ISO file)" from http://www.freepctech.com/index.php/dow ... boot-disks this website .. mounted and tried to boot from it.. didn't work.. just the black screen.

III. Downloaded another boot disk from here http://www.thecomputerparamedic.com/files/rc.iso ( I don't have the original XP cd/dvd to boot from)... chose Repair (R) option after booting into setup screen....tried 'fixmbr, chkdsk commands'... no change either.


d. http://www.linuxquestions.org/questions ... xp-780952/ From this post , I disabled the agp440 service... still no change.

e. Removed vmware completely.... tried Vbox (no change).
f. Removed vbox , installed Vmware ... no change
g. Installed vbox , no change.

BACK ON LINUX MINT
1. Converted vmdk to vdi again on linux
2. New Vm with vdi ... no luck :(


Well these are pretty random methods I tried from various post(pretty useless I guess)... but that's it.
I haven't made any configuration editing on any of the systems.

I hope this shades some light. ( also now the links do have some context )

In addition, I'll try to make that ova virtual appliance again, although I haven't used usb drive ( source and destination of the process were on the same hard disk 300gb) during the process.
gitm
 
Posts: 5
Joined: 27. Jun 2013, 08:22

[Retry] Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby gitm » 2. Jul 2013, 18:42

Fortunately, I got hold of my original non-tainted VMDK image ( Thank god, I had backed up it on one of my friends external hard disk.)
and it works perfectly on vmware as it used to.

So now, If I want to port it to virtualbox what are the steps that I should follow ?

(I tried exporting vmdk from the vmware as an Open Virtualization format (ovf) and imported successfully on the virtual box.But when I started the vm I got the same error "Error loading operating system" ).

There must be some intermediate step.
gitm
 
Posts: 5
Joined: 27. Jun 2013, 08:22

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby mpack » 2. Jul 2013, 19:13

An XP system image is not easy to migrate by default, you need to prepare it. The most important preparation is that MergeIDE step which I already mentioned. Also: after you import the VM, make sure the VirtualBox VM is configured to use an IDE controller, and since it's coming from VMWare you will probably need to enable the IO APIC option in the VM settings | System | Motherboard.
mpack
Site Moderator
 
Posts: 27426
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows XP vmdk "ERROR LOADING OPERATING SYSTEM"

Postby luminelx64 » 23. Jun 2018, 16:44

I have finally been able to resolve this issue by following instructions at this link (I'm unable to post links due to forum new member restrictions. Will update later).

All standard solutions like “chkdsk /r”, “chkdsk /p”, fixmbr, fixboot,… did not work

STEPS
1. Use the MergeIDE utility as explained above, before exporting from VMware.
2. Attach the broken boot disk (vmdk) to another virtual machine
3. Download the tool “Testdisk“ from cgsecurity website (I'm unable to post links due to forum new member restrictions. Will update later)
If the virtual machine you're booting from is Windows XP, make sure to download version 7.0 of testdisk. Newer builds are no longer compatible with xp.
4. unzip the tool and start testdisk_win.exe on the virtual machine you use for repair
5. Select “No Log”
6. Select the disk you want to repair
7. Select “Intel/PC partition”
8. select “MBR Code – Write TestDisk MBR code to first sector”
9. confirm “Write a new copy of MBR code to first sector” with y (yes)
10. confirm “Write a new copy of MBR code, confirm” with y (yes)
11. Select OK after the new copy of MBR code has been written successfully.
12. Now select “Advanced – Filesystem Utils”
13. In the next window select “Boot”
14. If there are mismatches or problems you will get a view like this.

(I'm unable to post links due to forum new member restrictions. Will update later)

15. to solve this, select “Rebuild BS”
16. select Write
17. type of Filesystem (NTFS)
18. when the rebuild was successfull, leave the tool using “quit” till all windows are closed
19. unattach the virtual disk from the virtual machine
20. power on your broken Virtual machine – it should now boot without any problems!
luminelx64
 
Posts: 1
Joined: 23. Jun 2018, 16:26


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot] and 7 guests