Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to configure the NAT network #198

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/veewee/session.rb
Expand Up @@ -527,6 +527,13 @@ def self.create_vm(boxname,force=false)
end
end

# Set NAT network
unless @definition[:network].nil?
puts "Using #{@definition[:network]} as the NAT network"
command="#{@vboxcmd} modifyvm #{boxname} --natnet1 #{@definition[:network]}"
Veewee::Shell.execute("#{command}")
end

# Todo Check for java
# Todo check output of commands

Expand Down Expand Up @@ -672,7 +679,6 @@ def self.mount_isofile(boxname,isofile)
end



def self.suppress_messages
#Setting this annoying messages to register
VirtualBox::ExtraData.global["GUI/RegistrationData"]="triesLeft=0"
Expand Down