josenk / vagrant-vmware-esxi

A Vagrant plugin that adds a vmware ESXi provider support.
GNU General Public License v3.0
414 stars 109 forks source link

Problems with generic/rhel8 #90

Open rodrigc opened 5 years ago

rodrigc commented 5 years ago

I've been using vagrant-vmware-esxi to provision centos/7 and generic/rhel7 images on ESXi without problem.

I used this Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "generic/rhel8"

  #
  #  Provider (esxi) settings
  #
  config.vm.provider :vmware_esxi do |esxi|

    esxi.esxi_hostname = 'my.hostname'

    esxi.esxi_username = 'root'
    esxi.esxi_password = 'blah'
    esxi.guest_name_prefix = 'craig-rhel8'
    esxi.guest_memsize = '4096'
    esxi.guest_numvcpus = '2'
    esxi.guest_virtualhw_version = '14'
    esxi.guest_boot_disk_size = 42
    esxi.debug = 'true password'
  end
end

and got this:


Transfer Completed
Completed successfully
==> default: --- Keeping file    : /root/.vagrant.d/boxes/generic-VAGRANTSLASH-rhel8/1.9.20/vmware_desktop/ZZZZ_craig-rhel88ca2a50fd27d-root-rhel8.vmx
==> default: --- VMID            : 1060
Boot Disk:
There was an error talking to ESXi.
  Unable to determin boot disk

Any ideas what the problem could be with starting the generic/rhel8 image?

josenk commented 5 years ago

I was able to re-create the problem. The generic/rhel8 box is using SATA disk controller. My code doesn't yet support extending SATA disks, so I'll have to add that.

In the mean time, you can just remove esxi.guest_boot_disk_size = 42 from the Vagrantfile and it should work. If you really need a bigger root disk, you can increase the disk size in the esxi console after the deployment.

rodrigc commented 5 years ago

Thanks for tracking that down. I wouldn't have figured that out!