methods/vb_common.rb
# Add hard disk to VirtualBox VM
Add hard disk to VirtualBox VM
Add hard disk to VirtualBox VM
def add_hdd_to_vbox_vm(options)
  message = "Information:\tAttaching storage \"#{options['disk']}\" of type \"#{defaults['controller']}\" to VM "+options['name']
  command = "#{options['vboxmanage']} storageattach \"#{options['name']}\" --storagectl \"#{defaults['controller']}\" --port 0 --device 0 --type hdd --medium \"#{options['disk']}\""
  execute_command(options,message,command)
  return
end
def add_hdd_to_vbox_vm ( options ) message = "Information:\tAttaching storage \"#{options['disk']}\" of type \"#{defaults['controller']}\" to VM " + options [ 'name' ] command = "#{options['vboxmanage']} storageattach \"#{options['name']}\" --storagectl \"#{defaults['controller']}\" --port 0 --device 0 --type hdd --medium \"#{options['disk']}\"" execute_command ( options , message , command ) return end
Add hard disk to VirtualBox VM
Add hard disk to VirtualBox VM
options
<not_specific>