lib/rbvmomi/vim/VirtualMachine.rb
# Add a layer of delta disks (redo logs) in front of every disk on the VM.
# This is similar to taking a snapshot and makes the VM a valid target for
# creating a linked clone.
#
# Background: The API for linked clones is quite strange. We can't create 
# a linked straight from any VM. The disks of the VM for which we can create a
# linked clone need to be read-only and thus VC demands that the VM we
# are cloning from uses delta-disks. Only then it will allow us to
# share the base disk.
Add a layer of delta disks (redo logs) in front of every disk on the VM.
This is similar to taking a snapshot and makes the VM a valid target for
creating a linked clone.

The API for linked clones is quite strange. We can't create
a linked straight from any VM. The disks of the VM for which we can create a
linked clone need to be read-only and thus VC demands that the VM we
are cloning from uses delta-disks. Only then it will allow us to
share the base disk.
Add a layer of delta disks ( redo logs ) in front of every disk on the VM . This is similar to taking a snapshot and makes the VM a valid target for creating a linked clone . The API for linked clones is quite strange . We can ' t create a linked straight from any VM . The disks of the VM for which we can create a linked clone need to be read - only and thus VC demands that the VM we are cloning from uses delta - disks . Only then it will allow us to share the base disk .
def add_delta_disk_layer_on_all_disks
    devices,  = self.collect 'config.hardware.device'
    disks = devices.grep(RbVmomi::VIM::VirtualDisk)
    spec = update_spec_add_delta_disk_layer_on_all_disks
    self.ReconfigVM_Task(:spec => spec).wait_for_completion
  end
def add_delta_disk_layer_on_all_disks devices , = self . collect 'config.hardware.device' disks = devices . grep ( RbVmomi :: VIM :: VirtualDisk ) spec = update_spec_add_delta_disk_layer_on_all_disks self . ReconfigVM_Task ( :spec => spec ) . wait_for_completion end
Add a layer of delta disks (redo logs) in front of every disk on the VM.
Add a layer of delta disks ( redo logs ) in front of every disk on the VM .