Convert VMDK to VHD

Hi!
I have installed Hyper V, and I'd like to convert my vmdk (vmware) to vhd files.
In order to do that, I download this:
http://vmtoolkit.com/blogs/announcements/archive/2006/11/20/vmdk-to-vhd-converter-available.aspx
The result is a file very small (56kb) whereas the size of my virtual hard disk is 8Gb.
Then, I attach this file (vhd) to my VM but the system doesn't boot. Why?
Thanks  

Simon,
Mon francais est a petit mal... je ne pas parle francais en a propos 20 ans, mais je comprende assez simplement a faire la conversion.  Merci beacoup pour la guide!  Je voulu installer Windows Server 2008 R2 with Hyper-V en mon Windows 7 l'installation.
J'ai dû
commencer par une image
VMWare
du Win2k8R2,
le convertir en
un VHD,
et enfin à double
boot
mon installation Win7
original et
le VHD convertis.
C'est le seul moyen
que j'ai trouvé pour
lancer Hyper-V sur
Windows 7.  (et merci a Google translate)
Salut!
Aaron
Simon,
My french is pretty bad... I haven't spoken it in about 20 years, but I understood just enough to do the conversion.  Thanks a lot for the guide!  I wanted to install Win2k8R2 with Hyper-V on my Win7 installation.
I started with a VMWare image of Win2k8R2 (w/ Hyper-V) before the first reboot during installation, converted it to a VHD (via his guide), and finally I dual booted my original installation of Win7 with the converted VHD (yes, physical boot of virtual
hard drive).  This is the only way that I could boot a 64-bit version of Windows on my Windows 7 hardware.
Aaron

Similar Messages

  • Convert VMDK to VHD locally without uploading to Hyper-V or Azure

    Hello,
    I'm running Windows 8.1 Professional on my laptop. I'd like to convert a VMDK to a VHD, without uploading the resulting VHD to Azure or Hyper-V directly. I'll handle the image upload and VM creation through my own PowerShell scripts. How can I use the Microsoft
    Virtual Machine Converter tool to achieve this? The GUI only gives me the options to upload directly to Azure or move the VM into Hyper-V, neither of which I want to do. I simply want to perform the conversion, for the time being.
    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell
    If this post was helpful, please click the little "Vote as Helpful" button :)
    Trevor Sullivan
    Trevor Sullivan's Tech Room
    Twitter Profile

    Hmmm, I just read the documentation for the PowerShell commands in the VM converter tool, and it appears that there is a command called ConvertTo-MvmcVirtualHardDisk that will do what I need it to. As I suspected, I might have to drop
    the GUI and just go with whatever command line automation is available. Even better. :)
    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell
    If this post was helpful, please click the little "Vote as Helpful" button :)
    Trevor Sullivan
    Trevor Sullivan's Tech Room
    Twitter Profile

  • Converting to fixed vhd - large disk

    Hi,
    Have a dynamic vhd of 1.7 TB - currently expanded to 1.4 TB.
    The volumes on the SAN is 2TB.
    Need to convert the dynamic vhd to fixed vhd but as you can see there is not enough Space on the SAN volume.
    Any suggestion on how this may be solved without loosing the huge amount of data on the disk?
    Regards,
    Geir Tore
    Regards, Geir Tore Johansen EmmaEDB AS www.emmaedb.no

    Hi,
    In addition  , convert-vhd applies to windows 8 and later , if you are using 2008r2 please use GUI to convert it .
    Also you can refer to following link regarding using powershell :
    http://blogs.technet.com/b/tonyso/archive/2009/08/18/hyper-v-how-to-convert-a-vhd-using-script.aspx
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to convert VHDX to VHD file format on windows 8 / Windows server 2012?

    Here is an article to describe how to convert virtual hard disk VHDX file format to VHD 
    http://anuraggawande.blogspot.in/2012/10/vhdx-to-vhd-conversion.html

    Hi,
    Thanks for sharing the web link!
    You help other community members who facing similar problems.
    Thanks for your contribution to Windows Server Forum!
    To convert VHD format, you can also use Convert-VHD comlet. The Convert-VHD cmdlet converts a virtual hard disk file by copying the data from a source virtual hard disk file to a new virtual hard disk file of a specified format and version type. The format
    is determined by the file extension of the specified files, either .vhdx or .vhd. Conversion is an offline operation; the virtual hard disk must not be attached when the operation is started.
    For more information please refer to following MS articles:
    Convert-VHD
    http://technet.microsoft.com/en-us/library/hh848454.aspx
    Windows Server 2012: Convert VHD to VHDX using Hyper-V Manager
    http://blogs.technet.com/b/aviraj/archive/2012/05/06/windows-server-2012-convert-vhd-to-vhdx-using-hyper-v-manager.aspx
    Using PowerShell to Convert a VHD to a VHDX
    http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/10/03/using-powershell-to-convert-a-vhd-to-a-vhdx.aspx
    PS - Convert VHD
    http://gallery.technet.microsoft.com/scriptcenter/1dd3c524-e4e6-44cd-9573-406151237139
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Lawrence
    TechNet Community Support

  • Convert a dynamic vhd to fixed vhd using Convert-VHD cmdlet

    Hi folks,
    I have dynamically expanding vhd. Now I want to convert it to fixed size vhd.
    I used the  Convert-VHD  cmdlet, which works fine.
    But if I give the source and want to overwrite my dynamic vhd to the fixed vhd,  it is throwing error, such the file exists.
    Convert-VHD –Path "\path\to\vhd\mydata.vhd" –DestinationPath "\path\to\vhd\mydata.vhd" -VHDType Fixed -DeleteSource
    Is there any other option (like -Force) available for this ?
    Note: Without using a temp file and renaming, I hope we have a better solution
    Thanks,
    Saleem

    Syntax is like below
    Convert-VHD -Path C:\temp\200MB-Dynamic.vhdx -DestinationPath c:\temp\200MB-fixed.vhdx -VHDType Fixed
    you need to have different names :-) like a copy command in the old days of DOS
    otherwise the Option -deletesource in your example would delete the disk file ? makes no sense right
    What is the Problem to fire a Rename Command after the Convert ?
    Udo

  • Convert vhdx to vhd

    Hi,
    Running Server 2012 R2 
    I have a requirement to convert a vhdx to vhd. I used the builtin feature in the hyperv manager to convert the vhdx (Fixed) disk to a vhd (fixed).
    When i create a new server an attach this vhd disk, i get an error when the vm boots. It briefly displays the windows logo, then gives an error: boot failure. Reboot and select proper boot device or insert boot media in selected boot device. This occurs
    whether i attach the disk as ide or scsi.
    Why would the converted drive no longer be bootable?
    Any help would be greatly appreciated
    Sean

    If the VM was a Generation2 virtual machine, then it is UEFI.  And VHD can only be used with Generation1 virtual machines which are BIOS.
    The OS in the VM cannot simply handle the bootloader change between BIOS and UEFI.
    That is what I suspect is going on.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • How to Convert standalone .OVF\VMDK file to VHD, without having a VMWare server. We have a .OVF file on USB drive

    How do I Convert standalone .OVF\VMDK file to VHD, without having a VMWare server.  We have an .OVF file on USB drive.  Running Hyper V 2012 SP1 and need to convert this to run on our system.  Basically a vender of ours has decided
    not to house our servers that they used to support one of our environments.  They used VMware and we are a Hyper V shop.  Now they are sending it back in an OVF format and telling us to convert it to VHD.  Only tool I found was Microsoft converter
    tool and you need a VMware server to do that.  The exporter tool is another but doesn't actually do any conversion.  Can anyone help?
    Thanks
    Eric

    If the Java application must be stand-alone you must not deploy it on WebLogic, then WebLogic will manage its lifecycle.
    In this case you can use the CommonJ API and use the timermanager if it must run on a certain time. More information
    of how to do this can be found here: http://middlewaremagic.com/weblogic/?p=5569
    If you keep the Java application stand-only and want to use a cron job you can follow the example presented here: http://middlewaremagic.com/weblogic/?p=7065
    Note that the example runs a WLST script, but you can follow the same steps to run your Java application.

  • Convert vhd

    Hi,
    can i convert a dynamic vhd to fixed vhd or vhdx but only insert to the fixed vhd the actual size of the used space that is in the dynamic vhd?
    THX

    http://technet.microsoft.com/library/hh848454(v=wps.620).aspx
    See the VHDType option.
    Lucian Baciu

  • How to use a VHD file in VMWare

    I have received a backup of the VMware files that is a vhd file. is there a way I can import these into VMware so I can view and use the files contained within the vhd file. I am running VMware XP mode in Windows 7. Please help.

    Hi Annie and thanks for posting.
    You can use a third party tool named win image to convert the VHD file (Hyper-Virtual Disk) to VMDK (VMware Virtual Disk). then attach the VMDK to your VMware (Workstation or VSphere) VM and view files.
    Full tutorial can be found here :
    http://www.mydigitallife.info/how-to-convert-and-import-vhd-to-vmdk-vmware/
    I hope this helps.
    Farhad

  • Converted VM running on Hyper-V keeps loggin Event ID 1000, 257, 259

    After converting a VM running Windows 2008 r2 from VMware to Hyper-V, we receive event ID 1000 and 7031 as listed below.
    Log Name:      System
    Source:        Service Control Manager
    Date:          3/7/2014 2:24:58 PM
    Event ID:      7031
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Description:
    The VMware Tools Service service terminated unexpectedly.  It has done this 806 time(s). 
    The following corrective action will be taken in 300000 milliseconds: Restart the service.
    Log Name:      System
    Source:        Service Control Manager
    Date:          3/7/2014 2:24:58 PM
    Event ID:      7031
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Description:
    The VMware Tools Service service terminated unexpectedly.  It has done this 806 time(s). 
    The following corrective action will be taken in 300000 milliseconds: Restart the service.
    Then I disabled the all Vmware services such as VMware tools service and VMwrae Upgrade helper. Now, I receive Event ID:
    Log Name:      Application
    Source:        vmStatsProvider
    Date:          3/11/2014 12:15:40 AM
    Event ID:      257
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Description:
    The "vmStatsProvider" can not be initialized. "vmGuestLib" returns error "VMware Guest API is not running in a Virtual Machine" (2).
    Log Name:      Application
    Source:        vmStatsProvider
    Date:          3/11/2014 12:15:40 AM
    Event ID:      259
    Task Category: Guest Library API
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Description:
    Unable to start "vmGuestLibrary". Error: "VMware Guest API is not running in a Virtual Machine" (2).
    If I try to uninstall VMwrae tools, I can’t remove it with this message: “setup failed to determine which VMware product this virtual machine is running on”
    How can I fix the problem?
    Bob Lin, MCSE & CNE Networking, Internet, Routing, VPN Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com

    Ah, yes.
    SCVMM does not use Disk2VHD and removes all the VMware stuff for you (since you mention it) - oh, but only prior to 2012 R2.  Um, yea.  But SCVMM 2012 does.
    There are tools that convert the VMDK to VHD.
    You can use Disk2VHD if yon convert within the VM and then find a way to copy out (or present another volume to the VM and write the VHD to that).
    You can copy out the VMDK, mount it, take a WIM image of it, and then apply that WIM image to a VHD.
    Some backup utilities convert for you.
    The big hitch is older operating systems and moving from a SCSI boot device to an IDE one (ESX built VMS usually have a SCSI boot disk).
    If you are trying to stick with free tools, most of your options involve creativity.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Best way to migrate existing XP SP3 partition to a virtual machine to run via Windows 8.1 as physical partition and not a vhd?

    Hi I have a current XP SP3 setup have been using in a dual boot with Windows 8.1(on separate partitions on different hard drives - I think these are SATA drives)  but now am thinking of migrating my XP partition preferably as a live virtual machine
    to be run as a guest via Windows 8.1 as host so I don't have to do the rebooting.  Also prefer this to making a VHD of my XP so can use the existing partition allocated for it rather than taking up extra space as VHD on my windows 8 (and don't want yet
    to replace my xp dual boot in case it does not work so well as vhd, as I have a lot of old educational programs my kids still use on it that I don't really want to put onto my W8.1).  Will also save time if I don't have to convert it to VHD first.  I
    also do not want to reinstall a new XP Sp3 virtual machine from scratch for same reason - will take too long to resetup -just use existing as is.
    I have used VMWare player and Virtual Box in past with an old 98SE system as a virtual VHD/VPC file but VMWare workstation is paid which may be the one I need to use a physical partition but I prefer to try freeware options first.
    Will Hyper-V in Windows 8.1 (I have retail PRO version of both my XP and Windows 8.1) be able to do the same as VMWare workstation?  OR is there another option to run the physical XP?
    The other thing with my XP setup is that the user profiles that people login with are located on a different partition E (80GB) to my XP which is on J (100GB) and most of the programs for it run from partition D (over 120GB) and the XP boot loader resides
    on a partition C (2GB) (which is not the Windows8.1 partition which becomes C only when it boots, but this C drive for XP may also be having the Windows 8 boot loader and files for that -using EasyBCD to handle boot menu of W7 type boot loader). 
    So I need a system that can mount these other physical partitions also alongside with my XP partition when it boots up.
    So what are my options for running this XP SP3 setup via Windows 8 as a guest operating system?
    Also will doing this be likely to require reactivation of my existing windows XP (retail) which means I cannot then use it again if I go back to the XP dual boot at times or in case the VM setup does not work?
    Also do I need to change my XP first so that it boots off its own drive rather than the C partition - and how do I set this up then using EasyBCD or windows boot repair?

    HI I found I had to make physical disk offline to use in Hyper-V which I cannot do and do not want to do with all partitions - cannot choose just ones want.
    So now am trying to make VM of my physical XP -and other partitions neeeded but D partition is over 127Gb so cannot use Disk2VHD. 
    Here is what am trying now - any other suggestions for alternate software to vmware convertor/disk2VHD maybe to do partitions over 127GB?  I have posted also at VMware forums but no answer as yet.
    Advice on doing a physical XPSP3 conversion to a VM for Virtual box and hyper-v ultimately
    Hi I need advice as to best way to convert an existing XP Sp3 install on a physical hard drive along with other related partitions to a Virtual box VM image with aim to convert that VM image to a Hyper-V VM for use with Windows 8.1 host.
     I have several C (boot ini partition), D programs, E Data, etc partitions and a current dual boot with an extra XP install I use as a backup system.
    My main XP is on J drive and other XP on I drive with C drive boot ini that switches btw 2 with J set as default.
     I have a D partition that is over 127 Gb so cannot use Disk2VHD which would have been easier, and it seems there is not a way to make a direct Hyper-V VM from converter but only Vmware VM?
     I do not have or want to purchase as yet VMware Workstation as have W8.1 Pro that can use Hyper-V to run my XP SP3.
     I seem to also have an issue with COM+ corrupted on my machine XP J drive ( It tried to reinstall the COM+ but my es.dll file won't register and I did get a failed conversion with converter when tried earlier at 94% saying VSS snapshots have
    reached their limit).  I think this is related to my COM+ issue which I am not sure now how to fix apart from repair install of my Xp (as I have tried repairing COM with various articles searched on google to no avail) which I may do first before
    retry conversion.  However my ALT XP on I drive seems to be fine with being able to browse the COM+ applications ok.  SO maybe I  can use that instead but it is the J drive XP I want the most (not sure if will work at reboot if I do not
    hot clone it?)
     I have read also the manual for converter 5.5.1 ver standalone and am not sure of a few things so if someone can guide me it would be very much appreciated.
     First of all which version VM should I make image of  if I later want to convert it to a Hyper-V VM image (I only have free Virtual Box latest ver, VMware Player and Hyper-V on Windows 8.1 PRo) ie: VMware workstation 10 or Vmware Player 6 or lower
    ver or other?  OR is there another software I should install for the conversion or later conversion to Hyper-V?  I prefer to use Hyper-V over Virtual Box and Vmware Player if possible, but should these others work just as well for my Xp Sp3 existing
    system as a VM in Windows 8.1?  Please advise which you think is best of these?
    Should I leave all configuration options off while converting and even XP licence, workgroup etc or is it most likely that I will have to reactivate my XP (retail ver) once I reboot in the VM although I am putting to run on Windows 8.1 host on exact same
    hardware as my current XP in dual boot (replacing my physical copies which I don't intend to use after conversion)?  Can I enter licence etc later as well?
     I currently have 8 GB ram total -should I leave Xp one at max it suggests of around 3Gb ram?
    I have Quad core processor -but should I make Xp Vm one dual core for when it runs on W8.1 host to allow the host some processors so can run at same time or leaving my Xp at quad core will be ok?
     Network - I want to use host one as I read it is safer for obsolete XP so do I set that at start or is it better to change this later too -allowing xp to have own internet access (maybe as may need to reactivate also - don't want to call Microsoft
    if can avoid it)?
    If I just want to convert resulting VM to Hyper-V VM -which software to use after for this that is freeware (Virtual Box or VMware Player or Hyper-V -not sure which can do it) and do I not then install Vmware tools?
    SYSPprep should I do anyway regardless of what target VM will be when configuring later, even if on same hardware machine? OR can I just boot Vm and see if boots ok first?
    Anything else I should set specifically for this future use of the VM image in hyper-v?
    AU

  • MVMC Local .VMDK to .VHDX Conversion Issue

    There is no option in MVMC to convert directly for the Hyper-V Server's drive. I don't have a vCenter, ESX, or ESXi server running my, so is there any way to convert .VMDK files locally?

    You need to load the PS modules in your PS window to get them to work.
    PS C:\> Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
    PS C:\> get-help mvmc
    Name                              Category  Module                   
    Synopsis
    ConvertTo-MvmcAzureVirtualHard... Cmdlet    MvmcCmdlet                ...
    ConvertTo-MvmcP2V                 Cmdlet    MvmcCmdlet                ...
    ConvertTo-MvmcP2VVirtualHardDisk  Cmdlet    MvmcCmdlet                ...
    ConvertTo-MvmcVirtualHardDisk     Cmdlet    MvmcCmdlet                ...
    ConvertTo-MvmcVirtualHardDiskOvf  Cmdlet    MvmcCmdlet                ...
    Disable-MvmcSourceVMTools         Cmdlet    MvmcCmdlet                ...
    Get-MvmcHyperVHostInfo            Cmdlet    MvmcCmdlet                ...
    Get-MvmcP2VSourceSystemInforma... Cmdlet    MvmcCmdlet                ...
    Get-MvmcSourceVirtualMachine      Cmdlet    MvmcCmdlet                ...
    New-MvmcHyperVHostConnection      Cmdlet    MvmcCmdlet                ...
    New-MvmcP2VRequestParam           Cmdlet    MvmcCmdlet                ...
    New-MvmcP2VSourceConnection       Cmdlet    MvmcCmdlet                ...
    New-MvmcSourceConnection          Cmdlet    MvmcCmdlet                ...
    New-MvmcSourceVirtualMachineSn... Cmdlet    MvmcCmdlet                ...
    New-MvmcVirtualMachineFromOvf     Cmdlet    MvmcCmdlet                ...
    Restore-MvmcSourceVirtualMachi... Cmdlet    MvmcCmdlet                ...
    Stop-MvmcSourceVirtualMachine     Cmdlet    MvmcCmdlet                ...
    Uninstall-MvmcSourceVMTools       Cmdlet    MvmcCmdlet                ...
    Regards,
    -Steve

  • Csupload produces unknown error ("unsupported virtual size")

    Hi,
    Using a trial account I tried to upload a Linux vhd file (approx. 10 GB) to a container (vhds) that I assume is being created on the fly (?):
    "C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\bin>csupload Add-PersistentVMImage -Destination "https://coutinho.blob.core.windows.net/vhds/test.vhd" -LiteralPath C:\Users\kvandenberg\Documents\test.vhd -Label Test -OS Linux"
    The upload seems to complete ok, but then:
    "Registering the image 'test.vhd' with repository.
    The VHD https://coutinho.blob.core.windows.net/vhds/test.vhd has an unsupported virtual size of 10191437824 bytes.  The size must be a whole number (in MBs)."
    What's the problem? I didn't find mention of  this error anywhere.

    Thanks for your answer, which suggests a very straightforward solution :). I'm not running Hyper-V and used the freeware StarWind Converter to perform a vmdk-to-vhd conversion. This tool doesn't allow to set the file size of the vhd,
    so I found and used vmToolkit's Vhd Resizer to resize the vhd to 9720 MB.
    Just started to upload. Had to use the -Overwrite option, since csupload reports the presence of the image that failed to register.

  • Errors Performing V2V Conversions from ESX 5.5 to Hyper-V 2012 R2 using SCVMM 2012 R2

    I've successfully added my vSphere server and 2 ESXi 5.5 hosts to my SCVMM 2012 R2 server.
    I have also added my 2 Hyper-V 2012 R2 hosts as well.
    When I attempt to do a V2V conversion of a VM from 1 of my ESX hosts to Hyper-V, I receive - "Error (2901) The operation did not complete successfully because of a parameter or call sequence that is not valid. The parameter is incorrect."
    When I go into the details of the job in VMM it shows "1.4 Convert VMDK to virtual hard disk - Failed" and "1.4.1 Deploy file (using HTTP) - Failed"
    Any help resolving this would be appreciated.
    Also, I can do V2V conversions using the same ESX and Hyper-V hosts without any issues using Microsoft Virtual Machine Converter 2.0, but my manager wants me to use VMM.
    Thanks!

    Quite honestly, building fresh on the platform and migrating the apps / services is always the best way to go
    PlateSpin was the last product I knew that had a Linux conversion utility.   Even found this:
    http://blogs.technet.com/b/enterprise_admin/archive/2010/04/26/hyper-v-linux-p2v-with-platespin.aspx
    No idea the current status of PlateSpin.  They were the gold standard back in 2008.
    But honestly, it can be painful.  It all depends on the hardware now.
    With Hyper-V the end boot device is IDE - so if the machine now runs on SCSI, the boot loader pointers need to be modified (if you can find a tool to bring the disk forward).
    Now, that said.  Hyper-V can convert a physical disk to VHD.  That is a stealth feature that has been there from the beginning.  I can't recall if it is block by block, or if the file system must be known for the copy to succeed.
    You mount the disk on the Hyper-V Server and create a new VHD from a physical disk.
    The biggest issue with the conversion utilities is that Windows does not know the Linux file systems.  So you need some Linux tool to do it.
    I know that VMware had a converter that handled Linux - but again, you have to manually fixup the hardware in the boot menu.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • OVM 2.2.2 import VirtualBox OVA

    [root@ovm]# cat /etc/ovs-release
    Oracle VM server release 2.2.2
    Unpack OVA,
    [root@ovm]# file VB.ova
    VB.ova: POSIX tar archive
    [root@ovm]# tar tvf VB.ova
    -rw------- someone/someone 15691 2011-12-08 20:32:29 VB.ovf
    -rw------- someone/someone 2917182464 2011-12-08 20:36:53 disk1.vmdk
    -rw------- someone/someone 11493981184 2011-12-08 20:54:21 disk2.vmdk
    [root@ovm]# tar xvf VB.ova
    VB.ovf
    VB-disk1.vmdk
    VB-disk2.vmdk
    VMDK details using "qemu-img",
    [root@ovm]# ls -l *vmdk
    -rw------- 1 root root 2917182464 Dec 8 20:36 VB-disk1.vmdk
    -rw------- 1 root root 11493981184 Dec 8 20:54 VB-disk2.vmdk
    [root@ovm ]# qemu-img info -f vmdk VB-disk1.vmdk
    disk1.vmdk
    file format: vmdk
    virtual size: 10G (10737418240 bytes)
    disk size: 2.7G
    [root@ovm]# qemu-img info -f vmdk VB-disk2.vmdk
    image: disk2.vmdk
    file format: vmdk
    virtual size: 60G (64424509440 bytes)
    disk size: 11G
    Attempt using "qemu-img" to convert VMDK to raw,
    [root@ovm# qemu-img convert -f vmdk -O raw VB-disk1.vmdk disk1.img
    qemu-img: error while reading
    Install VirtualBox on WinXP 32-bit laptop. Share the VMDK files using Samba.
    Attempt "VBoxManage clonehd" of "VB-disk1.vmdk",
    V:\>"C:\Program Files\Oracle\VirtualBox\VboxManage" clonehd VB-disk1.vmdk disk1.img --format raw
    VBoxManage.exe: error: The medium 'V:\VB-disk1.vmdk' can't be used as the requested device type
    VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Medium, interface IMedium, callee IUnknown
    Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp
    Update UUID of VMDK,
    V:\>"C:\Program Files\Oracle\VirtualBox\VboxManage" internalcommands sethduuid VB-disk1.vmdk
    UUID changed to: 73a7de22-6846-4868-9cd3-94bbf589d940
    V:\>"C:\Program Files\Oracle\VirtualBox\VboxManage" clonehd VB-disk1.vmdk disk1.img --format raw
    0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
    Clone hard disk created in format 'raw'. UUID: faf96692-93ed-477e-9d52-1ade05009
    b60
    V:\>"C:\Program Files\Oracle\VirtualBox\VboxManage" internalcommands listpartitions -rawdisk disk1.img
    Number Type StartCHS EndCHS Size (MiB) Start (Sect)
    1 0x83 0 /1 /1 12 /254/63 101 63
    2 0x8e 13 /0 /1 1023/254/63 10134 208845
    [root@ovm]# file disk1.img
    disk1.img: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 208782 sectors; partition 2: ID=0x8e, starthead 0, startsector 208845, 20755980 sectors, code offset 0x48
    [root@ovm]# fdisk -l disk1.img
    last_lba(): I don't know how to handle files with mode 8180
    You must set cylinders.
    You can do this from the extra functions menu.
    Disk disk1.img: 0 MB, 0 bytes
    255 heads, 63 sectors/track, 0 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    disk1.img1 * 1 13 104391 83 Linux
    disk1.img2 14 1305 10377990 8e Linux LVM
    Partition 2 has different physical/logical endings:
    phys=(1023, 254, 63) logical=(1304, 254, 63)
    No UUID issues with "VB-disk2.vmdk" proceed with "clonehd",
    V:\>"C:\Program Files\Oracle\VirtualBox\VboxManage" clonehd VB-disk2.vmdk disk2.img --format raw
    0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
    Clone hard disk created in format 'raw'. UUID: de21cd38-494d-49df-81b4-c3fd3c8c67ae
    V:\>"C:\Program Files\Oracle\VirtualBox\VboxManage" internalcommands listpartitions -rawdisk disk2.img
    Number Type StartCHS EndCHS Size (MiB) Start (Sect)
    1 0x8e 0 /0 /2 1023/254/63 61439 1
    [root@ovm]# file disk2.img
    disk2.img: LVM2 (Linux Logical Volume Manager) , UUID: VbrZ2qmX6kQU2os4ye7xncrd4y4NEe5
    [root@ovm]# fdisk -l disk2.img
    last_lba(): I don't know how to handle files with mode 81e4
    You must set cylinders.
    You can do this from the extra functions menu.
    Disk disk2.img: 0 MB, 0 bytes
    255 heads, 63 sectors/track, 0 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    disk2.img1 1 7833 62914559+ 8e Linux LVM
    Partition 1 has different physical/logical endings:
    phys=(1023, 254, 63) logical=(7832, 127, 39)
    Configure HVM "vm.cfg",
    # (H)ardware (V)irtual (M)achine configuration
    # /etc/xen/xmexample.hvm
    kernel = '/usr/lib/xen/boot/hvmloader'
    builder = 'hvm'
    memory = '4096'
    device_model ='/usr/lib/xen/bin/qemu-dm'
    # PXE boot
    #bootloader = '/usr/bin/pypxeboot'
    #bootloader = '/usr/bin/pygrub'
    # Virtual block device configuration using file:
    # dd if=/dev/zero of=/$VM_PATH/$VM_NAME/System.img bs=1M count=$MB
    # disk = [ 'file:/$VM_PATH/$VM_NAME/System.img,ioemu:hda,w', ]
    # Configuration using physical disk logical volume:
    # lvcreate --size ${GB}G --name $VM_NAME $VG_NAME
    # disk = [ 'phy:/dev/$VG_NAME/$VM_NAME,xvda,w',]
    # CDROM configuration using file:
    # disk = [ 'file:/$BOOT_ISO_NAME,hdc:cdrom,r', ]
    disk = [ 'file:/OVS/disk1.img,ioemu:hda,w', 'file:/OVS/disk2.img,ioemu:hdb,w', ]
    # Domain name
    name = "foobar"
    # Networking
    # Network bridge status:
    # /etc/xen/scripts/network-bridge status
    # 'bridge' should be proper interface e.g. xenbr0
    vif = ['type=ioemu, bridge=xenbr0']
    # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
    # default: hard disk, cd-rom, floppy
    boot = "cdn"
    # Enable HV VNC console
    vnc=1
    vncunused=1
    vnclisten="0.0.0.0"
    vncpasswd=''
    sdl=0
    Update "grub.conf" and "device.map" using loopback mount of "disk1.img" boot partition,
    [root@ovm]# mkdir boot
    [root@ovm]# lomount -diskimage disk1.img -partition 1 boot
    Excerpt "grub.conf",
    [root@ovm]# cat boot/grub/grub.conf
    title Oracle Linux Server (2.6.32-200.13.1.el5uek)
    root (hd0,0)
    kernel /vmlinuz-2.6.32-200.13.1.el5uek ro root=/dev/VolGroup00/LogVol00
    Excerpt "Oracle Linux 5.7 Release Notes",
    "Oracle Linux 5.7 ships with the following kernel packages
    Unbreakable Enterprise kernel [kernel-uek-2.6.32-200.13.1.el5uek
    Installed and booted by default"
    Excerpt "Oracle Linux 5.7 Release Notes",
    "Known Issues
    Hardware virtualized (HVM) guests with Unbreakable Enterprise Kernel always use paravirtualized (PV) drivers
    Unbreakable Enterprise Kernel version kernel-uek-2.6.32-100.34.1 adds support for paravirtualized drivers in a HVM guest on Oracle VM. Starting with this kernel version, the default is to present only paravirtualized drivers when running in a hardware virtualized guest. To run kernel-uek --including the drivers-- fully hardware virtualized, an additional kernel boot parameter "xen_emul_unplug=never" must be added to the boot parameters in /etc/grub.conf:
    kernel /vmlinuz-2.6.32-100.34.1.el5uek ro root=/dev/VolGroup00/LogVol00 xen_emul_unplug=never
    Adding this kernel boot parameter makes the kernel also present the emulated drivers as it did before (e.g. the 8139cp network driver). "
    Update "grub.conf" to boot non-UEK kernel,
    [root@ovm]# grep ^default boot/grub/grub.conf
    default=1
    [root@ovm# cat boot/grub/device.map
    # this device map was generated by anaconda
    (hd0) /dev/sda
    [root@ovm]# cat boot/grub/device.map
    # this device map was generated by anaconda
    (hd0) /dev/hda

    I have had success importing VirtualBox images of OEL 6.4, but I am unable to import Solaris 11 VMs to OVM. When I import a Solaris 11 VM, the grub menu comes up. I select Solaris 11 and press enter. The OS begins to boot and progresses through to this point:
    SunOS Release 5.11 Version 11.1 64-bit
    Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
    It is at this point that console window in OVM goes black and OVM registers the shutdown of the VM. I have not been able to get the VM to boot any further through the sequence.
    Can you give me some grub configuration changes to try?

Maybe you are looking for