Immutable VMWare Image

I know that the name is a little strange, but I could not think better.

I was unsuccessful in googling to create an immutable VMWare image. I'm not sure if this is possible or not? Well, the idea is that after rebooting VMWare, I always have the same state.

Does anyone have any ideas? Thanks in advance and hope this was not a completely stupid question.

+4
source share
2 answers

Assuming you mean that when you shut down your virtual machine, you want it to return to a known state and lose the latest changes, then this is possible with the VMWare workstation, and I suspect other versions.

You need to force the virtual machine to indicate the state in which you want to lean back again, turn it off and take a snapshot of this state.

Now you can change the snapshot settings of the virtual machine (VM-> Settings-> Options-> Snapshots, but I'm not in front of VMWare right now, so that might be wrong). Now you can install the virtual machine on "When Powering Off: Revert To Snapshot". Now, every time the VM shuts down, it should return to your famous “baseline”.

+3
source

The only way I can think that you are able to do this Gico is that if you have a snapshot of the virtual machine in any state that you want, return to that snapshot when you need to, after disconnecting nutrition. This is definitely possible if you are using vSphere, not sure about the rest of VMware products.

To do this in vSphere, put the machine in the desired state, right-click the VM in the vsphere Management / vCenter console, select Snapshot → Take Snapshot. Then, in the same snapshot menu, use “Snapshot Manager” to return to that snapshot when you need to.

Perhaps the way to automatically return a snapshot is described at this link:

http://www.vmware.com/support/ws5/doc/ws_preserve_sshot_revert_or_goto.html

See the section Power Failure .

In the VMware player, you can use "Revert at power off".

0
source

Source: https://habr.com/ru/post/1403640/


All Articles