Method: VirtualBox::Vm#register
- Defined in:
- lib/virtual_box/vm.rb
#register ⇒ VirtualBox::Vm
Registers this VM with VirtualBox.
121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/virtual_box/vm.rb', line 121 def register VirtualBox.run_command! ['VBoxManage', 'createvm', '--name', name, '--uuid', uid, '--register'] begin push_config rescue unregister raise end self end |