Create the virtual machine with the ISO mounted CDROM

Community of hell!

Working on the script to add the creation of CD-ROM with iso data store, I got stuck on the error

' Invalid device configuration: ' VirtualSCSIControllerOption.numSCSICdroms '.

I'm sure I'm missing something obvious, or this option but may not understand how to deliver this.

I created a cdrom as follows (below test I create any CDROM, no iso file to reduce the number of layers):

my $ BPPRR m_backing_info = VirtualCdromRemotePassthroughBackingInfo->new)

deviceName = > ' '.

exclusive = > 0,


my $description = description->new(label = > 'CDROM', summary = > 'cdddrom');

my $connectable = VirtualDeviceConnectInfo->new(allowGuestControl = > 1,)

connected = > 0,

startConnected = > 1,

( State = > inmates ' / ' );

my $ BPPRR m = VirtualCdrom->new(backup = > $BPPRRm_backing_info,

connectable = > $connectable,

controllerKey = > 0,

deviceInfo = > $description,

key => 1,

( unitNumber = > 1 );

VirtualDeviceConfigSpec->new(device = > $BPPRRm,

operation = > VirtualDeviceConfigSpecOperation->new()'add'));

Did anyone have working example to create the virtual machine with CDRom?



If someone will find this useful I followed this route Re: add the device CD/DVD fails if the virtual machine created with

and also I found good examples of what I need to in in cmd vmsphere libraries.


Tags: VMware

Similar Questions

  • Create a virtual machine with the physical RAM total?

    I want to virtualize ESXi 4 on my MacBook Pro. However, I have 2 GB of RAM and ESXi 4 requires a minimum of 2 GB.

    I posted in the community of ESXi (is it possible to virtualize ESXi 4 with less than 2 GB of RAM?) and there is a solution for using ESXi with less RAM, but the problem is that I first need to run the installation with 2 GB.

    Basically, I tried to create a virtual machine with 2 GB, but the maximum I can use is 1840MB. Is it something that I do with Fusion to increase this limit? I understand that I am under a host operating system and requiring too little RAM, but just to get through the ESXi installation isn't it possible to push the VM of RAM to 2 GB and the host what OS increase the pagefile to deal with the lack of RAM?

    Any help would be appreciated!

    Thank you

    You may be able to edit the .vmx file and change the memsize option either 2048 or more. The merger is able to start a virtual machine with more memory that the host, just UI prevents common users to exceed the limits of security in general.

    I'm not quite sure what would happen if the VM actually tries to use all of the memory. If all goes well, it will be just talk and run slowly. Of course, the worst case are that it crashes.

  • Create a virtual machine with Maximum carrots ESXi has?

    I someone told me that VMware does not support to create a virtual machine with more than 50% of the available cores has your host. For example, I have an ESXi host with 2 CPU each with 8 cores. I have therefore 16 cores on my host. I wouldn't be able to create a virtual machine with 8 cores to be supported. Even if I am able to create a virtual machine with 16 cores? Is this person crazy me

    This is completely untrue, there is no such limitation. If your license allows, you can use vCPUs as much as your physical host has available threads and as the VM virtual hardware version allows.

  • How to create a virtual machine with apps to play in VMware player?

    I know that this question was probably asked several times before. I searched for the answer and just shot to the top of threads that have a few years. I know a few things have changed since then and I didn't know how that would influence the answers. I want to create a virtual machine with specific applications that will play on VMware player. What is the best way to do it and it is possible for the weak or no cost? If someone knows a tutorial or blog etc I can follow that would be great.  Thank you

    See the article by Alessandro on that...

  • Create a virtual machine with 300G

    Hello, I am trying to create a virtual machine with 300 G on an ESX 3.5 update 3 but I can't do it, I can only create a VM of 256 G

    Is it possible to create a virtual machine of 300G.

    I have a 500G LUN with software on a CX3 - 10 c EMC iSCSI

    Thank you very much

    Change the size of block on your VMFS.

    If you create a data store, the default block size is 1 MB, which will allow you to create files up to 256 GB

    Change the block to 2 MB size. However, you will need to recreate your data store and this wil destroy all data on it!

    Arnim - van Lieshout


  • Cannot create a virtual machine with a vmdk file copied from another location, please find the attached error

    Hi all

    I copied a file from one place vmdk and try to make a new virtual machine with this vmdk file. But when I turn on after the creation of vm error is coming. Error in the text and the image below

    Power on the virtual machine: cannot open scsi0:0 disc: disc not supported or not valid type 7. Ensure that the disk has been imported.

    See the error of the stack for more details on the cause of this problem.

    Time: 31/03/2015-14:40:05

    Target: DBServer

    vCenter Server: vcsa

    Error stack

    An error was received from the ESX host turning on DBServer VM.

    Unable to start the virtual machine.

    Power DevicePowerOn module has failed.

    Unable to create the virtual SCSI device for scsi0:0, ' / vmfs/volumes/543d140b-feb33d52-7640-90b11c9796c3/vmdk/kapuatdb.vmdk'

    Could not open scsi0:0 disc: disc not supported or not valid type 7. Ensure that the disk has been imported.

    This error message generally if the hard files have been copied hosted as VMware Workstation product, which uses a format of sparse file that is not supported on an ESXi host. Instead of the hard copy, you can use VMware Converter, or - if you prefer - you can convert the hard using vmware-vdiskmanager (before transfer) or vmkfstools (after downloading). I deal to use vmkfstools you will need to load the mutliextent module (see for example "Clone or migration operations involving virtual discs non-VMFS on ESXi fail with an error" vSphere 5.1 Release Notes)


  • Can I just create a virtual machine with the installation of operating system and Application in an external drive?


    Hello. I use VMPlayer to install virtual machines a few OS in my laptop.

    Because my laptop's hard drive space is not enough to create a VM more to install Oracle Linux and its Application, can I just create a virtual machine in my laptop and then install Oracle Linux and its Application in an external USB disk?

    You can create and save the Virtual Machine in any place that you have read & write access to and enough space to support what is being installed.

  • Cannot create a virtual machine with more than 256 GB

    I thought that the max capacity 2 TB vm. but I can't create a virtual machine more than 256 GB. what I am doing wrong?

    Thank you

    You probably use a block size of 1 MB, which limits a single HDD 256 GB.  You will need a larger block size

    1 MB = 256 GB

    2 512 GB

    4 MB = 1024 GB

    8 MB = 2048 GB

  • Create multiple virtual machines with 2 network cards

    Hey guys -.

    Been researching some scripts of difference but did not find one who will help me in my situation.

    I'm looking for a script that will allow me to clone model and apply network settings to 2 network cards.

    1 clone Vms + 20 model

    2 Let me send it to a particular lun (using a few LUNS to available)

    3. choose a custom unique specification

    4. apply intellectual property on 2 NICs (primary and backup).

    Any help would be sincerely appreciated.

    Thank you

    Sorry to lose this thread out of my sight.

    What follows is an attempt to meet all the conditions you listed.

    $numberOfVM = 20$baseVMName = "VM"$templateName = "Template"$osCustName = "MyCust"$IPBase1 = "192.168.1."$IPBase2 = "192.168.2."$IPMask = ""$IPGate1 = ""$IPGate2 = ""$IPDns1 = ""$IPDns2 = ""
    # Target resourcepool$resPool = Get-ResourcePool -Name Resources
    # Get the template$template = Get-Template -Name $templateName
    # Create a copy of the OS Customisation SpecTry {    Get-OSCustomizationSpec -Name tempOSCust |    Remove-OSCustomizationSpec -Confirm:$false -ErrorAction Stop}Catch {}
    $osCust = Get-OSCustomizationSpec -Name $osCustName |     New-OSCustomizationSpec -Name tempOSCust -Type NonPersistent
    # Clone the number of requested VM1..$numberOfVm | %{    # Find the datastore with the most free space    $ds = Get-Datastore | Sort-Object -Property FreeSpaceGB -Descending |        Select -First 1
        # Update the OS Customisation Spec NIC parts with the IP addresses    Get-OSCustomizationNicMapping -OSCustomizationSpec $osCust |    Set-OSCustomizationNicMapping -Position 1 -IpMode UseStaticIP -IpAddress "$IPBase1$_" `        -SubnetMask $IPMask -DefaultGateway $IPGate1 -Dns $IPDns1 -ErrorAction SilentlyContinue | Out-Null
        Get-OSCustomizationNicMapping -OSCustomizationSpec $osCust |    Set-OSCustomizationNicMapping -Position 2 -IpMode UseStaticIP -IpAddress "$IPBase2$_" `        -SubnetMask $IPMask -DefaultGateway $IPGate2 -Dns $IPDns2 -ErrorAction SilentlyContinue | Out-Null
        # Create the new VM    New-VM -Name "$baseVMName$_" -Template $template -OSCustomizationSpec $osCust `        -Datastore $ds -ResourcePool $resPool  | Out-Null}

    The script will create clones of $numberOfVM of the model. The virtual machines will be created at the root of the bunch, and they will be called VM1, VM2...

    The OSCustomizationSpec needs to exist and must have 2 network cards.

    The script finds the data store with more free space to create each virtual computer.

    Addresses IP of NIC are consecutive, for example on NIC1 you get, and so on.

    Let me know if you have any questions.

  • How to create a virtual machine from an ISO file?


    I was exposed to ESXi for a few days and who need your help.

    I installed ESXi on a server and you want to create VMS of ISO files. (Ubuntu, Win7, ESXi)

    I beent told I can create virtual machines using Vcenter Converter from a client computer, but I can't figure out how.

    I have the Client installed vSphere and vCenter Converter Sandalone.

    Thank you for your help,


    The virtual machine must be fed first

  • How can I create a virtual machine from an ISO?

    I just installed VMware ESXi 4.1.0 on a server and then downloaded the vSphere client to connect to the server. I created a Linux (Debian 5 64-bit) profile VM, but I have the ISO Linux file on my PC I have vSphere client installed on. How can I tell my new machine VM to boot from ISO which is glued on my PC? Is there a way I can browse my PC using the vSphere client or do I burn the ISO on a CD - R and the place physically in the CD-ROM on the host system so that I can start my Linux install?

    Thanks for any help!

    you will need to ensure that the ISO file is accessible to the ESXi host moving to a datastore VMFS or NFS dayastore which is accessible to the ESXi host - then follow the instructions here - on how to install forms an image - ISO

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Create the virtual machine with the type of controller SCSI LSI logic SAS with PowerCLi

    Hey guys,.

    IM the difficulty to create a virtual machine with the type of controller SCSI to "LSI Logic SAS". The cmdlet New - VM im struggling to find where to create the type of controller?

    If you create a virtual machine without specifying a disk it will create a 4 GB SCSI type thick (0:0) hard drive 1 with 0 Parrall default BusLogic SCSI controller.

    What im wanting to do is to create a disk hard which is thin Prov. and create SCSI LSI logic SAS controller is set to.

    New-VM -name VMSTORE23 -$vmhost $esxhost MemoryMB- 4096 NumCpu- 2 -NetworkName "Vlan 6 Machine Virtual Network" | Get-NetworkAdapter | Set-NetworkAdapter -Type Vmxnet3 -MacAddress '00:50:56:00:00:21' -confirm:$false

    I have recived of aid by some LucD who helped direct the value of the network card in the New - VM cmdlet as follows. But I'm not able to add a hose for hard disk also like:

    | Get-hard drive | Together-hard drive - Datastore $datastore - slim StorageFormat

    And I have no idea how change the type of SCSI conroller or create it with the correct configuration?

    Any help would be great,

    Thanks in advance


    Greetings, steddyeddie-

    You should be able to use Set - hard drive and SCSI controller Set cmdlets to set the storage format of your hard drive and the SCSI controller type, respectively.  You were close to on the part of game - hard drive .  Try something like:

    ## get the VM object $vmVMSTORE23 = Get-VM VMSTORE23 ## set the harddisk storageformat to thin$vmVMSTORE23 | Get-HardDisk | Set-HardDisk -StorageFormat Thin ## set the SCSI controller type$vmVMSTORE23 | Get-ScsiController | Set-ScsiController -Type VirtualLsiLogicSAS

    It could pack in to your existing order to keep it as a good word, but for readability.


  • Plan for the creation of new virtual machine with 3 TB data drive

    We have an old server, we need to virtualize, and one thing that we need is a lot more storage. We have approximately 3.25 TB of available for this machine (250 GB for the OS and 3 to for the data drives), but I'm going in circles trying to find the best approach for this server. It is not possible to separate the data between several players because of the way the files are indexed. I have created a virtual machine with 2 TB of disk space (for the readers of OS and data) and added 1.25 TB of disk space I want to add on the data reader, but it does not seem possible to add 1.25 TB without destroying the data on the first disk of 2 TB. What is the best approach? Create a single disc for my virtual machine that is 250 GB and then add in two separate disks of 1.5 TB for storage and combine them within Windows?

    Thanks for your suggestions.


    Unfortunately, the maximum size of virtual disk to a virtual computer is 2 TB - 512 bytes. In you case it should create two or three separate virtual disks and combine them (disks RAID 0 or concatenate). Another way (IMHO besser way) is to create several virtual drives and mount using NTFS mount points.

    An example:

    C:\Data is a folder on one of the virtual disks. Create a second virtual disks and create the C:\Data\Data2 folder. Rather than assign a drive letter for the newly created disk, you can mount it in the Database2 folder. This gives you the ability to move the largest files on separate virtual drives without lose you the structure of folders.

    Kind regards


  • Networking between the virtual machine with the operating system Linux in VMWorkstation

    I'm new to Vmware Workstation 7

    I had installed vmware workstation on XP. I created two virtual machines with RHEL 4. I am unable to network between two virtual machines.

    I can't make a ping a machine to other Linux, which is the operating system on both the machine. However, cannot connect ftp or can't see computer networked in computer > network under linux...

    I had used the guest network only on both the machine with the same adapter vmnet8 (considering as switch) and have assigned static IP address at a time

    ORDI1 -

    COMP2 -

    and also have installed vmware tools on both the machine...

    can someone help me on this...

    muzaffar700 wrote:

    I can't make a ping a machine to other Linux, which is the operating system on both the machine. However, unable to

    ftp connection or may not see computer networked in the computer > network under linux...

    Disable all firewalls in your linux guests.

    I had used the guest network only on both the machine with the same adapter vmnet8 (considering as switch) and have assigned static IP address at a time

    ORDI1 -

    COMP2 -

    and also have installed vmware tools on both the machine...

    can someone help me on this...

    Host-Only is VMnet1, you used only NAT. static use of intellectual property and switch to DHCP for now. Make sure that the VMWare DHCP Server service is running. Put network cards in comments to "host-only '.

    Post your host ' ipconfig/all'.


    VCP 3 & 4

    Author @


    = You want to have this ad as a ringtone on your mobile phone? =

    = Send 'Assignment' to 911 for only $999999,99! =

  • Licenses to create a virtual machine is second with more than 8 cores?

    So, we have a machine with 4 physical Sockets with 16 cores on each. We bought 4 licenses of vmware's standard. Now, we saw early on that the number max of hearts that we assign to a virtual machine was 32, which isn't really a big problem, 32 is a lot for our needs. So we have a 32 core virtual machine running and some other smaller, but now when I try to create another virtual machine with more than 8 cores it tells me that I have insufficient licenses.

    Can anyone provide more information on that? If I can create a virtual machine with more than 8 cores, why I can't create a new one?

    He said authorized to 4 physical processors, so it's ok, it's using your Standard licenses.

    During the 60-day trial, you could create more large virtual machines, because the 60 days run with Enterprise Plus features. Now that you are using the standard license, you can create only 8 vCPU VMs.


    You should spend 5.5 ESXi. Your license will also work for 5.5 and you'll be able to create virtual machines with up to 64 vCPUs.


Maybe you are looking for