Skip to content

Commit

Permalink
Replace network from 'nat' to 'network'
Browse files Browse the repository at this point in the history
Previous to the commit, a new libvirt instance was created with the
'nat' network type.  However, Fog master/HEAD doesn't support this
network type.

This commit changes the network type from 'nat' to 'network', which Fog
supports.
  • Loading branch information
ccaum committed Aug 4, 2012
1 parent 062e977 commit d044969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/veewee/provider/kvm/box/create.rb
Expand Up @@ -21,8 +21,8 @@ def create_server(options)
:memory_size => definition.memory_size.to_i*1024,
:cpus => definition.cpu_count.to_i,
:volume_capacity => "#{definition.disk_size}M",
:network_interface_type => "nat",
:domain_type => options['use_emulation'] ? 'qemu': 'kvm',
:network_interface_type => "network",
:iso_file => definition.iso_file,
:arch => definition.os_type_id.end_with?("_64") ? "x86_64" : "i686",
:iso_dir => env.config.veewee.iso_dir
Expand Down Expand Up @@ -64,7 +64,7 @@ def add_floppy
# Get the raw xml of the changed document
new_xml=domain_doc.to_xml

# Undefine the existing domain
# Undefine the existing domain
s.undefine

# Re-define the domain
Expand Down

0 comments on commit d044969

Please sign in to comment.