Skip to content

Instantly share code, notes, and snippets.

@ymxmore
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save ymxmore/626b3129251af6f400e3 to your computer and use it in GitHub Desktop.

Select an option

Save ymxmore/626b3129251af6f400e3 to your computer and use it in GitHub Desktop.
Disk attachment memo
# uuid重複エラーが出た時
# $ VBoxManage internalcommands sethduuid ./.tmp/disk.vdi
# VirtualBoxにてinaccessibleが出た時
# # UUID確認
# $ VBoxManage list vms
#
# # 登録解除
# $ VBoxManage unregistervm {uuid}
# if ARGV[0].eql?('up') && $attach_disk_path && $attach_disk_size
# unless File.exists?($attach_disk_path) then
# vb.customize [
# 'createhd',
# '--filename', $attach_disk_path,
# '--size', $attach_disk_size
# ]
# end
# vb.customize [
# 'storageattach', :id,
# '--storagectl', 'IDE Controller',
# '--port', 1,
# '--device', 0,
# '--type', 'hdd',
# '--medium',
# $attach_disk_path
# ]
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment