Skip to content

Commit

Permalink
seperate use of pae for the vm into it's own definition, default is off
Browse files Browse the repository at this point in the history
  • Loading branch information
splaice committed Apr 30, 2011
1 parent ef1ff87 commit 50cbad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/veewee/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.setenv(env)
def self.declare(options)
defaults={
:cpu_count => '1', :memory_size=> '256',
:disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' , :use_hw_virt_ext => 'on',
:disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' , :use_hw_virt_ext => 'on', :use_pae => 'off',
:os_type_id => 'Ubuntu',
:iso_file => "ubuntu-10.10-server-i386.iso", :iso_src => "", :iso_md5 => "", :iso_download_timeout => 1000,
:boot_wait => "10", :boot_cmd_sequence => [ "boot"],
Expand Down Expand Up @@ -495,7 +495,7 @@ def self.create_vm(boxname,force=false)
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]}"
command="#{@vboxcmd} modifyvm #{boxname} --hwvirtex #{@definition[:use_hw_virt_ext]} --pae #{@definition[:use_pae]}"

#Exec and system stop the execution here
Veewee::Shell.execute("#{command}")
Expand Down

0 comments on commit 50cbad8

Please sign in to comment.