mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Add driver method for attaching a new disk for hyper-v guests
This commit is contained in:
parent
7be0a6807a
commit
09bd28048e
1 changed files with 22 additions and 0 deletions
|
|
@ -28,6 +28,28 @@ module VagrantPlugins
|
|||
@vm_id = id
|
||||
end
|
||||
|
||||
#
|
||||
# Disk Driver methods
|
||||
#
|
||||
|
||||
# @param [String] controller_type
|
||||
# @param [String] controller_number
|
||||
# @param [String] controller_location
|
||||
# @param [Hash] opts
|
||||
def attach_disk(controller_type, controller_number, controller_location, disk_file_path, **opts)
|
||||
execute(:attach_disk_drive, @vm_id, controller_type, controller_numer,
|
||||
controller_location, disk_file_path)
|
||||
end
|
||||
|
||||
def new_vdh(path, size_bytes, **opts)
|
||||
execute(:new_vdh, @vm_id, path, size_bytes)
|
||||
end
|
||||
|
||||
|
||||
########
|
||||
########
|
||||
########
|
||||
|
||||
# @return [Boolean] Supports VMCX
|
||||
def has_vmcx_support?
|
||||
!!execute(:has_vmcx_support)["result"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue