diff --git a/examples/centos-6.4.conf b/examples/centos-6.4.conf deleted file mode 100644 index 2adfc77..0000000 --- a/examples/centos-6.4.conf +++ /dev/null @@ -1,23 +0,0 @@ - - "builders": [{ - "type": "xenserver", - "username": "root", - "password": "hostpassword", - "host_ip": "10.81.2.105", - "vm_name": "packer-centos-6-4", - "vm_memory": 2048, - "disk_size": 40000, - "iso_name": "CentOS-6.4-x86_64-minimal.iso", - "http_directory": "http", - "local_ip": "10.80.3.223", - "install_timeout": "600s", - "ssh_username": "root", - "ssh_password": "vmpassword", - "boot_command": - [ - "", - " ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos6-ks.cfg" - ], - "keep_instance": "always" - }] -} diff --git a/examples/centos-6.6.json b/examples/centos-6.6.json new file mode 100644 index 0000000..dc60d64 --- /dev/null +++ b/examples/centos-6.6.json @@ -0,0 +1,30 @@ +{ + "builders": [ + { + "type": "xenserver-iso", + "remote_host": "your-server.example.com", + "remote_username": "root", + "remote_password": "password", + + "boot_command": [ + " text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos6-ks.cfg" + ], + "boot_wait": "10s", + "disk_size": 40960, + "http_directory": "http", + "iso_checksum": "4ed6c56d365bd3ab12cd88b8a480f4a62e7c66d2", + "iso_checksum_type": "sha1", + "iso_url": "{{user `mirror`}}/6.6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso", + "output_directory": "packer-centos-6.6-x86_64-xenserver", + "shutdown_command": "/sbin/halt", + "ssh_username": "root", + "ssh_password": "vmpassword", + "ssh_wait_timeout": "10000s", + "vm_name": "packer-centos-6.6-x86_64" + } + ], + + "variables": { + "mirror": "http://www.mirrorservice.org/sites/mirror.centos.org" + } +}