Now that 6.1 version is out I'm getting some errors when I'm running the .pxe file for creating new virtual machines. Hope someone could help me out, cause I'm stuck on this.
Exception setting "LaunchVMProcess": Cannot convert the "System.Object[]" value of type "Object[]" to type "array".
+ $vm.LaunchVMProcess($vsession, "", "") | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RuntimeException
This is what I'm getting and below are some of these variables opened for better understanding.
$vbox = New-Object -ComObject "VirtualBox.VirtualBox"
$vm = $vbox.CreateMachine($sname, $vmname, [string[]]@(""), "Ubuntu_64", "forceOverwrite=1")
$vsession = New-Object -ComObject "VirtualBox.Session"
Fixing .pxe file errors for 6.1
Discussion about using the VirtualBox API, Tutorials, Samples.
Return to “The VirtualBox API”
Jump to
- General
- ↳ Howtos and Tutorials
- ↳ Rules and FAQ
- ↳ Generic Advice
- ↳ Building VirtualBox
- ↳ Windows Hosts
- ↳ Linux Hosts
- ↳ Other Hosts
- ↳ Windows Guests
- ↳ Linux Guests
- ↳ Other Guests
- ↳ Using VirtualBox
- ↳ VirtualBox on Windows Hosts
- ↳ VirtualBox on Windows pre-releases
- ↳ VirtualBox on Linux Hosts
- ↳ VirtualBox on Mac OS X Hosts
- ↳ VirtualBox on Mac OS X pre-releases
- ↳ VirtualBox on Solaris Hosts
- ↳ VirtualBox on Other Hosts
- ↳ Suggestions
- ↳ Third Party Applications
- Guest systems
- ↳ Windows Guests
- ↳ Linux Guests
- ↳ Solaris Guests
- ↳ Mac OS X Guests
- ↳ Other Guests
- Deutschsprachige Anwender
- ↳ Allgemeine Diskussionen
- VirtualBox Programming
- ↳ The VirtualBox API
- ↳ VirtualBox OSE
- Special Purpose
- ↳ VirtualBox Beta / Release Candidate Feedback
- ↳ Old Beta Postings