56 lines
1.2 KiB
JSON
Executable File
56 lines
1.2 KiB
JSON
Executable File
{
|
|
"builders": [
|
|
{
|
|
"type": "qemu",
|
|
"communicator": "winrm",
|
|
"skip_compaction": "false",
|
|
"output_directory": "VM/win10-update",
|
|
"format": "qcow2",
|
|
"accelerator": "kvm",
|
|
"qemuargs": [
|
|
[
|
|
"-m",
|
|
"8192"
|
|
],
|
|
[
|
|
"-usbdevice",
|
|
"tablet"
|
|
],
|
|
[
|
|
"-smp",
|
|
"4"
|
|
]
|
|
],
|
|
"net_device": "virtio-net",
|
|
"disk_interface": "virtio-scsi",
|
|
"vm_name": "win10-update.qcow2",
|
|
"iso_url": "VM/win10-base/win10-base.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": "windows-update",
|
|
"search_criteria": "IsInstalled=0",
|
|
"filters": [
|
|
"exclude:$_.Title -like '*Preview*'",
|
|
"include:$true"
|
|
]
|
|
},
|
|
{
|
|
"type": "windows-restart",
|
|
"restart_timeout": "1h"
|
|
}
|
|
]
|
|
}
|