def after_VM_create(vm_ref, vm_rec):
 vm_rec.setdefault('is_control_domain', False)
 vm_rec.setdefault('memory_static_max', str((((8 * 1024) * 1024) * 1024)))
 vm_rec.setdefault('memory_dynamic_max', str((((8 * 1024) * 1024) * 1024)))
 vm_rec.setdefault('VCPUs_max', str(4))
 vm_rec.setdefault('VBDs', [])
 vm_rec.setdefault('resident_on', '')

def after_VM_create ( vm_ref , vm_rec ) : vm_rec . setdefault ( 'is_control_domain' , False ) vm_rec . setdefault ( 'memory_static_max' , str ( ( ( ( 8 * 1024 ) * 1024 ) * 1024 ) ) ) vm_rec . setdefault ( 'memory_dynamic_max' , str ( ( ( ( 8 * 1024 ) * 1024 ) * 1024 ) ) ) vm_rec . setdefault ( 'VCPUs_max' , str ( 4 ) ) vm_rec . setdefault ( 'VBDs' , [ ] ) vm_rec . setdefault ( 'resident_on' , '' )
create read-only fields in the vm record .