Skip to content

Instantly share code, notes, and snippets.

@michaeltlombardi
Created August 23, 2016 15:49
Show Gist options
  • Save michaeltlombardi/7c5c73669889cd3dd1461121cf190eac to your computer and use it in GitHub Desktop.
Save michaeltlombardi/7c5c73669889cd3dd1461121cf190eac to your computer and use it in GitHub Desktop.
Packer Issue 2715 Repro

REPRO

Environment INfo

Client

Packer Version: 0.10.1 (Windows) OS Version: 6.1.7601 (Windows 7)

ESXi

~ # uname -a                                                                   
VMkernel labesxi01 5.5.0 #1 SMP Release build-3029944 Aug 31 20
15 01:15:24 x86_64 GNU/Linux

Steps

Push-Location C:\dev\images
$env:PACKER_LOG = 1
$env:PACKER_LOG_PATH = "C:\dev\images\packer.log'
packer build .\vmware.esxi.repro.json
vmware-iso output will be in this color.

==> vmware-iso: Downloading or copying ISO
    vmware-iso: Downloading or copying: file:///C:/dev/Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
==> vmware-iso: Creating floppy disk...
    vmware-iso: Copying: Autounattend.xml
==> vmware-iso: Uploading Floppy to remote machine...
==> vmware-iso: Uploading ISO to remote machine...
==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Registering remote VM...
==> vmware-iso: Starting virtual machine...
    vmware-iso: The VM will be run headless, without a GUI. If you want to
    vmware-iso: view the screen of the VM, connect via VNC without a password to
    vmware-iso: labesxi01:5918
==> vmware-iso: Waiting 10s for boot...
==> vmware-iso: Connecting to VM via VNC
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Waiting for WinRM to become available...
==> vmware-iso: Stopping virtual machine...
==> vmware-iso: Unregistering virtual machine...
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Build was cancelled.
Cleanly cancelled builds after being interrupted.

Logging into the VM after initial installation shows that the ethernet connection is disconnected.

Verifying the network settings in VMWare seems to indicate that the VM does in fact have the correct network settings (switch matches correctly to the DVS in the drop down).

The VM does not have networking until I edit the settings manually to point at another DVS, save, and then edit the settings to reset them to the same ones specified in the template. Then I select the connected box in settings and everything else functions as normal.

I canceled out of the build after determining this (because otherwise it just waits until the timeout).

