Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. root@vagrant-ubuntu-trusty-64:~# cat centos7.json
  2. {
  3. "builders":
  4. [
  5. {
  6. "type": "qemu",
  7. "iso_url": "http://centos.mirror.crcrepairs.com/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-NetInstall.iso",
  8. "iso_checksum": "96de4f38a2f07da51831153549c8bd0c",
  9. "iso_checksum_type": "md5",
  10. "output_directory": "output_centos_tdhtest",
  11. "ssh_wait_timeout": "30s",
  12. "shutdown_command": "shutdown -P now",
  13. "disk_size": 5000,
  14. "format": "qcow2",
  15. "headless": false,
  16. "accelerator": "kvm",
  17. "http_directory": "httpdir",
  18. "http_port_min": 10082,
  19. "http_port_max": 10089,
  20. "ssh_host_port_min": 2222,
  21. "ssh_host_port_max": 2229,
  22. "ssh_username": "centos",
  23. "ssh_password": "centos",
  24. "ssh_port": 22,
  25. "ssh_wait_timeout": "90m",
  26. "vm_name": "tdhtest",
  27. "net_device": "virtio-net",
  28. "disk_interface": "virtio",
  29. "boot_wait": "5s",
  30. "boot_command":
  31. [ " text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos7-ks.cfg" ]
  32.  
  33. "qemuargs": [
  34. [ "-m", "1024m" ],
  35. [ "--no-acpi", "" ],
  36. [
  37. "-netdev",
  38. "user,id=mynet0,",
  39. "hostfwd=hostip:hostport-guestip:guestport",
  40. ""
  41. ],
  42. [ "-device", "virtio-net,netdev=mynet0" ]
  43. ]
  44.  
  45. }
  46. ]
  47. }
  48.  
  49. root@vagrant-ubuntu-trusty-64:~# packer validate centos7.json
  50. Failed to parse template: Error in line 32, char 6: invalid character '"' after object key:value pair
  51. "qemuargs": [
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement