box-cutter / windows-vm

Virtual machine templates for Windows
76 stars 35 forks source link

VMWare tools fails to install #24

Closed rasa closed 10 years ago

rasa commented 10 years ago

Using the current master/HEAD, I'm seeing

$ make vmware/win7x64-enterprise
...
    vmware-iso: ==> Extracting the VMWare Tools installer
    vmware-iso:
    vmware-iso: 7-Zip [64] 9.22 beta  Copyright (c) 1999-2011 Igor Pavlov  2011-04-18
    vmware-iso:
    vmware-iso:
    vmware-iso: Error:
    vmware-iso: cannot find archive
    vmware-iso: ==> Installing VMware tools
    vmware-iso: The system cannot find the path specified.
    vmware-iso: ==> Cleaning up VMware tools install
    vmware-iso: Could Not Find C:\Windows\Temp\vmware
    vmware-iso: ==> Removing "C:\Users\vagrant\windows.iso"
    vmware-iso: Could Not Find C:\Users\vagrant\windows.iso
...

full log is here: https://gist.github.com/rasa/059737de00ad65721b3c#file-gistfile1-txt-L50

misheska commented 10 years ago

Need more details about your environment. All I've seen is some weirdness with cygwin starting up on the 32-bit platforms. Installs just fine in the build farm (w/VMware Fusion 6.0.2 and Packer 0.6.0): https://box-cutter.ci.cloudbees.com/job/win7-chef/3/console

04:01:17 + make win7
04:01:17 rm -rf output-vmware-iso
04:01:17 mkdir -p box/vmware
04:01:17 packer build -only=vmware-iso -var 'cm=chef' -var 'cm_version=11.12.4' -var "iso_url=file:///Volumes/Storage/MSDN_Chef/win7/en_windows_7_enterprise_with_sp1_x64_dvd_u_677651.iso" -var "iso_checksum=a491f985dccfb5863f31b728dddbedb2ff4df8d1" win7x64-enterprise.json
04:01:17 vmware-iso output will be in this color.
04:01:17 
04:01:17 ==> vmware-iso: Downloading or copying ISO
04:01:17     vmware-iso: Downloading or copying: file:///Volumes/Storage/MSDN_Chef/win7/en_windows_7_enterprise_with_sp1_x64_dvd_u_677651.iso
04:01:33 ==> vmware-iso: Creating floppy disk...
04:01:33     vmware-iso: Copying: floppy/win7x64-enterprise/Autounattend.xml
04:01:33     vmware-iso: Copying: floppy/00-run-all-scripts.cmd
04:01:34     vmware-iso: Copying: floppy/install-winrm.cmd
04:01:34     vmware-iso: Copying: floppy/fixnetwork.ps1
04:01:34     vmware-iso: Copying: floppy/powerconfig.bat
04:01:34     vmware-iso: Copying: floppy/01-install-wget.cmd
04:01:34     vmware-iso: Copying: floppy/_download.cmd
04:01:34     vmware-iso: Copying: floppy/_packer_config.cmd
04:01:34     vmware-iso: Copying: floppy/passwordchange.bat
04:01:34     vmware-iso: Copying: floppy/networkprompt.bat
04:01:34     vmware-iso: Copying: floppy/openssh.bat
04:01:34     vmware-iso: Copying: floppy/zz-start-sshd.cmd
04:01:34 ==> vmware-iso: Creating virtual machine disk
04:01:34 ==> vmware-iso: Building and writing VMX file
04:01:34 ==> vmware-iso: Starting virtual machine...
04:01:38 ==> vmware-iso: Waiting 10s for boot...
04:01:48 ==> vmware-iso: Connecting to VM via VNC
04:01:48 ==> vmware-iso: Typing the boot command over VNC...
04:01:48 ==> vmware-iso: Waiting for SSH to become available...
04:09:06 ==> vmware-iso: Connected to SSH!
04:09:06 ==> vmware-iso: Uploading the 'windows' VMware Tools
04:09:09 ==> vmware-iso: Provisioning with shell script: script/vagrant.bat
04:09:09     vmware-iso: ==> Installing vagrant public key
04:09:09     vmware-iso: ==> Downloading "https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub" to "C:\Users\vagrant\.ssh\authorized_keys"
04:09:09     vmware-iso: ==> Disabling vagrant account password expiration
04:09:09     vmware-iso: Updating property(s) of '\\WINDOWS-J4748BT\ROOT\CIMV2:Win32_UserAccount.Domain="WINDOWS-J4748BT",Name="vagrant"'
04:09:09     vmware-iso: Property(s) update successful.
04:09:09     vmware-iso:
04:09:09     vmware-iso:
04:09:09     vmware-iso:
04:09:09     vmware-iso:
04:09:10 ==> vmware-iso: Provisioning with shell script: script/cmtool.bat
rasa commented 10 years ago

I think this was my bad, closing.

misheska commented 10 years ago

From Stefan’s comments, it does look like we need to sort out whether or not “config.vm.guest = :windows” is required in the template…and all that other stuff. Awaiting his findings...

On Jun 2, 2014, at 7:18 AM, Ross Smith II notifications@github.com wrote:

I think this was my bad, closing.

— Reply to this email directly or view it on GitHub.