Note: This build's autounattend points to a file (boxstarter.ps1) I didn't include here or in the floppy files; that's because the VM reboots after the autounattend and boxstarter never works anyway without the networking in place. It does not effect the problem being reproduced.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<!-- look for drivers on floppy -->
<component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DriverPaths>
<PathAndCredentials wcm:keyValue="1" wcm:action="add">
<Path>A:\</Path>
</PathAndCredentials>
</DriverPaths>
</component>
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Type>Primary</Type>
<Order>1</Order>
<Size>350</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>boot</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Windows 2012 R2</Label>
<Letter>C</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME </Key>
<Value>Windows Server 2012 R2 SERVERSTANDARD</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Packer</FullName>
<Organization>Packer</Organization>
</UserData>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipRearm>1</SkipRearm>
</component>
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PersistAllDeviceInstalls>false</PersistAllDeviceInstalls>
<DoNotCleanUpNonPresentDevices>false</DoNotCleanUpNonPresentDevices>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<TimeZone>UTC</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>packer</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>packer</Value>
<PlainText>true</PlainText>
</Password>
<Group>administrators</Group>
<DisplayName>Packer</DisplayName>
<Name>packer</Name>
<Description>Packer User</Description>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<AutoLogon>
<Password>
<Value>packer</Value>
<PlainText>true</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>packer</Username>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\boxstarter.ps1</CommandLine>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<settings pass="specialize">
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
</component>
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<IEHardenAdmin>false</IEHardenAdmin>
<IEHardenUser>false</IEHardenUser>
</component>
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
</component>
</settings>
</unattend>
2016/08/23 10:19:17 [INFO] Packer version: 0.10.1
2016/08/23 10:19:17 Packer Target OS/Arch: windows amd64
2016/08/23 10:19:17 Built with Go Version: go1.6.2
2016/08/23 10:19:17 Using internal plugin for azure-arm
2016/08/23 10:19:17 Using internal plugin for docker
2016/08/23 10:19:17 Using internal plugin for parallels-iso
2016/08/23 10:19:17 Using internal plugin for vmware-iso
2016/08/23 10:19:17 Using internal plugin for amazon-chroot
2016/08/23 10:19:17 Using internal plugin for digitalocean
2016/08/23 10:19:17 Using internal plugin for file
2016/08/23 10:19:17 Using internal plugin for null
2016/08/23 10:19:17 Using internal plugin for parallels-pvm
2016/08/23 10:19:17 Using internal plugin for amazon-ebs
2016/08/23 10:19:17 Using internal plugin for virtualbox-iso
2016/08/23 10:19:17 Using internal plugin for virtualbox-ovf
2016/08/23 10:19:17 Using internal plugin for amazon-instance
2016/08/23 10:19:17 Using internal plugin for googlecompute
2016/08/23 10:19:17 Using internal plugin for openstack
2016/08/23 10:19:17 Using internal plugin for qemu
2016/08/23 10:19:17 Using internal plugin for vmware-vmx
2016/08/23 10:19:17 Using internal plugin for shell-local
2016/08/23 10:19:17 Using internal plugin for windows-restart
2016/08/23 10:19:17 Using internal plugin for ansible
2016/08/23 10:19:17 Using internal plugin for ansible-local
2016/08/23 10:19:17 Using internal plugin for chef-solo
2016/08/23 10:19:17 Using internal plugin for puppet-masterless
2016/08/23 10:19:17 Using internal plugin for salt-masterless
2016/08/23 10:19:17 Using internal plugin for shell
2016/08/23 10:19:17 Using internal plugin for chef-client
2016/08/23 10:19:17 Using internal plugin for file
2016/08/23 10:19:17 Using internal plugin for powershell
2016/08/23 10:19:17 Using internal plugin for puppet-server
2016/08/23 10:19:17 Using internal plugin for windows-shell
2016/08/23 10:19:17 Using internal plugin for shell-local
2016/08/23 10:19:17 Using internal plugin for vagrant-cloud
2016/08/23 10:19:17 Using internal plugin for vsphere
2016/08/23 10:19:17 Using internal plugin for artifice
2016/08/23 10:19:17 Using internal plugin for compress
2016/08/23 10:19:17 Using internal plugin for docker-push
2016/08/23 10:19:17 Using internal plugin for docker-save
2016/08/23 10:19:17 Using internal plugin for docker-tag
2016/08/23 10:19:17 Using internal plugin for vagrant
2016/08/23 10:19:17 Using internal plugin for amazon-import
2016/08/23 10:19:17 Using internal plugin for atlas
2016/08/23 10:19:17 Using internal plugin for docker-import
2016/08/23 10:19:17 Attempting to open config file: C:\Users\mtl\AppData\Roaming\packer.config
2016/08/23 10:19:17 [WARN] Config file doesn't exist: C:\Users\mtl\AppData\Roaming\packer.config
2016/08/23 10:19:17 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[virtualbox-iso:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso qemu:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu vmware-iso:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso amazon-chroot:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs virtualbox-ovf:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf amazon-instance:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance googlecompute:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute vmware-vmx:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx docker:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file null:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null digitalocean:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean parallels-pvm:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm openstack:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack azure-arm:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm parallels-iso:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso] PostProcessors:map[shell-local:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant-cloud:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud compress:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-save:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save atlas:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas docker-import:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import vsphere:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere artifice:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice docker-push:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-tag:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant amazon-import:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import] Provisioners:map[puppet-masterless:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell file:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file ansible:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local chef-solo:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo chef-client:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client powershell:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-server:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server windows-shell:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell shell-local:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart salt-masterless:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless]}
2016/08/23 10:19:17 Setting cache directory: C:\dev\Images\packer_cache
2016/08/23 10:19:17 Loading builder: vmware-iso
2016/08/23 10:19:17 Plugin could not be found. Checking same directory as executable.
2016/08/23 10:19:17 Current exe path: C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe
2016/08/23 10:19:17 Creating plugin client for path: C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe
2016/08/23 10:19:17 Starting plugin: C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe []string{"C:\\Chocolatey\\lib\\packer.0.10.1\\tools\\packer.exe", "plugin", "packer-builder-vmware-iso"}
2016/08/23 10:19:17 Waiting for RPC address for: C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 [INFO] Packer version: 0.10.1
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Packer Target OS/Arch: windows amd64
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Built with Go Version: go1.6.2
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for amazon-ebs
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for parallels-iso
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for qemu
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for vmware-iso
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for amazon-chroot
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for amazon-instance
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for docker
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for googlecompute
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for null
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for azure-arm
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for file
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for openstack
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for virtualbox-iso
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for virtualbox-ovf
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for digitalocean
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for parallels-pvm
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for vmware-vmx
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for puppet-server
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for salt-masterless
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for shell-local
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for ansible-local
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for chef-client
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for file
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for powershell
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for windows-restart
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for windows-shell
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for ansible
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for chef-solo
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for puppet-masterless
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for shell
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for artifice
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for docker-import
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for docker-push
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for docker-tag
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for vagrant
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for amazon-import
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for atlas
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for compress
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for docker-save
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for shell-local
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for vagrant-cloud
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Using internal plugin for vsphere
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Attempting to open config file: C:\Users\mtl\AppData\Roaming\packer.config
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 [WARN] Config file doesn't exist: C:\Users\mtl\AppData\Roaming\packer.config
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[virtualbox-ovf:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf googlecompute:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute azure-arm:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm openstack:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack vmware-iso:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso null:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null vmware-vmx:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-ebs:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs parallels-iso:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso qemu:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu file:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file virtualbox-iso:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-chroot:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-instance:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance docker:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker digitalocean:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean parallels-pvm:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm] PostProcessors:map[docker-import:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import amazon-import:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import compress:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vagrant-cloud:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere artifice:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice docker-push:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-tag:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant atlas:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas docker-save:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save shell-local:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local] Provisioners:map[file:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file powershell:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell windows-shell:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell puppet-masterless:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell chef-client:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client salt-masterless:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell-local:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local ansible-local:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-restart:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart ansible:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible chef-solo:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-server:C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server]}
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Setting cache directory: C:\dev\Images\packer_cache
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 args: []string{"packer-builder-vmware-iso"}
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Plugin minimum port: 10000
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Plugin maximum port: 25000
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Plugin address: tcp 127.0.0.1:10000
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Waiting for connection...
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Serving a plugin connection...
2016/08/23 10:19:17 ui: vmware-iso output will be in this color.
2016/08/23 10:19:17 ui:
2016/08/23 10:19:17 Build debug mode: false
2016/08/23 10:19:17 Force build: false
2016/08/23 10:19:17 Preparing build: vmware-iso
2016/08/23 10:19:17 Waiting on builds to complete...
2016/08/23 10:19:17 Starting build run: vmware-iso
2016/08/23 10:19:17 Running builder: vmware-iso
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 reconnecting to TCP connection for SSH
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 handshaking with SSH
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Keyboard interactive challenge:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 -- User:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 -- Instructions:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 -- Question 1: Password:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Keyboard interactive challenge:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 -- User:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 -- Instructions:
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 handshake complete!
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 [INFO] no local agent socket, will not connect agent
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 opening new ssh session
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 starting remote command: esxcli --formatter csv system version get
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 remote command exited with '0': esxcli --formatter csv system version get
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 Connected to VMware ESXi 5.5.0 Releasebuild-3029944
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 opening new ssh session
2016/08/23 10:19:17 packer.exe: 2016/08/23 10:19:17 starting remote command: esxcli --formatter csv system settings advanced list -o /Net/GuestIPHack
2016/08/23 10:19:18 packer.exe: 2016/08/23 10:19:18 remote command exited with '0': esxcli --formatter csv system settings advanced list -o /Net/GuestIPHack
2016/08/23 10:19:18 ui: ==> vmware-iso: Downloading or copying ISO
2016/08/23 10:19:18 ui: vmware-iso: Downloading or copying: file:///C:/dev/Mits.Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
2016/08/23 10:19:18 packer.exe: 2016/08/23 10:19:18 Acquiring lock to download: file:///C:/dev/Mits.Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
2016/08/23 10:19:18 packer.exe: 2016/08/23 10:19:18 Parsed URL: &url.URL{Scheme:"file", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/C:/dev/Mits.Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO", RawPath:"", RawQuery:"", Fragment:""}
2016/08/23 10:19:18 packer.exe: 2016/08/23 10:19:18 [DEBUG] Using local file: /C:/dev/Mits.Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
2016/08/23 10:19:18 packer.exe: 2016/08/23 10:19:18 Verifying checksum of C:/dev/Mits.Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 starting remote command: test -e /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 remote command exited with '1': test -e /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 starting remote command: mkdir -p /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 remote command exited with '0': mkdir -p /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:19:41 ui: ==> vmware-iso: Creating floppy disk...
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Floppy path: C:\Users\mtl\AppData\Local\Temp\packer603066291
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Initializing block device backed by temporary file
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Formatting the block device with a FAT filesystem...
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Initializing FAT filesystem on block device
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Reading the root directory from the filesystem
2016/08/23 10:19:41 ui: vmware-iso: Copying: Autounattend.xml
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Adding file to floppy: Autounattend.xml
2016/08/23 10:19:41 ui: ==> vmware-iso: Uploading Floppy to remote machine...
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Remote uploading: C:\Users\mtl\AppData\Local\Temp\packer603066291
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 starting remote command: mkdir -p /vmfs/volumes/templates/packer_cache
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 remote command exited with '0': mkdir -p /vmfs/volumes/templates/packer_cache
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Verifying checksum of /vmfs/volumes/templates/packer_cache/packer603066291
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 starting remote command: md5sum -c
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 remote command exited with '1': md5sum -c
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Starting remote scp process: scp -vt /vmfs/volumes/templates/packer_cache
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Started SCP session, beginning transfers...
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Copying input data into temporary file so we can read the length
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 [DEBUG] scp: Uploading packer603066291: perms=C0644 size=1474560
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 SCP session complete, closing stdin pipe.
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Waiting for SSH session to complete.
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 scp stderr (length 36): Sink: C0644 1474560 packer603066291
2016/08/23 10:19:41 ui: ==> vmware-iso: Uploading ISO to remote machine...
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Remote uploading: C:/dev/Mits.Images/isos/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 starting remote command: mkdir -p /vmfs/volumes/templates/packer_cache
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 remote command exited with '0': mkdir -p /vmfs/volumes/templates/packer_cache
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 Verifying checksum of /vmfs/volumes/templates/packer_cache/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 opening new ssh session
2016/08/23 10:19:41 packer.exe: 2016/08/23 10:19:41 starting remote command: md5sum -c
2016/08/23 10:22:17 packer.exe: 2016/08/23 10:22:17 remote command exited with '0': md5sum -c
2016/08/23 10:22:17 packer.exe: 2016/08/23 10:22:17 Initial checksum matched, no upload needed.
2016/08/23 10:22:17 ui: ==> vmware-iso: Creating virtual machine disk
2016/08/23 10:22:17 packer.exe: 2016/08/23 10:22:17 opening new ssh session
2016/08/23 10:22:17 packer.exe: 2016/08/23 10:22:17 starting remote command: vmkfstools -c 61440M -d zeroedthick -a lsilogic /vmfs/volumes/templates/output-vmware-iso/disk.vmdk
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 remote command exited with '0': vmkfstools -c 61440M -d zeroedthick -a lsilogic /vmfs/volumes/templates/output-vmware-iso/disk.vmdk
2016/08/23 10:22:18 ui: ==> vmware-iso: Building and writing VMX file
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Writing VMX to: C:\Users\mtl\AppData\Local\Temp\packer-vmx020899933\packer-vmware-iso.vmx
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Setting VMX: 'ethernet0.dvs.switchId' = '10 4d 31 5a 2d 02 66 5c-05 89 69 1d f9 3a 3d b4'
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Setting VMX: 'ethernet0.dvs.portId' = '525'
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Setting VMX: 'ethernet0.dvs.portgroupId' = 'dvportgroup-378'
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Setting VMX: 'scsi0.virtualDev' = 'lsisas1068'
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Floppy path present, setting in VMX
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Writing VMX to: C:\Users\mtl\AppData\Local\Temp\packer-vmx020899933\packer-vmware-iso.vmx
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Suppressing messages in VMX
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 Looking for available port between 5900 and 6000
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 opening new ssh session
2016/08/23 10:22:18 packer.exe: 2016/08/23 10:22:18 starting remote command: esxcli --formatter csv network ip connection list
2016/08/23 10:22:19 packer.exe: 2016/08/23 10:22:19 remote command exited with '0': esxcli --formatter csv network ip connection list
2016/08/23 10:22:19 packer.exe: 2016/08/23 10:22:19 ESXi listening on address :::22, port 22 unavailable for VNC
2016/08/23 10:22:19 packer.exe: 2016/08/23 10:22:19 ESXi listening on address 0.0.0.0:22, port 22 unavailable for VNC
# Removed similar messages containing IPs
2016/08/23 10:22:19 packer.exe: 2016/08/23 10:22:19 Trying address: labesxi01:5900...
2016/08/23 10:22:20 packer.exe: 2016/08/23 10:22:20 Timeout connecting to: labesxi01:5900 (check firewall rules)
2016/08/23 10:22:20 packer.exe: 2016/08/23 10:22:20 Trying address: labesxi01:5901...
2016/08/23 10:22:21 packer.exe: 2016/08/23 10:22:21 Timeout connecting to: labesxi01:5901 (check firewall rules)
2016/08/23 10:22:21 packer.exe: 2016/08/23 10:22:21 Trying address: labesxi01:5902...
2016/08/23 10:22:22 packer.exe: 2016/08/23 10:22:22 Timeout connecting to: labesxi01:5902 (check firewall rules)
2016/08/23 10:22:22 packer.exe: 2016/08/23 10:22:22 Trying address: labesxi01:5903...
2016/08/23 10:22:23 packer.exe: 2016/08/23 10:22:23 Timeout connecting to: labesxi01:5903 (check firewall rules)
2016/08/23 10:22:23 packer.exe: 2016/08/23 10:22:23 Trying address: labesxi01:5904...
2016/08/23 10:22:24 packer.exe: 2016/08/23 10:22:24 Timeout connecting to: labesxi01:5904 (check firewall rules)
2016/08/23 10:22:24 packer.exe: 2016/08/23 10:22:24 Trying address: labesxi01:5905...
2016/08/23 10:22:25 packer.exe: 2016/08/23 10:22:25 Timeout connecting to: labesxi01:5905 (check firewall rules)
2016/08/23 10:22:25 packer.exe: 2016/08/23 10:22:25 Trying address: labesxi01:5906...
2016/08/23 10:22:26 packer.exe: 2016/08/23 10:22:26 Timeout connecting to: labesxi01:5906 (check firewall rules)
2016/08/23 10:22:26 packer.exe: 2016/08/23 10:22:26 Trying address: labesxi01:5907...
2016/08/23 10:22:27 packer.exe: 2016/08/23 10:22:27 Timeout connecting to: labesxi01:5907 (check firewall rules)
2016/08/23 10:22:27 packer.exe: 2016/08/23 10:22:27 Trying address: labesxi01:5908...
2016/08/23 10:22:28 packer.exe: 2016/08/23 10:22:28 Timeout connecting to: labesxi01:5908 (check firewall rules)
2016/08/23 10:22:28 packer.exe: 2016/08/23 10:22:28 Trying address: labesxi01:5909...
2016/08/23 10:22:29 packer.exe: 2016/08/23 10:22:29 Timeout connecting to: labesxi01:5909 (check firewall rules)
2016/08/23 10:22:29 packer.exe: 2016/08/23 10:22:29 Trying address: labesxi01:5910...
2016/08/23 10:22:30 packer.exe: 2016/08/23 10:22:30 Timeout connecting to: labesxi01:5910 (check firewall rules)
2016/08/23 10:22:30 packer.exe: 2016/08/23 10:22:30 Trying address: labesxi01:5911...
2016/08/23 10:22:31 packer.exe: 2016/08/23 10:22:31 Timeout connecting to: labesxi01:5911 (check firewall rules)
2016/08/23 10:22:31 packer.exe: 2016/08/23 10:22:31 Trying address: labesxi01:5912...
2016/08/23 10:22:32 packer.exe: 2016/08/23 10:22:32 Timeout connecting to: labesxi01:5912 (check firewall rules)
2016/08/23 10:22:32 packer.exe: 2016/08/23 10:22:32 Trying address: labesxi01:5913...
2016/08/23 10:22:33 packer.exe: 2016/08/23 10:22:33 Timeout connecting to: labesxi01:5913 (check firewall rules)
2016/08/23 10:22:33 packer.exe: 2016/08/23 10:22:33 Trying address: labesxi01:5914...
2016/08/23 10:22:34 packer.exe: 2016/08/23 10:22:34 Timeout connecting to: labesxi01:5914 (check firewall rules)
2016/08/23 10:22:34 packer.exe: 2016/08/23 10:22:34 Trying address: labesxi01:5915...
2016/08/23 10:22:35 packer.exe: 2016/08/23 10:22:35 Timeout connecting to: labesxi01:5915 (check firewall rules)
2016/08/23 10:22:35 packer.exe: 2016/08/23 10:22:35 Trying address: labesxi01:5916...
2016/08/23 10:22:36 packer.exe: 2016/08/23 10:22:36 Timeout connecting to: labesxi01:5916 (check firewall rules)
2016/08/23 10:22:36 packer.exe: 2016/08/23 10:22:36 Trying address: labesxi01:5917...
2016/08/23 10:22:37 packer.exe: 2016/08/23 10:22:37 Timeout connecting to: labesxi01:5917 (check firewall rules)
2016/08/23 10:22:37 packer.exe: 2016/08/23 10:22:37 Trying address: labesxi01:5918...
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 Found available VNC port: 5918
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 Writing VMX to: C:\Users\mtl\AppData\Local\Temp\packer-vmx020899933\packer-vmware-iso.vmx
2016/08/23 10:22:38 ui: ==> vmware-iso: Registering remote VM...
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 opening new ssh session
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 Starting remote scp process: scp -vt /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 Started SCP session, beginning transfers...
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 Copying input data into temporary file so we can read the length
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 [DEBUG] scp: Uploading packer-vmware-iso.vmx: perms=C0644 size=2640
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 SCP session complete, closing stdin pipe.
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 Waiting for SSH session to complete.
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 scp stderr (length 39): Sink: C0644 2640 packer-vmware-iso.vmx
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 opening new ssh session
2016/08/23 10:22:38 packer.exe: 2016/08/23 10:22:38 starting remote command: vim-cmd solo/registervm /vmfs/volumes/templates/output-vmware-iso/packer-vmware-iso.vmx
2016/08/23 10:22:39 packer.exe: 2016/08/23 10:22:39 remote command exited with '0': vim-cmd solo/registervm /vmfs/volumes/templates/output-vmware-iso/packer-vmware-iso.vmx
2016/08/23 10:22:39 ui: ==> vmware-iso: Starting virtual machine...
2016/08/23 10:22:39 ui: vmware-iso: The VM will be run headless, without a GUI. If you want to
vmware-iso: view the screen of the VM, connect via VNC without a password to
vmware-iso: labesxi01:5918
2016/08/23 10:22:39 packer.exe: 2016/08/23 10:22:39 opening new ssh session
2016/08/23 10:22:39 packer.exe: 2016/08/23 10:22:39 starting remote command: vim-cmd vmsvc/power.on 275
2016/08/23 10:22:41 packer.exe: 2016/08/23 10:22:41 remote command exited with '0': vim-cmd vmsvc/power.on 275
2016/08/23 10:22:41 packer.exe: 2016/08/23 10:22:41 opening new ssh session
2016/08/23 10:22:41 packer.exe: 2016/08/23 10:22:41 starting remote command: vim-cmd vmsvc/power.getstate 275
2016/08/23 10:22:42 packer.exe: 2016/08/23 10:22:42 remote command exited with '0': vim-cmd vmsvc/power.getstate 275
2016/08/23 10:22:42 ui: ==> vmware-iso: Waiting 10s for boot...
2016/08/23 10:22:52 ui: ==> vmware-iso: Connecting to VM via VNC
2016/08/23 10:22:52 packer.exe: 2016/08/23 10:22:52 Connected to VNC desktop: packer-vmware-iso
2016/08/23 10:22:52 packer.exe: 2016/08/23 10:22:52 Host IP for the VMware machine: 192.168.1.198
2016/08/23 10:22:52 ui: ==> vmware-iso: Typing the boot command over VNC...
2016/08/23 10:22:52 packer.exe: 2016/08/23 10:22:52 Waiting for WinRM, up to timeout: 30m0s
2016/08/23 10:22:52 ui: ==> vmware-iso: Waiting for WinRM to become available...
2016/08/23 10:22:57 packer.exe: 2016/08/23 10:22:57 opening new ssh session
2016/08/23 10:22:57 packer.exe: 2016/08/23 10:22:57 starting remote command: esxcli --formatter csv network vm list
2016/08/23 10:22:57 packer.exe: 2016/08/23 10:22:57 remote command exited with '0': esxcli --formatter csv network vm list
2016/08/23 10:22:57 packer.exe: 2016/08/23 10:22:57 [DEBUG] Error getting WinRM host: EOF
2016/08/23 10:23:02 packer.exe: 2016/08/23 10:23:02 opening new ssh session
2016/08/23 10:23:02 packer.exe: 2016/08/23 10:23:02 starting remote command: esxcli --formatter csv network vm list
2016/08/23 10:23:03 packer.exe: 2016/08/23 10:23:03 remote command exited with '0': esxcli --formatter csv network vm list
2016/08/23 10:23:03 packer.exe: 2016/08/23 10:23:03 [DEBUG] Error getting WinRM host: EOF
# ... Same message block every few seconds.
2016/08/23 10:35:18 packer.exe: 2016/08/23 10:35:18 opening new ssh session
2016/08/23 10:35:18 packer.exe: 2016/08/23 10:35:18 starting remote command: esxcli --formatter csv network vm list
2016/08/23 10:35:19 packer.exe: 2016/08/23 10:35:19 remote command exited with '0': esxcli --formatter csv network vm list
2016/08/23 10:35:19 packer.exe: 2016/08/23 10:35:19 [DEBUG] Error getting WinRM host: EOF
2016/08/23 10:35:21 packer.exe: 2016/08/23 10:35:21 Received interrupt signal (count: 1). Ignoring.
2016/08/23 10:35:21 Closing stdin because interrupt received.
2016/08/23 10:35:21 Stopping build: vmware-iso
2016/08/23 10:35:21 packer.exe: 2016/08/23 10:35:21 Cancelling the step runner...
2016/08/23 10:35:22 packer.exe: 2016/08/23 10:35:22 Interrupt detected, quitting waiting for WinRM.
2016/08/23 10:35:22 packer.exe: 2016/08/23 10:35:22 opening new ssh session
2016/08/23 10:35:22 packer.exe: 2016/08/23 10:35:22 [INFO] WinRM wait cancelled. Exiting loop.
2016/08/23 10:35:22 packer.exe: 2016/08/23 10:35:22 starting remote command: vim-cmd vmsvc/power.getstate 275
2016/08/23 10:35:23 packer.exe: 2016/08/23 10:35:23 remote command exited with '0': vim-cmd vmsvc/power.getstate 275
2016/08/23 10:35:23 ui: ==> vmware-iso: Stopping virtual machine...
2016/08/23 10:35:23 packer.exe: 2016/08/23 10:35:23 opening new ssh session
2016/08/23 10:35:23 packer.exe: 2016/08/23 10:35:23 starting remote command: vim-cmd vmsvc/power.off 275
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 remote command exited with '0': vim-cmd vmsvc/power.off 275
2016/08/23 10:35:25 ui: ==> vmware-iso: Unregistering virtual machine...
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 opening new ssh session
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 starting remote command: vim-cmd vmsvc/unregister 275
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 remote command exited with '0': vim-cmd vmsvc/unregister 275
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 Deleting floppy disk: C:\Users\mtl\AppData\Local\Temp\packer603066291
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 opening new ssh session
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 starting remote command: test -e /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 remote command exited with '0': test -e /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:35:25 ui: ==> vmware-iso: Deleting output directory...
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 opening new ssh session
2016/08/23 10:35:25 packer.exe: 2016/08/23 10:35:25 starting remote command: rm -rf /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:35:26 packer.exe: 2016/08/23 10:35:26 remote command exited with '0': rm -rf /vmfs/volumes/templates/output-vmware-iso
2016/08/23 10:35:26 ui error: Build 'vmware-iso' errored: Build was cancelled.
2016/08/23 10:35:26 Builds completed. Waiting on interrupt barrier...
2016/08/23 10:35:26 Build cancelled: vmware-iso
2016/08/23 10:35:26 ui: Cleanly cancelled builds after being interrupted.
2016/08/23 10:35:26 waiting for all plugin processes to complete...
2016/08/23 10:35:26 C:\Chocolatey\lib\packer.0.10.1\tools\packer.exe: plugin process exited
{
"builders": [{
"type": "vmware-iso",
"iso_url": "isos\\9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO",
"iso_checksum_type": "MD5",
"iso_checksum": "5B5E08C490AD16B59B1D9FAB0DEF883A",
"disk_size": 61440,
"communicator": "winrm",
"winrm_username": "packer",
"winrm_password": "packer",
"winrm_port": "5985",
"winrm_timeout": "30m",
"guest_os_type": "windows8srv-64",
"tools_upload_flavor": "windows",
"shutdown_command": "C:/windows/system32/sysprep/sysprep.exe /generalize /oobe /unattend:A:/postunattend.xml /quiet /shutdown",
"shutdown_timeout": "30m",
"floppy_files": [
"Autounattend.xml"
],
"vmx_data": {
"scsi0.virtualDev": "lsisas1068",
"ethernet0.dvs.switchId": "10 4d 31 5a 2d 02 66 5c-05 89 69 1d f9 3a 3d b4",
"ethernet0.dvs.portId": "525",
"ethernet0.dvs.portgroupId": "dvportgroup-378"
},
"headless": true,
"remote_host": "labesxi01",
"remote_datastore": "templates",
"remote_username": "packer",
"remote_password": "packer",
"remote_type": "esx5"
}]
}
@michaeltlombardi
Copy link
Author

Note: I downloaded the ISO and cached it locally; it's the 2012R2 image for technical evaluation with a 180 day license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment