arista-eosplus / packer-veos

Packer.io automation of the vEOS nodes
30 stars 12 forks source link

Fail on run #7

Closed perimore closed 9 years ago

perimore commented 9 years ago

Hi, when running the script I get the following error:

Seans-MacBook-Air:packer-veos sean$ ./create-veos.py -H virtualbox -N ZTP_Demo Looking for required source files...

Analyzing Host-Only Networks... Enough existing virtual networks exist. Let's just reconfigure them. Creating/modifying vboxnet0

WARNING: DO NOT TYPE IN VIRTUAL MACHINE WINDOW

Executing command:/Users/sean/packer/packer build --parallel=false -var 'boot_time=2m30s' -var 'name=20150209_220548_ZTP_Demo' vEOS.json vEOS1 output will be in this color. vEOS2 output will be in this color. vEOS3 output will be in this color. vEOS4 output will be in this color.

2 error(s) occurred:

phil-dileo commented 9 years ago

Hello, just out of curiosity, did you just download the create-veos.py python script and use existing packer files or is this a new clone of https://github.com/arista-eosplus/packer-veos.git?

If not true, can you copy your vEOS.json file to the issue?

phil-dileo commented 9 years ago

Also, if this is an existing packer-veos folder, you can typically do git pull to get the latest files.

perimore commented 9 years ago

Hi Phil,

This was just a git clone. The json file is below:

