1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #4087: Allows attach IDE disks (#4106)

This allows attach IDE disk to VMS when the VM is into powered off state.
The disk will have DEV_PREFIX="sd" by default, if you want to have a 
DEV_PREVIX="hd" you need to change before into the image template.
This commit is contained in:
Angel Luis Moya Gonzalez 2020-01-17 14:09:05 +01:00 committed by Tino Vázquez
parent 157ed3aee3
commit 617890d8a9

View File

@ -1971,8 +1971,14 @@ module VCenterDriver
else
# TYPE is regular disk (not CDROM)
controller, unit_number = find_free_controller(position)
# disk_adapter
disk_adapter = disk['VCENTER_ADAPTER_TYPE']
case disk_adapter
when 'ide'
controller, unit_number = find_free_ide_controller(position)
else
controller, unit_number = find_free_controller(position)
end
storpod = disk["VCENTER_DS_REF"].start_with?('group-')
if storpod
vmdk_backing = RbVmomi::VIM::VirtualDiskFlatVer2BackingInfo(