| Windows 7: Make your Live system into a VHD |
10 Oct 2009
|
#1 | | Windows 7 Ultimate x64 SP1 Somewhere on the 3rd rock from the sun. |
Make your Live system into a VHD Mark and Bryce have done it again. A lot of us have been clamoring about having a way to convert our *existing* installs into a VHD. Not only have they made such a tool, it can be done *live* - i.e. from the very same OS that you are booted into. You can even use the same HD to make the VHD (provided you have the required space of course). 
Quote: Originally Posted by http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx Disk2vhd v1.0 By Mark Russinovich and Bryce Cogswell
Published: October 7, 2009 Introduction
Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft’s Virtual Machine disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft Hyper-V virtual machines (VMs). The difference between Disk2vhd and other physical-to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses Windows’ Volume Snapshot capability, introduced in Windows XP, to create consistent point-in-time snapshots of the volumes you want to include in a conversion. You can even have Disk2vhd create the VHDs on local volumes, even ones being converted (though performance is better when the VHD is on a disk different than ones being converted). Updated to 1.3 Quote: This update to Disk2vhd makes more Windows XP and Windows Server 2003 VHDs bootable by updating their MBR and boot sectors to be compatible with Hyper-V and Virtual PC and by installing the Intelide driver if it it’s not already installed. It also optimizes image creation by not copying paging and hibernation files.
See Disk2vhd for more info.
Last edited by Airbot; 04 Nov 2009 at 09:33 AM..
| My System Specs |
| Computer type PC/Desktop System Manufacturer/Model Number The Beast Model V OS Windows 7 Ultimate x64 SP1 CPU Core i7 965 EE @3.6 GHz Motherboard eVGA x58 Classified3 Memory 3 * 4GB Mushkin Enh Redline CL7 DDR3 1600 MHz (PC3-12800) Graphics Card eVGA 560 Ti 448 Core Classified + eVGA GTX260 SSC (PhysX) Sound Card Realtek HD Audio (on-board) Monitor(s) Displays 2 * Acer X213Wbd Screen Resolution 2 * 1680 x 1050 Keyboard Logitech G15 Keyboard Mouse Logitech Performance Mouse MX PSU ThermalTake BlackWidow TX TR2 850 W Case ThermalTake Level 10 GT (Black) Cooling Corsair H100 CPU | 2 * TT 140mm TriLED | 2 * Antec TriCool Hard Drives 1 * Intel Cheryville 520 180 GB SATA III SSD |
1 * Intel X-25M G2 80 GB SATA II SSD |
2 * Seagate 1 TB 32MB Cache 7200.12 SATA II Mech. Internet Speed Cable - 35 Mbit down / 12 Mbit up advertised (30 / 6 act.) Antivirus M$Se / MBAM Pro / WinPatrol Pro Browser Chome(dev) / Canary / Firefox Minefield / Opera Next / IE 10 Other Info Wacom Bamboo Touch |
Hauppauge WinTV-HVR-1850 |
Optimus STAV-3400 AV Receiver |
Bose 301 Series III Speakers (Main channel) |
Bose 161 Speakers (Surround) |
Optimus 3 way 100-W speaker (Center) |
Logitech Clearchat PC Wireless Headset |
Koss ProDJ 100 Headphones |
Microsoft LifeCam Studio |
Motorola Droid BIONIC |
ASUS Transformer Infinity 64GB |
10 Oct 2009
|
#2 | | |
this is nice, but I'd guess that most of the time the converted VHD won't boot inside a virtual machine. After cloning the files to the virtual disk, it's quite often that registry and system files need to be tweaked in order to boot.
For example, dual core XP, will not boot inside a vm with a single virtual cpu.
We will soon release MyOldPCs converter, which converts live system to vmdk/vhd/vdi, and can boot via vmware/vpc/vbox/hyper-V, etc. More info can be found here: http://www.vmlite.com/index.php/products/myoldpcs/
(website still work in progress) | My System Specs | | |
10 Oct 2009
|
#3 | | Windows 7 Ultimate x64 SP1 Somewhere on the 3rd rock from the sun. |
Care to expand upon your analysis? | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number The Beast Model V OS Windows 7 Ultimate x64 SP1 CPU Core i7 965 EE @3.6 GHz Motherboard eVGA x58 Classified3 Memory 3 * 4GB Mushkin Enh Redline CL7 DDR3 1600 MHz (PC3-12800) Graphics Card eVGA 560 Ti 448 Core Classified + eVGA GTX260 SSC (PhysX) Sound Card Realtek HD Audio (on-board) Monitor(s) Displays 2 * Acer X213Wbd Screen Resolution 2 * 1680 x 1050 Keyboard Logitech G15 Keyboard Mouse Logitech Performance Mouse MX PSU ThermalTake BlackWidow TX TR2 850 W Case ThermalTake Level 10 GT (Black) Cooling Corsair H100 CPU | 2 * TT 140mm TriLED | 2 * Antec TriCool Hard Drives 1 * Intel Cheryville 520 180 GB SATA III SSD |
1 * Intel X-25M G2 80 GB SATA II SSD |
2 * Seagate 1 TB 32MB Cache 7200.12 SATA II Mech. Internet Speed Cable - 35 Mbit down / 12 Mbit up advertised (30 / 6 act.) Antivirus M$Se / MBAM Pro / WinPatrol Pro Browser Chome(dev) / Canary / Firefox Minefield / Opera Next / IE 10 Other Info Wacom Bamboo Touch |
Hauppauge WinTV-HVR-1850 |
Optimus STAV-3400 AV Receiver |
Bose 301 Series III Speakers (Main channel) |
Bose 161 Speakers (Surround) |
Optimus 3 way 100-W speaker (Center) |
Logitech Clearchat PC Wireless Headset |
Koss ProDJ 100 Headphones |
Microsoft LifeCam Studio |
Motorola Droid BIONIC |
ASUS Transformer Infinity 64GB |
10 Oct 2009
|
#4 | | |
The hardware needs to be changed from physical machine to virtual machine.
for example, you will have to enable IntelIde, PCI, and disable Intelppm, etc. for the hard disk controllers.
Windows XP uses different kernel images and HAL for single cpu and multiple cpus. In modern times, physical computers are usually dual core, while virtual machine usually only has one cpu. So if you move windows xp vhd without any changes, it won't boot.
There are many more stuff, mouse/keyboard, may freeze without changes, etc.
This change is the challenging part, cloning a disk is now a mudane task on XP and later systems that supports Volume Shadow Copy. On other systems, it's very tough.
We have implemented our own disk snapshot drivers on Windows 2000/xp/2003/vista/7/2008 (note MS does not have snapshot driver on 2k).
We have also implemented a disks snapshot driver on Linux 2.6, so can perform hot clone on Linux too | My System Specs | | |
10 Oct 2009
|
#5 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
With Paragon Virtualization Manager you can make an OS bootable on different HW. You can also transfer a partition or HD from both current system or image to a virtual disk.
Interface is excellent, runs smoothly together with Partition Manager.
Kari | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
10 Oct 2009
|
#6 | | W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi Hafnarfjörður IS |
Hi there
if you use this method (or similar such as vm converter from vmware ) you need to make sure your real "OS" disk has PLENTY of space as part of the conversion process is to clone the existing disk via the LVM (logical Volume manager) on to the SAME partition as the existing OS -- so for example if your OS is 22 GB you'll need at least 22 GB FREE on the same partition. This is only used as temporary storage during the vhd creation process as the final target vhd can go to any drive / partition you select.
Since people often want to separate their OS partitions from the rest of their system this method will come unstuck when there isn't enough space on the OS disk to create the LVM image.
Cheers
jimbo
Last edited by jimbo45; 10 Oct 2009 at 06:04 PM..
| My System Specs | | System Manufacturer/Model Number Custom built OS W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi CPU Q9400 QUAD Motherboard P5QL-CM Memory 8GB Graphics Card On Motherborad Sound Card Realtek HD audio Monitor(s) Displays Apple Cinema display Mouse Toshiba wireless laser Hard Drives 4 X 1TB SATA Internet Speed > 20MB up |
10 Oct 2009
|
#7 | | |
My knowledge of VM/VHD interaction is essentially non-existant, but huisinro's comments seem to be at odds with Russinovich's description of Disk2vhd operation. Disk2vhd
where e.g. at the end of the page he shows a screen shot with the following caption: "Here’s a screenshot of a copy of a Windows Server 2008 R2 Hyper-V system running in a virtual machine on top of the system it was made from:"
But I also see (or misunderstand) a slight contradiction to that when he says "Note: do not attach to VHDs on the same system on which you created them if you plan on booting from them. ..."
as the disk signature assigned to the vhd will not match that in the captured image.
So, what is the real story? Has the vhd being used in the screenshot had something tweaked, or a lot tweaked as huisinro suggests, or am I totally misunderstanding Russinovich's words, or ...?
I would really like to understand.
Roger | My System Specs | | OS Windows 7 x64 CPU i7-920 Motherboard Gigabyte EX58-UD4P Memory 6G Graphics Card Radeon 4870 Sound Card M/B Monitor(s) Displays Samsung 2443 PSU Antec E650 Case Antec P183 Cooling Intel Hard Drives 2 x WD 1TB |
10 Oct 2009
|
#8 | | |
As it so says... Quote: On first boot, a VM booting a captured copy of Windows will detect the VM’s hardware and automatically install drivers... However, Windows XP is sadly not image aware therefore capturing it and then moving to a VM is a real chore. Windows Vista and Seven are imaging aware and can be moved around different machines. Just read a bit up on the WAIK documentation, it covers a lot of this kind of stuff. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 PSU 875W Some Dell PSU <.< Hard Drives Samsung P830 256 GB, WD Raptor 150GB, 2x 1TB HDDs Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
10 Oct 2009
|
#9 | | |
Ah, thanks logicearth, I didn't know about WAIK. I'd seen a reference to AIK in a recent post, and finding out exactly what it referred to was just another of those tuits that I hadn't yet gotten around to!
I've d/l the documentation and I'll look at it this afternoon.
Roger | My System Specs | | OS Windows 7 x64 CPU i7-920 Motherboard Gigabyte EX58-UD4P Memory 6G Graphics Card Radeon 4870 Sound Card M/B Monitor(s) Displays Samsung 2443 PSU Antec E650 Case Antec P183 Cooling Intel Hard Drives 2 x WD 1TB |
11 Oct 2009
|
#10 | | |
The image shows Windows 2008 R2 running inside hyper-V virtual machine. I am not sure about these two combinations. It all depends on the original physical machine, the guest operating system and the virtual machine software. For instance, you don't need to do anything to clone Linux and run as VM. On the other hand, For Windows XP, you have to tweak it a lot.
Our MyOldPCs converter handles all complicated cases in order to make the cloned virtual disk to boot.
Give you another example, for ThinkPad laptops, you will have to modify the virtual disk's number of BIOS disk heads, otherwise p2v XP won't boot. | My System Specs | | Make your Live system into a VHD problems? All times are GMT -5. The time now is 05:53 AM. | |