{ "variables": { "ram": "2048", "boot_time":"2m30s", "name": "Demo" }, "builders": [ { "boot_wait": "{{user boot_time}}", "boot_command" : [ "admin", "en", "write erase", "y", "bash", "echo 0011.2233.4455 > /mnt/flash/system_mac_address", "sudo dhclient ma1", "exit", "conf", "aaa authorization exec default local", "username admin privilege 15 role network-admin secret admin" ], "type": "virtualbox-ovf", "name" : "vEOS1", "vm_name": "{{user name}}-vEOS1", "headless" : "False", "source_path": "source/vEOS.ovf", "output_directory" : "{{user name}}-vEOS1", "export_opts" : [ "--iso" ], "guest_additions_mode" : "disable", "virtualbox_version_file" : "/tmp/", "ssh_username": "admin", "ssh_password": "admin", "vboxmanage": [ [ "modifyvm","{{.Name}}","--memory","{{user ram}}" ], [ "modifyvm","{{.Name}}","--cpus","1" ], [ "modifyvm","{{.Name}}","--nic1","nat" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ], [ "modifyvm","{{.Name}}","--nic2","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter2","vboxnet3" ], [ "modifyvm","{{.Name}}","--nicpromisc2","allow-all" ], [ "modifyvm","{{.Name}}","--nic3","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter3","vboxnet4" ], [ "modifyvm","{{.Name}}","--nicpromisc3","allow-all" ], [ "modifyvm","{{.Name}}","--nic4","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter4","vboxnet7" ], [ "modifyvm","{{.Name}}","--nicpromisc4","allow-all" ], [ "storageattach","{{.Name}}","--storagectl","IDE","--port","1","--device","0","--type","dvddrive","--medium","source/Aboot-vEOS.iso" ] ], "vboxmanage_post": [ [ "modifyvm","{{.Name}}","--nic1","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter1","vboxnet2" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ] ] }, { "boot_wait": "{{user boot_time}}", "boot_command" : [ "admin", "en", "write erase", "y", "bash", "echo 0011.2233.4456 > /mnt/flash/system_mac_address", "sudo dhclient ma1", "exit", "conf", "aaa authorization exec default local", "username admin privilege 15 role network-admin secret admin" ], "type": "virtualbox-ovf", "name" : "vEOS2", "vm_name": "{{user name}}-vEOS2", "headless" : "False", "source_path": "source/vEOS.ovf", "output_directory" : "{{user name}}-vEOS2", "export_opts" : [ "--iso" ], "guest_additions_mode" : "disable", "virtualbox_version_file" : "/tmp/", "ssh_username": "admin", "ssh_password": "admin", "vboxmanage": [ [ "modifyvm","{{.Name}}","--memory","{{user ram}}" ], [ "modifyvm","{{.Name}}","--cpus","1" ], [ "modifyvm","{{.Name}}","--nic1","nat" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ], [ "modifyvm","{{.Name}}","--nic2","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc2","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter2","vboxnet5" ], [ "modifyvm","{{.Name}}","--nic3","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc3","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter3","vboxnet6" ], [ "modifyvm","{{.Name}}","--nic4","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc4","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter4","vboxnet7" ], [ "storageattach","{{.Name}}","--storagectl","IDE","--port","0","--device","1","--type","dvddrive","--medium","source/Aboot-vEOS.iso" ] ], "vboxmanage_post": [ [ "modifyvm","{{.Name}}","--nic1","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter1","vboxnet2" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ] ] }, { "boot_wait": "{{user boot_time}}", "boot_command" : [ "admin", "en", "write erase", "y", "bash", "sudo dhclient ma1", "exit", "conf", "aaa authorization exec default local", "username admin privilege 15 role network-admin secret admin" ], "type": "virtualbox-ovf", "name" : "vEOS3", "vm_name": "{{user name}}-vEOS3", "headless" : "False", "source_path": "source/vEOS.ovf", "output_directory" : "{{user name}}-vEOS3", "export_opts" : [ "--iso" ], "guest_additions_mode" : "disable", "virtualbox_version_file" : "/tmp/", "ssh_username": "admin", "ssh_password": "admin", "vboxmanage": [ [ "modifyvm","{{.Name}}","--memory","{{user ram}}" ], [ "modifyvm","{{.Name}}","--cpus","1" ], [ "modifyvm","{{.Name}}","--nic1","nat" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ], [ "modifyvm","{{.Name}}","--nic2","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc2","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter2","vboxnet3" ], [ "modifyvm","{{.Name}}","--nic3","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc3","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter3","vboxnet5" ], [ "modifyvm","{{.Name}}","--nic4","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc4","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter4","vboxnet9" ], [ "storageattach","{{.Name}}","--storagectl","IDE","--port","0","--device","1","--type","dvddrive","--medium","source/Aboot-vEOS.iso" ] ], "vboxmanage_post": [ [ "modifyvm","{{.Name}}","--nic1","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter1","vboxnet2" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ] ] }, { "boot_wait": "{{user boot_time}}", "boot_command" : [ "admin", "en", "write erase", "y", "bash", "sudo dhclient ma1", "exit", "conf", "aaa authorization exec default local", "username admin privilege 15 role network-admin secret admin" ], "type": "virtualbox-ovf", "name" : "vEOS4", "vm_name": "{{user name}}-vEOS4", "headless" : "False", "source_path": "source/vEOS.ovf", "output_directory" : "{{user name}}-vEOS4", "export_opts" : [ "--iso" ], "guest_additions_mode" : "disable", "virtualbox_version_file" : "/tmp/", "ssh_username": "admin", "ssh_password": "admin", "vboxmanage": [ [ "modifyvm","{{.Name}}","--memory","{{user ram}}" ], [ "modifyvm","{{.Name}}","--cpus","1" ], [ "modifyvm","{{.Name}}","--nic1","nat" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ], [ "modifyvm","{{.Name}}","--nic2","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc2","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter2","vboxnet4" ], [ "modifyvm","{{.Name}}","--nic3","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc3","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter3","vboxnet6" ], [ "modifyvm","{{.Name}}","--nic4","hostonly" ], [ "modifyvm","{{.Name}}","--nicpromisc4","allow-all" ], [ "modifyvm","{{.Name}}","--hostonlyadapter4","vboxnet9" ], [ "storageattach","{{.Name}}","--storagectl","IDE","--port","0","--device","1","--type","dvddrive","--medium","source/Aboot-vEOS.iso" ] ], "vboxmanage_post": [ [ "modifyvm","{{.Name}}","--nic1","hostonly" ], [ "modifyvm","{{.Name}}","--hostonlyadapter1","vboxnet2" ], [ "modifyvm","{{.Name}}","--nicpromisc1","allow-all" ] ] } ] }

perimore commented 9 years ago

Hi Phil,

I manually updated packer and it is working now. I either had version 0.6.0 installed or the script installed that version automatically. Now running 0.7.5.

Sean

phil-dileo commented 9 years ago

Good catch - I'll raise an enhancement to check the packer version in the script.