Permalink
Browse files

add support for disabling hardware acceleration

  • Loading branch information...
1 parent f1705bd commit e50dbf3a41bd7dd9bb91a07a85a3241f123e3237 @splaice splaice committed Apr 29, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/veewee/session.rb
View
@@ -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}")

0 comments on commit e50dbf3

Please sign in to comment.