Comments (2)
See also
from packer-plugin-vsphere.
Added the documentation
label.
Per the docs this only is for the primary disk but the docs do not account for this explicitly.
The following function provides the error seen.
func findDisk(devices object.VirtualDeviceList) (*types.VirtualDisk, error) {
var disks []*types.VirtualDisk
for _, device := range devices {
switch d := device.(type) {
case *types.VirtualDisk:
disks = append(disks, d)
}
}
switch len(disks) {
case 0:
return nil, errors.New("VM has no disks")
case 1:
return disks[0], nil
}
return nil, errors.New("VM has multiple disks")
}
from packer-plugin-vsphere.
Related Issues (20)
- vTPM is not required to enable VBS. HOT 4
- Missleading documentation: `disk_size` is in MiB not in MB HOT 4
- Add support for adding a precision clock device
- Uploaded cdrom iso is not cleaned up from remote packer_cache directory HOT 1
- `vsphere-clone`: Support Template Files for Windows Sysprep
- `vsphere-iso` : problem with VMX `bios.hddOrder` and `bios.bootOrder` with EFI HOT 5
- `vsphere-iso`: `ip_settle_timeout` does not honor values beyond 25m/1500s HOT 5
- Boot order frozen despite code change HOT 1
- Help with OUPath field on AD join HOT 2
- Firmware and boot issues HOT 1
- guest_os_type possible values link broken HOT 2
- 1.2.5 No longer builds Windows 2019 & 2022 HOT 8
- error removing cdrom prior to reattaching: invalid number: n must be between 0 and 0 HOT 8
- Add support to set template name during post-processing HOT 1
- Packer boot_command remains as default kernel boot command in /etc/default/grub causing problems with cloud init HOT 9
- `vsphere-clone` with `none` communicator does not start the vm, and proceeds to export after configuration HOT 7
- Add support for serial ports
- IP address gets changed after reboot (not always) when building using vsphere - no route to host ssh HOT 14
- Add support to import OVF template from URL in supervisor builder
- Crash when connecting with `insecure_connection=false` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-vsphere.