Method: VirtualBox::VM#stop

Defined in:
lib/virtualbox/vm.rb

#stopBoolean

Stops the VM by directly calling “poweroff.” Immediately halts the virtual machine without saving state. This could result in a loss of data. To prevent data loss, see #shutdown

Returns:

  • (Boolean)

    True if command was successful, false otherwise.



516
517
518
# File 'lib/virtualbox/vm.rb', line 516

def stop
  control(:power_down)
end