|
|
|
|
@ -78,7 +78,7 @@ builder.
|
|
|
|
|
- `configuration_version` (string) - This allows you to set the vm version when
|
|
|
|
|
calling New-VM to generate the vm.
|
|
|
|
|
|
|
|
|
|
- `cpu` (number) - The number of CPUs the virtual machine should use. If
|
|
|
|
|
- `cpus` (number) - The number of CPUs the virtual machine should use. If
|
|
|
|
|
this isn't specified, the default is 1 CPU.
|
|
|
|
|
|
|
|
|
|
- `differencing_disk` (boolean) - If true enables differencing disks. Only
|
|
|
|
|
@ -179,7 +179,7 @@ builder.
|
|
|
|
|
created, must be empty prior to running the builder. By default this is
|
|
|
|
|
"output-BUILDNAME" where "BUILDNAME" is the name of the build.
|
|
|
|
|
|
|
|
|
|
- `ram_size` (number) - The amount, in megabytes, of RAM to assign to the
|
|
|
|
|
- `memory` (number) - The amount, in megabytes, of RAM to assign to the
|
|
|
|
|
VM. By default, this is 1 GB.
|
|
|
|
|
|
|
|
|
|
- `secondary_iso_images` (array of strings) - A list of ISO paths to
|
|
|
|
|
@ -379,8 +379,8 @@ Packer config:
|
|
|
|
|
"winrm_password": "vagrant",
|
|
|
|
|
"winrm_timeout" : "4h",
|
|
|
|
|
"shutdown_command": "f:\\run-sysprep.cmd",
|
|
|
|
|
"ram_size": 4096,
|
|
|
|
|
"cpu": 4,
|
|
|
|
|
"memory": 4096,
|
|
|
|
|
"cpus": 4,
|
|
|
|
|
"generation": 2,
|
|
|
|
|
"switch_name":"LAN",
|
|
|
|
|
"enable_secure_boot":true
|
|
|
|
|
@ -887,8 +887,8 @@ virtual switch with an `External` connection type.
|
|
|
|
|
{
|
|
|
|
|
"variables": {
|
|
|
|
|
"vm_name": "ubuntu-xenial",
|
|
|
|
|
"cpu": "2",
|
|
|
|
|
"ram_size": "1024",
|
|
|
|
|
"cpus": "2",
|
|
|
|
|
"memory": "1024",
|
|
|
|
|
"disk_size": "21440",
|
|
|
|
|
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.1-server-amd64.iso",
|
|
|
|
|
"iso_checksum_type": "sha1",
|
|
|
|
|
@ -923,8 +923,8 @@ virtual switch with an `External` connection type.
|
|
|
|
|
"boot<enter>"
|
|
|
|
|
],
|
|
|
|
|
"shutdown_command": "echo 'packer' | sudo -S -E shutdown -P now",
|
|
|
|
|
"ram_size": "{{user `ram_size`}}",
|
|
|
|
|
"cpu": "{{user `cpu`}}",
|
|
|
|
|
"memory": "{{user `memory`}}",
|
|
|
|
|
"cpus": "{{user `cpu`}}",
|
|
|
|
|
"generation": 2,
|
|
|
|
|
"enable_secure_boot": false
|
|
|
|
|
}
|
|
|
|
|
|