Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual PC

Vista - When are changes written to the .vhd file?

Reply
 
Old 02-19-2009   #1 (permalink)
anonymoussg


 
 

When are changes written to the .vhd file?

Hi all, I am trying to back up my .vhd file. However, do i need to shutdown
the virtual machine before i make a copy of the .vhd file in order to capture
the latest changes? Perhaps, let me illustrate my question below.

0900hrs: Start up virtual machine
0930hrs: Edit a text document in the machine. Save the file
0940hrs: Copy the .vhd file. // virtual machine still running.

Would the changes made in the text file be written to the .vhd file already?

Or the text file changes will only be updated after i shutdown the virtual
machine? I am curious because the timestamp of my .vhd file only reflects the
time it is started up. This leads me to think that .vhd file is only edited
when its started up, and hence what ever changes I make to any files while
the virtual machine is running is not immediately written to the .vhd file.

My System SpecsSystem Spec
Old 02-19-2009   #2 (permalink)
Bo Berglund


 
 

Re: When are changes written to the .vhd file?

On Wed, 18 Feb 2009 23:11:01 -0800, anonymoussg
<anonymoussg@xxxxxx> wrote:
Quote:

>Hi all, I am trying to back up my .vhd file. However, do i need to shutdown
>the virtual machine before i make a copy of the .vhd file in order to capture
>the latest changes? Perhaps, let me illustrate my question below.
>
>0900hrs: Start up virtual machine
>0930hrs: Edit a text document in the machine. Save the file
>0940hrs: Copy the .vhd file. // virtual machine still running.
>
>Would the changes made in the text file be written to the .vhd file already?
>
>Or the text file changes will only be updated after i shutdown the virtual
>machine? I am curious because the timestamp of my .vhd file only reflects the
>time it is started up. This leads me to think that .vhd file is only edited
>when its started up, and hence what ever changes I make to any files while
>the virtual machine is running is not immediately written to the .vhd file.
It depends on if you have undo disks enabled or not. With undo disks
you will not write anything to the VHD file until you shut down the
guest and reply yes to the question to commit your changes.

If you do not use undo disks then the VHD is in principle the storage
medium for the data, but inside the guest the actual write might be
delayed by Windows (if that is the guest operating system of course,
you did not specify and VPC is not limited to Windows guests...).
With a delayed write you never know when the actual data write
happens.

Also it is not advisable to copy the VHD file while the guest is
running because the copy operation might well lock the file which will
cause the guest to crash.
Since the VHD file is normally very big any copy operation will take a
very long time too...

--

Bo Berglund (Sweden)
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Why are files written already fragmented? Vista performance & maintenance
backup to dvd froze. after 3 hrs only 1/2 the dvd written to. Vista General
DOS re-written Vista General
Files cannot be written/modified everywhere?? Vista file management
Mystery file being written at almost 6MB/sec Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46