Class: Beaker::VagrantVirtualbox
- Inherits:
-
Vagrant
- Object
- Hypervisor
- Vagrant
- Beaker::VagrantVirtualbox
- Defined in:
- lib/beaker/hypervisor/vagrant_virtualbox.rb
Constant Summary
Constants inherited from Hypervisor
Constants included from HostPrebuiltSteps
HostPrebuiltSteps::APT_CFG, HostPrebuiltSteps::CUMULUS_PACKAGES, HostPrebuiltSteps::DEBIAN_PACKAGES, HostPrebuiltSteps::ETC_HOSTS_PATH, HostPrebuiltSteps::ETC_HOSTS_PATH_SOLARIS, HostPrebuiltSteps::IPS_PKG_REPO, HostPrebuiltSteps::NTPSERVER, HostPrebuiltSteps::ROOT_KEYS_SCRIPT, HostPrebuiltSteps::ROOT_KEYS_SYNC_CMD, HostPrebuiltSteps::SLEEPWAIT, HostPrebuiltSteps::SLES_PACKAGES, HostPrebuiltSteps::TRIES, HostPrebuiltSteps::UNIX_PACKAGES, HostPrebuiltSteps::WINDOWS_PACKAGES
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Vagrant
#cleanup, #get_ip_from_vagrant_file, #initialize, #make_vfile, #rand_chunk, #randip, #randmac, #set_ssh_config, #vagrant_cmd
Methods inherited from Hypervisor
#cleanup, #configure, create, #generate_host_name, #initialize, #proxy_package_manager, #validate
Methods included from HostPrebuiltSteps
#add_el_extras, #additive_hash_merge, #apt_get_update, #check_and_install_packages_if_needed, #construct_env, #copy_file_to_remote, #copy_ssh_to_root, #disable_iptables, #disable_se_linux, #echo_on_host, #enable_root_login, #epel_info_for, #get_domain_name, #get_ip, #hack_etc_hosts, #package_proxy, #proxy_config, #set_env, #set_etc_hosts, #sync_root_keys, #timesync, #validate_host
Methods included from DSL::Patterns
Constructor Details
This class inherits a constructor from Beaker::Vagrant
Class Method Details
.provider_vfile_section(host, options) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/beaker/hypervisor/vagrant_virtualbox.rb', line 8 def self.provider_vfile_section(host, ) provider_section = "" provider_section << " v.vm.provider :virtualbox do |vb|\n" provider_section << " vb.customize ['modifyvm', :id, '--memory', '#{['vagrant_memsize'] ||= '1024'}']\n" provider_section << " vb.vbguest.auto_update = false" if [:vbguest_plugin] == 'disable' if host['disk_path'] unless File.exist?(host['disk_path']) host['disk_path'] = File.join(host['disk_path'], "#{host.name}.vmdk") provider_section << " vb.customize ['createhd', '--filename', '#{host['disk_path']}', '--size', #{host['disk_size'] ||= 5 * 1024}, '--format', 'vmdk']\n" end provider_section << " vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium','#{host['disk_path']}']\n" provider_section << " vb.customize [\"modifyvm\", :id, \"--natdnshostresolver1\", \"#{host['natdns']}\"]\n" unless host['natdns'].nil? provider_section << " vb.customize [\"modifyvm\", :id, \"--natdnsproxy1\", \"#{host['natdns']}\"]\n" unless host['natdns'].nil? provider_section << " vb.gui = true\n" unless host['vb_gui'].nil? provider_section << " [\"modifyvm\", :id, \"--cpuidset\", \"1\",\"000206a7\",\"02100800\",\"1fbae3bf\",\"bfebfbff\"\]" if /osx/i.match(host['platform']) end provider_section << " end\n" provider_section end |
Instance Method Details
#provision(provider = 'virtualbox') ⇒ Object
4 5 6 |
# File 'lib/beaker/hypervisor/vagrant_virtualbox.rb', line 4 def provision(provider = 'virtualbox') super end |