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.
Similar Messages
-
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.htmlHi,
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 -
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?
ThanksSimon,
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 -
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.noHi,
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. -
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,
SaleemSyntax 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 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 ProfileHmmm, 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 -
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?
THXhttp://technet.microsoft.com/library/hh848454(v=wps.620).aspx
See the VHDType option.
Lucian Baciu -
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
EricIf 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. -
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 -
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 -
Unable to specify both source and size with New-VHD command
Hi all! I'm working with Hyper-V Server 2012 R2 (fully patched).
new-vhd -Path c:\util.vhdx -Fixed -SourceDisk 3 -SizeBytes 50GB fails with the error
New-VHD : Parameter set cannot be resolved using the specified named parameters.
However, if I run the command above without either the SourceDisk
or SizeBytes parameter it succeeds. It only fails when they're both present.
TechNet documentation shows both parameters in the same command. Does anyone know what I'm doing wrong?Agreed. Thanks for commenting, Eric. I put in a comment on the TechNet documentation page; hopefully they'll fix it.
To get the desired results, I found that this series of commands worked:
Mount-VHD filename.vhdx
DISKPART
LIST VOLUME (so we can see the volume number)
SELECT VOLUME X (where X is the partition that should be reduced in size)
SHRINK QUERYMAX (find out how much empty space is in the partition)
SHRINK DESIRED=50000 (set the new partition size to 50GB (in this example))
EXIT
Dismount-VHD filename.vhdx
Resize-VHD filename.vhdx -ToMinimumSize -
I used the following link to create a vhd via Hyper-V.
I basically installed my iso on a VM and backed it up as vhdx, then converted it to vhd.
I uploaded it onto azure and tried to built a VM using "My Images" folder but the installation keep getting stuck at Running(Provisioning) stage.
Has anybody experienced this issue before?
ThanksHi;
Could you please let me know if:
1. If LIS is installed on the VM :http://www.microsoft.com/en-us/download/details.aspx?id=41554
2. Is the Linux Agent installed :https://github.com/Azure/WALinuxAgent
Also what version of OS did you try to install on the hyper V and upload ?And Also does the converted VHD work when loaded into Hyper-V ?( Just to rule out any corruption of the disk while it was converted)
Please note that you will have to install a VM in hyper-v and then convert the VHDX into a VHD and then upload.
Regards
Prasant -
Server 2012 Deduplication causing OneNote 2010 data corruption possibly?
We had a 2008 R2 file server running as VM on 2012 host server. This weekend we converted the underlying VHD to VHDX, then upgraded from 2008 R2 to 2012 and finally enabled deduplication on the volumes.
Now it appears that the OneNote table of contents files have become corrupted and OneNote is showing sections missing. The actual sections are still in the same location and can be opened manually and moved but that is a little cumbersome for a large
school network. Any advice on this?Here are some hard numbers
After optimization and before unoptimize began
FreeSpace SavedSpace OptimizedFiles InPolicyFiles Volume
544.38 GB 261.02 GB 314506 313338 E:
431.73 GB 169.66 GB 418482 418459 F:
209.7 GB 84.7 GB 168188 168180 G:
241.7 GB 131.44 GB 171926 171925 H:
Unoptimize in progress on 3 out of 4 and complete on 1
FreeSpace SavedSpace OptimizedFiles InPolicyFiles Volume
151.19 GB 261.02 GB 314506 313338 E:
40.32 GB 169.66 GB 418482 418459 F:
171.99 GB 131.44 GB 171926 171925 H:
so far the unoptimize process has used 200% of saved space at least? What happens when I run out of space totally on volume? Do I expand the drive and restart unoptimize? -
Greetings Everyone,
Enabled Dedupe on a volume containing 6 Hyper-V VMs migrated from Server 2008 R2. I enabled dedupe Friday afternoon, then set it to dedupe any files older than a day. When I checked the status today (Monday), it says the dedupe ratio is only 3%. So out of
6 VMs (4 x Server 2008 R2, 1 x SBS 2011, 1 x WHS) amounting to ~150GB of data, it only deduped ~5GB.
Being such a new feature, I haven't seen much in the way of real world data on how effective dedupe is, but I would have thought VMs would be ideal, as all four 2008 R2 VMs should have at least 8GB of identical data. Does dedupe work differently/better with
vhdx vs vhd?
Unfortunately, I did not run dedupe eval before enabling the feature, so I don't have any sense of what it "should" be. However, with 4 VMs running the same OS, I expected more...I am curious as to the reason you say Hyper-V hosts are not good candidates for dedup. I just converted 68 ESXi VMs from our lab environment to a new HP G7 with 2012R2 core and a 10TB volume. Initially, all the VMs totaled 6.8TB. I wanted to test Dedup
out, so I enabled it on the 10TB VM volume. It took about 36 hours to complete, but those 68 VMs dropped from 6.8TB to 800GB. Two weeks have passed, and we have had no issues whatsoever with this. I did this only after I noticed there is a "-Type Hyper-V"
mode.
Again, why do you say Hyper-V is not a good candidate?
Because you confuse two absolutely different scenarios:
1) So-called VHD library (set of VMs files from VMs that are NOT running all the time). This scenario is a good candidate for MSFT off-line dedupe and MSFT does support it.
...and
2) Running VMs. MSFT dedupe needs closed file handle to kick in and start space optimization process. As VM is running and file never gets closed results no space reduction. So this scenario is NOT supported by MSFT.
What can you do? Well... Many ways to go. You can enable dedupe inside your VM. Obviously there would be no overlapping between multiple VMs but for a single file server it's a valid approach (there are tricks to make it work but everything is doable, discussed
here tons of times so use search). Also you can use third-party software that runs either on storage side or on host to use in-line deduplication. Tons of a free offerings here.
StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts. -
Hyper-V Harddrive Array Questions
Hi All,
I have a HP ML350P Gen8 server to upgrade and would like an opinion on the best way to configure the storage array. I am picking up from some else's start/mistakes so some of it may not be the best.
Current Setup:
HP ML350P
2x Xeon E5-2609 2.4Ghz
24GB Ram (2x8 2x4)
P420i 512MB with 3x 1TB Sata 7.2K in Raid 5 = 2TB Raid 5
Server 2012 Datacenter Edition.
4x Hyper-V VM's
DC - 19GB VHDX (127GB Limit) - DC and Shadow Protect.
File - 23GB VHDX (127GB Limit) and 500GB VHD - High Priority File Store and Shadow Protect. Industry DB stored Here. Shadow Protect.
Mail - 41GB VHDX (127GB Limit) and 500GB VHD - Exchange Only and Shadow Protect.
Remote - 31GB VHDX (127GB Limit) - Office 2010, User Access, Industry App Front End and Shadow Protect.
Currently they have approx 40 users with about 15 concurrent users. They would like to increase this to as much as 45 concurrent and 120 users in total.
I am currently testing their industry application for Ram usage per person. The application is a private DB backed application but has a similar IO load to SQL.
I would like to;
Upgrade Ram to something like 64GB (may be less once the figures are ready)
Change to SAS HDD's with either 1 array pool or as many needed.
Convert all VHDX to VHD
Tune the Hyper-V settings as currently the CPU is about 5% at even the busy periods with the current CPU allocations. Also Ram is way under utilized in the current config.
Can you guys please recommend the array setup you would look to use?
-2x 146GB 15K Raid-1 for Host and a Raid-10 for VM storage?
-Separate Arrays for each VM? (this would prob limit us to mirror sets)
-1 big Raid-10 pool with host and VM's?
Please let me know if I am missing any info.
Thank you.Hi vtr1000xe,
You mentioned "Shadow Protect" , does it mean "check point".
If it is the case , It is not recommended using snapshot as backup , please use windows server backup .
As for this sentence "I am unsure of the advantage of adding two extra drives to a Raid-10 set vs using the Raid-1 Host" , the link below will be helpful :
http://social.technet.microsoft.com/Forums/windowsserver/en-US/f51ce572-1381-425a-8663-3c226980477a/hyperv-raid-options-multiple-raid1-raid10-raid50?forum=winserverhyperv
Hope this helps
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.
Maybe you are looking for
-
Help me to make this workaround for dbms_output buffer(6502) problem click.
Hi, what i am trying is to store multiline records into single variable. Say ename||'---'||empno||chr(10) ( chr(10) fro newline) from table emp into variable x. On outputting x o/p should be dbms_output.put_line(x) o/p to be :- scott---7306 smith---7
-
Just can't get it to work!
I purchased a 1TB External HDD a few days ago, and after reformatting and trying over and over only to keep seeing the "Calculating Changes" bar, I decided to return the HDD thinking it was broken somehow. Now I have a 2TB external HDD, I have format
-
My old computer is crashed so, I want to download songs from iphone to my new computer. I want to download them in my new windows computer in MP3 format if possible. Thanks!
-
Create Task Sequence Media Issue
I am 1 of 2 people that have full admin access to our config manager environment and when I create a bootable USB stick I get an error, "80004005", after I complete the HTA which indicate a certificate issue. However if I have my colleague create it
-
Reactivation question please help
When I renewed my online number I did not realize that it did not renew the calling subscription. When I saw a rejected charge on an old visa card that's on file I thought Skype was attempting to charging me twice. Now my service is canceled. I need