Skip to content

Commit

Permalink
Export vm_name as user variable for Windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
jeritiana authored and Jeritiana Ravelojaona committed Apr 27, 2020
1 parent 60e7398 commit 34bd731
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
[ "-drive", "file=windows_10-qemu/{{ .Name }},if=virtio,cache=writeback,discard=ignore,format=qcow2,index=1" ],
[ "-drive", "file={{ user `virtio_win_iso` }},media=cdrom,index=3" ]
],
"vm_name": "windows_10",
"vm_name": "{{user `vm_name`}}",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"winrm_username": "vagrant"
Expand Down Expand Up @@ -59,7 +59,7 @@
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"switch_name": "{{user `switch_name`}}",
"type": "hyperv-iso",
"vm_name": "windows_10",
"vm_name": "{{user `vm_name`}}",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"winrm_username": "vagrant"
Expand Down Expand Up @@ -92,7 +92,7 @@
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"type": "vmware-iso",
"version": 14,
"vm_name": "windows_10",
"vm_name": "{{user `vm_name`}}",
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900"
Expand Down Expand Up @@ -130,7 +130,7 @@
"memory": 2048,
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"type": "virtualbox-iso",
"vm_name": "windows_10",
"vm_name": "{{user `vm_name`}}",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"winrm_username": "vagrant"
Expand Down Expand Up @@ -196,6 +196,7 @@
"restart_timeout": "5m",
"vhv_enable": "false",
"winrm_timeout": "6h",
"vm_name": "windows_10",
"virtio_win_iso": "~/virtio-win.iso"
}
}
Expand Down

0 comments on commit 34bd731

Please sign in to comment.