Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Unable to poweroff Virtual Machine #152

Closed
leonrado opened this issue Sep 27, 2018 · 2 comments
Closed

Unable to poweroff Virtual Machine #152

leonrado opened this issue Sep 27, 2018 · 2 comments

Comments

@leonrado
Copy link

In my testing I was trying to create a simple VM RHEL 7.3, but the VM do not response and that is unable to poweroff VM.
VSPHERE: 6.5
PACKER 1.3.1
packer-builder-vsphere: lastest

json file:

{
  "builders": [
    {
      "type": "vsphere-iso",

      "vcenter_server":      "xx.xx.xx.xx",
      "username":            "XXXXX",
      "password":            "IXXXXX",
      "insecure_connection": "true",
      "datacenter": "XXXXX",


      "vm_name": "packer_test_002",
      "cluster": "cl-app-rj",
      "host": "XX.XXX.XX",
      "resource_pool": "XXXX",
      "datastore": "XXXX",
      "folder": "Discovered virtual machine",
      "network": "XXXXXXXX",


      "guest_os_type": "rhel7_64Guest",

      "ssh_username": "root",
      "ssh_password": "XXXXXX",

      "CPUs":             2,
      "RAM":              4096,
      "RAM_reserve_all": false,

      "disk_controller_type":  "pvscsi",
      "disk_size":        81920,
      "disk_thin_provisioned": false,

      "network_card": "vmxnet3",

      "iso_paths": [
        "[datastore1] ISOs/rhel-server-7.3-x86_64-dvd.iso"
      ],
      "floppy_files": [
        "./http/ks.cfg"
      ],
      "boot_command": [
        "<tab> text ks=/media/ks.cfg <enter><wait>"
      ]
    }
  ],

  "provisioners": [
   {
     "type": "shell",
     "inline": ["ls /"]
   }
 ]
}
@seanmalloy
Copy link
Contributor

I would try adding CPU_limit: -1 to your config.

@mkuzmin
Copy link
Contributor

mkuzmin commented Oct 16, 2018

@mkuzmin mkuzmin closed this as completed Oct 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants