packer-builder-vsphere icon indicating copy to clipboard operation
packer-builder-vsphere copied to clipboard

vsphere-iso: Step "StepBootCommand" failed?

Open dkirrane opened this issue 6 years ago • 3 comments

What's the boot_command for Centos 7 on vSphere 6.5?

I'm trying the following but hit the error vsphere-iso: Step "StepBootCommand" failed?

            "iso_paths": [
                "[Datastore1] ISOs/CentOS-7-x86_64-Minimal-1708.iso"
            ],
            "floppy_files": [
                "kickstart/ks.cfg"
            ],
            "boot_wait": "10s",
            "boot_command": "<tab> text inst.ks=hd:fd0:/ks.cfg <enter><wait>",          
            "boot_order": "disk,cdrom", 

dkirrane avatar May 18 '18 17:05 dkirrane

I'm having the same issue here. It doesn't appear to ever attempt to enter anything into the console. vSphere 6.5, trying to install RHEL7.

Here-Be-Dragons avatar Jun 01 '18 20:06 Here-Be-Dragons

I'm having similar issues with SLES 15 on vSphere 6.7. I figured out, that the boot command actually works when I open the VM console while Packer is running. Does this also work for you?

stdevel avatar Feb 28 '19 09:02 stdevel

There's two threads on the same issue, perhaps more. Not sure this is actively being worked on or not, but if there was a debug version we could trace through it might help. Is the plugin even sending anything? It doesn't appear to be. If it was and the text it passed was incorrect, the VM would not boot properly, but you'd at least see something happen. The way it seems to be working today, is that it might get to the point where it issues the command, chooses not to, and destroys the machine.

gitcdb avatar Apr 07 '19 16:04 gitcdb