Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Operating System - No Images Available #20

Closed
cjbischoff opened this issue Dec 16, 2016 · 7 comments
Closed

No Operating System - No Images Available #20

cjbischoff opened this issue Dec 16, 2016 · 7 comments

Comments

@cjbischoff
Copy link

Performing - hangs with the vmware fusion screen

image

❯❯❯ packer build --only=vmware-iso windows_2016.json ⏎ ✱ (git:my)
vmware-iso output will be in this color.

==> vmware-iso: Downloading or copying ISO
vmware-iso: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO
==> vmware-iso: Creating floppy disk...
vmware-iso: Copying files flatly from floppy_files
vmware-iso: Copying file: ./answer_files/2016/Autounattend.xml
vmware-iso: Copying file: ./floppy/WindowsPowershell.lnk
vmware-iso: Copying file: ./floppy/PinTo10.exe
vmware-iso: Copying file: ./scripts/disable-screensaver.ps1
vmware-iso: Copying file: ./scripts/disable-winrm.ps1
vmware-iso: Copying file: ./scripts/enable-winrm.ps1
vmware-iso: Copying file: ./scripts/microsoft-updates.bat
vmware-iso: Copying file: ./scripts/win-updates.ps1
vmware-iso: Done copying files from floppy_files
vmware-iso: Collecting paths from floppy_dirs
vmware-iso: Resulting paths from floppy_dirs : []
vmware-iso: Done copying paths from floppy_dirs
==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Waiting 2m0s 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...

@cjbischoff
Copy link
Author

Further poking around I found this -> http://jontriphan.com/windows-8-error-there-are-no-images-available-on-wmware/

Basically I disable the floppy and restart and it works, but it breaks auto-build since you are using the floppy

@StefanScherer
Copy link
Owner

StefanScherer commented Dec 16, 2016

@cjbischoff Just tried packer build --only=vmware-iso windows_2016.json and it doesn't hang here.
I'm using packer 0.12.0, Fusion Pro 8.5.3, but it should work without Pro as well.

You could try with debug output

PACKER_LOG=debug packer build --only=vmware-iso windows_2016.json

and link a gist of it.

@cjbischoff
Copy link
Author

@StefanScherer Ok the debug is nice

==> vmware-iso: Waiting for WinRM to become available...
2016/12/16 09:40:07 packer: 2016/12/16 09:40:07 Lookup up IP information...
2016/12/16 09:40:07 packer: 2016/12/16 09:40:07 DHCP leases path: /var/db/vmware/vmnet-dhcpd-vmnet8.leases
2016/12/16 09:40:07 packer: 2016/12/16 09:40:07 IP lookup failed: open /var/db/vmware/vmnet-dhcpd-vmnet8.leases: no such file or directory

So something is up with network connectivity.

During your builds is your network set to Share with Mac or Private to Mac?

@StefanScherer
Copy link
Owner

I can see the same debug output while the guest does not have setup the network interface. The message still appears while the win-update script searches for the first Windows Updates.

I can see the following settings in the output*/*.vmx file

ethernet0.addresstype = "generated"
ethernet0.bsdname = "en0"
ethernet0.connectiontype = "nat"
ethernet0.displayname = "Ethernet"
ethernet0.linkstatepropagation.enable = "FALSE"
ethernet0.pcislotnumber = "33"
ethernet0.present = "TRUE"
ethernet0.virtualdev = "e1000"
ethernet0.wakeonpcktrcv = "FALSE"
ethernet0.generatedAddress = "00:0c:29:ed:de:30"
ethernet0.generatedAddressOffset = "0"

Just the normal settings.

@StefanScherer
Copy link
Owner

@cjbischoff Have you made any progress?

@StefanScherer
Copy link
Owner

I can reproduce the problem, but with the Windows 10 Insider 15002 ISO file. Seems that this ISO can't be used with the autounattend.xml as there is no selection needed.
OK, it seems to work - at least it's getting files ready for installation by removing the ProductKey and the InstallFrom sections in the autounattend.xml.
Do you use eg. the Win2016 essentials ISO file?

@StefanScherer
Copy link
Owner

Closing this as it seems to be a problem with the ISO itself. Rebuilt two boxes yesterday with latest ISO works. But if you still have problem, don't hesitate to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants