Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add support for disabling hardware acceleration

  • Loading branch information...
commit e50dbf3a41bd7dd9bb91a07a85a3241f123e3237 1 parent f1705bd
@splaice splaice authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/veewee/session.rb
View
10 lib/veewee/session.rb
@@ -488,7 +488,15 @@ def self.create_vm(boxname,force=false)
#TODO One day ruby-virtualbox will be able to handle this creation
#Box does not exist, we can start to create it
- command="#{@vboxcmd} createvm --name '#{boxname}' --ostype '#{@definition[:os_type_id]}' --register --hwvirtexexcl '#{@definition[:use_hw_virt_ext]}'"
+ command="#{@vboxcmd} createvm --name '#{boxname}' --ostype '#{@definition[:os_type_id]}' --register"
+ puts command
+
+ #Exec and system stop the execution here
+ Veewee::Shell.execute("#{command}")
+
+ # Modify the vm to enable or disable hw virtualization extensions
+ command="#{@vboxcmd} modifyvm #{boxname} --hwvirtex #{@definition[:use_hw_virt_ext]} --pae #{@definition[:use_hw_virt_ext]}"
+ puts command
#Exec and system stop the execution here
Veewee::Shell.execute("#{command}")
Please sign in to comment.
Something went wrong with that request. Please try again.