How perfect are VM Snapshots?


CSharpDev

Member
Member
Local time
11:52 AM
Posts
180
OS
Win11
Do they perfectly restore the VM to that specific state at that specific time? Like, seconds accuracy?

I ask because I thought it'd be way easier for me in the future to pre-install all the apps in my VM and then create a snapshot before I sysprep it, in case I need to change my golden image in the future, to cut down on time much as I can, instead of re-doing the entire thing from scratch
 

My Computer

System One

  • OS
    Win11
I am using VirtualBox, a (non-Microsoft) VM.
With that, snapshot are an exact replication of the situation when the snapshot was taken.
Even the windows size is stored...

The only thing I always have to do (if I don't want a new situation remembered) is restoring the last snapshot, without making a snapshot of the new situation.

You can even restore older snapshots to recreate the situation of that snapshot. That's why I always describe what I changed or added in the note area of the snapshot. It really is very handy to use a VM to test programs or changed settings, because one always can reset to a former situation.

The build in VM of Windows I don't have experience with, but I think it will function similarly.
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Kingston NV2 - 500 GB
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 115.7.0 ESR
    Antivirus
    F-secure via Internet provider
    Other Info
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Do they perfectly restore the VM to that specific state at that specific time? Like, seconds accuracy?

I ask because I thought it'd be way easier for me in the future to pre-install all the apps in my VM and then create a snapshot before I sysprep it, in case I need to change my golden image in the future, to cut down on time much as I can, instead of re-doing the entire thing from scratch
snapshots are great.

However, with a VM, why not just shut down the VM, and make a backup copy of the backend file for the VM. Then you have a perfectly crash consistent copy of that VM at that exact moment in time.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Mouse
    Logitech G9 Laser Mouse
    Keyboard
    Corsiar K65 RGB Lux
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
snapshots are great.

However, with a VM, why not just shut down the VM, and make a backup copy of the backend file for the VM. Then you have a perfectly crash consistent copy of that VM at that exact moment in time.
Good answer but snapshots are like differential / incremental backups and can be taken very quickly or at least faster than full backups --depending on the size of the VM. Of course the snapshot file can get quite large too - so it's worth keeping an eye on it and removing older snapshots from time to time.

You still need a full backup from time to time in case you ever need to do a "bare metal restore" rather than have to re-install the whole vm again plus any applications you have running in the guest.

Treat snapshots rather like logs in big database systems. If you need to recover the DB you can often do it by "replaying" the logs rather than a full bloodied restore which might mean the loss of several days transactions.

cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
On my VirtualBox I had an extra Windows 11 installation, that I activated last year with a Windows7 key. That then still was possible.

I have tested if that activation is transfered together with cloning and/or exporting the 'machine'. And yes, it does, as long as you select the right options when cloning / exporting. After importing the export file again, all settings, even the window size and the activation still were there!
For cloning you need to activate: "Keep hardware UUIDs". For exporting I did not use any extra setting, although I always export with option "Write Manifest file" activated.

So yes, in VirtualBox the export is a perfect backup.
How it functions with other VMs I don't know, I suppose it will be similar.
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Kingston NV2 - 500 GB
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 115.7.0 ESR
    Antivirus
    F-secure via Internet provider
    Other Info
    Oracle VirtualBox 7 for testing software on Win 10 or 11

Latest Support Threads

Back
Top Bottom