55 lines
1.2 KiB
JSON
Executable File
55 lines
1.2 KiB
JSON
Executable File
{
|
|
"builders": [
|
|
{
|
|
"type": "qemu",
|
|
"communicator": "winrm",
|
|
"skip_compaction": "false",
|
|
"output_directory": "VM/win10-cleanup",
|
|
"format": "qcow2",
|
|
"accelerator": "kvm",
|
|
"qemuargs": [
|
|
[
|
|
"-m",
|
|
"8192"
|
|
],
|
|
[
|
|
"-usbdevice",
|
|
"tablet"
|
|
],
|
|
[
|
|
"-smp",
|
|
"4"
|
|
]
|
|
],
|
|
"net_device": "virtio-net",
|
|
"disk_interface": "virtio-scsi",
|
|
"vm_name": "win10-cleanup.qcow2",
|
|
"iso_url": "VM/win10-install/win10-install.qcow2",
|
|
"iso_checksum": "none",
|
|
"disk_image": true,
|
|
"winrm_username": "Administrator",
|
|
"winrm_password": "Aqdcgt12",
|
|
"winrm_timeout": "2h",
|
|
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
|
|
"shutdown_timeout": "30m",
|
|
"cpus": 4,
|
|
"disk_size": "51200",
|
|
"skip_resize_disk": true,
|
|
"headless": true
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "powershell",
|
|
"elevated_user": "Administrator",
|
|
"elevated_password": "Aqdcgt12",
|
|
"script": "scripts/cleanup.ps1",
|
|
"remote_path": "C:/tools/cleanup.ps1"
|
|
},
|
|
{
|
|
"type": "windows-restart",
|
|
"restart_timeout": "1h"
|
|
}
|
|
]
|
|
}
|