bin/esx in esx-0.2 vs bin/esx in esx-0.2.1

- old
+ new

@@ -76,10 +76,11 @@ parameter "ADDRESS", "ESX host address" option "--disk-file", "DISK_FILE", "VMDK file to import", :attribute_name => :disk_file option "--guest-id", "GUEST_ID", "GuestID value", :attribute_name => :guest_id, :default => 'otherGuest' option "--name", "VM NAME", "Virtual Machine name (required)" option "--memory", "MEMORY", "VM Memory size in MB", :default => 512 + option "--mac-address", "MAC", "VM Nic1 MAC address", :default => nil option "--tmpdir", "TMP DIR", "tmp dir used to download files", :default => "/tmp" option "--datastore", "DATASTORE", "Datastore used to host the disk", :default => "datastore1" option "--poweron", :flag, "Power on the VM after creation" def execute @@ -130,10 +131,10 @@ FileUtils.rm_f(df) end vm = host.create_vm :vm_name => name, :disk_file => "#{name}/#{name}.vmdk", :datastore => datastore, :disk_type => :flat, :memory => memory, - :guest_id => guest_id + :guest_id => guest_id, :mac_address => mac_address if poweron? vm.power_on end end