vmreconfig.pl add a CD/DVD device will fail if the virtual machine created with vmcreate.pl

I am trying to add a cdrom to my VM I created with the vmcreate.pl.

When I use the script vmreconfig.pl to create the cdrom I get the following error...

Cannot use a value that is not defined as a reference to a matrix to/usr/lib/vmware-vcli/apps/vm /... AppUtil/VMUtil.pm line 898.

OK so I have create a cdrom in vSphere and try again manually...

Addition of the cd 'cd '...
Virtual machine 'vmname4' is reconfigured successfully.

OK, so I think that my VM I created with the vmcreate.pl missing the ide0: 0 or something...

Any suggestions on how I can do this?

I'm doing the following...

1. create the virtual machine by using vmcreate.pl.

2. Add the CDrom to the virtual machine using vmreconfig.pl.

Thanks in advance.

Just watched this.

The vmreconfig.pl script does not handle the case of a device not defined in the VirtualIDEController object array.

Look like the real device table is not defined until an IDE device is actually connected (or when a new IDE device is added).  I'm not 100% sure of what generates the actual peripheral table off the coast of the VirtualIDEController, but the case of a table of undefined device should be handled in the script to reconfigure.

I can see the two solutions here, first write a custom script that adds the CDROM and manages this one-off case.  Then, modify the vmreconfig.pl script to handle this particular case of a painting of the disconnected device.

In VMUtil.pm, you will find line number 929:

My = $unitNumber $# {$controller-> device} + 1;

This is to change:

My = $unitNumber (set $controller-> device)? $# {$controller-> device} + 1:0;

There may be other cases in the VMUtil.pm module that needs to be updated as well.  For this reason, it may be better to just write your own custom tool.  However, the simple correction above may let you go ahead with your project in the short term.

Tags: VMware

Similar Questions

  • Could not power on VM: no space is available on the device: cannot power on the virtual machine.

    VMware esx ei, 3.5.0 123629

    Physical memory: 64 GB

    Hard drive: 1.63 TB

    7 virtual machines. 5 of them are configured with 4 GB memory and 2 of them with 2 GB of memory. I am able to power on 3 virtual machines with 4 GB of memory.

    When I try to turn on 4th VM with 2 GB of memory, I get this error message "could not power on VM: no space is available on the device: cannot power on VM.»

    I would like to know if this is the limitation of the ESX Server? How should I size the memory for VMS if I want to run every 7 virtual machines to the

    Moreover, given that I have 64 GB of physical memory. Is there documentation that provides a report of the maximum allowed memory configurable

    compared to the virtual memory?

    Thank you

    Ganesh.

    Ganesh,

    Memory reservations are defined based on VM by VM.

    You can allocate more memory to the virtual machines you have in your host (it's not really a good idea to go crazy with the overcommitment of memory, but some level of excessive pressure is used in general).  Memory applied to your VM resources are shares, bookings and VMkernel Swap limits.

    Just to illustrate:

    You allocate 8 GB memory to a virtual computer.  If you take all the parameters by default, ESX will allot a 8 GB VMkernel Swap file in the base directory of your VM (it will have the extension ".vswp") this VMkernel Swap file is a safety net.  Your virtual machine, at this stage, can consume up to 8 GB of memory If physics is available from the host.  If the memory of your host is overcommitted, some of the available memory 8 GB could be allocated on 8 GB VMkernel Swap file.

    If you set a reserve of memory - 2 GB - this means that the vmkernel will still award the first 2 GB of memory used by the virtual machine to the physical memory.  This is not means that the 2 GB of memory reserved is carved off the coast and completely dedicated to the virtual machine.  This means that the vmkernel offers up to 2 GB of RAM to the VM when and if she needs to use it.  It is a guarantee that the memory will be available upon request.  Because of this guarantee of the VMkernel, VMkernel swap file only has to make sure that the 6 GB memory is satisfied (4 GB total less the 2 GB reserved), so the VMkernel Swap file is only 6 GB in size.

    Actions are a mechanism for prioritization and limits are a cap on physical memory ever allocated to the VM.

    You can set up any number of memory for the virtual machines that you want - frankly, overcommitment of memory for ESX is a very good thing, but you must be vigilant about watching your systems if approve you.  If you have 64 GB of RAM, and you only configure your virtual machines to use total 32G, then you lose 32 GB of RAM.  If you allocate, say, 96 GB of RAM (total) to your virtual machines, then you look at a 50% overcommitment.  What to watch in overcommitting memory is application performance (and more importantly - perception of the user of this performance) and also the memory ballooning and VMkernel Swapping activity.  Those who can both will be in graphics performance in VirtualCenter.  I would recommend reading the Guide to management resources for more details.

    Hope that provides an overview.

    Thank you

    -jk

  • CD/DVD drive not recognized inside the virtual machine

    No matter what I do, I can't get my VM (XP) to recognize the CD/DVD drive. I am running version 2.0.6 of merger and under Mac OS X (10.5.8) on a MacBook Pro. I did a right click on the CD icon in the lower right corner of the computer virtual window, then select 'connect' CD/DVD - I see while the disc turns black (which indicates it's supposed to be connected). I launch Windows Explorer in my virtual machine, but I do not see the CD/DVD drive listed anywhere! Help, please. I have the VM settings to connect to the physical CD/DVD (DVD-R MATSHITA UJ-875) drive. Thanks in advance.

    Take a look at: your CD-ROM drive or DVD drive is missing or is not recognized by Windows or other programs

  • U4 Will ESXi 3.5 see a virtual machine created with u3

    I have added a second hard drive for my newly built u4 ESXi 3.5 installation. The player has virtual machines created in u3. U4 sees the datastore2 drive and the files inside. Still don't recognize them as virtual computer. How to see the virtual machine on the second HD u4?

    Todd L.

    the page you posted contains all relevant information of the Virtual Machine.  In addition, all files are 0.00 KB in size.

    I don't know what to tell you on this one... You may be out of luck.

  • Students cannot "connect/disconnect the virtual machine's CD/DVD devices.

    I will start with this context (and apologies for the wall o ' text): I'm a newbie.  I took the course VMware local community college offers [VMware ESXI Server Enterprise (CIS197)], but I've not yet certified. And I don't have a real experience, except what I have taught myself so far.

    I recently accepted a position of learning associated with the College (think: glorified lab tech). I was tasked to work with stuff from VMware in the laboratory (among other things such as Cisco and Juniper equipment). There is no pass-down information like the previous left the position four months ago.

    We have a single host running ESXi 348481 4.1.0. "We have vCenter Server (5.5.0, 1312298), running on Windows Server (2008 R2, Enterprise Edition).  Access host and vCenter through two different IP, addresses using the vSphere client (either 5.5 or 4.1, using a single application - depends to know if I connect to the host or vCenter).

    At that time, the host is using local storage only (we have plans to change this, but it will take time).  The host is not a production on its own server, because it does not have a school systems.  He does, however, run a number of virtual machines in the lab, students use (Linux, Microsoft, Web design, etc.).  So, right now, I can't take it down.

    I was tasked to create a number of virtual machines that students can use to make the basic labs of Microsoft Windows 7.  So far, I have:
    -Created users, one per student, on the host.
    -Creating VMs, deploy one per student, I have a gold model vcenter.
    -Creation of roles to limit the access of students to just their VM attributed, which they access via client vSphere.
    -Created a Windows Server 2008 R2 domain controller that is also a DHCP server.
    -Created a virtual network, which is accessible only by the Windows 7 virtual machines and is not visible outside the vSphere environment (if I said this right - he does not see the Internet or school network).

    So far, it's all good.

    However, I need to be able to allow students the ability to edit the ISO file on which their VM points in order to complete some laboratories. I guess they would use the button "connect/disconnect the virtual machine's CD/DVD devices" on the taskbar (or console window). It does not work.
    I searched a lot and found that others have had the same problem.  However, all of the solutions I've tried so far have failed.  When they click 'Connect to ISO image on the data... store. "they get an error message means nothing to me,"an internal error has occurred in the vSphere Client. Details: Object Reference not set to an instance of an object. Contact VMware support if necessary.
    The role that I use for students has these settings:
    -Data store > Browse the data store
    -Virtual Machine > Configuration > change the settings of the device
    -Virtual Machine > Configuration > settings
    -A bouquet under the virtual machine > Configuration >
    -Configure CD media
    -Console interaction
    -Connection of the device
    -On
    -Power off
    -(and more, which I don't believe are important to the question)
    -State > create the snapshot
    -State > go back to the snapshot

    I tried "Virtual Machine > Configuration > add existing disk", "Virtual Machine > Configuration > add new disk" and "Virtual Machine > Configuration > add or remove an instrument" with no luck.

    Either by the way, the root account can do all these things, but no other account can - not even a game as an administrator account.

    I've seen mention I have apply the role in the data store.  It is perhaps part of the problem. I can't see the data store when I am connected to the host (wellll, I can, if I click on the host name, then on the Summary tab - but roles do not apply at this stage).  I see is 'Inventory' (which has virtual machines and Pools of resources), 'Rôles' and 'log files '.

    I can see the data store when logged in vCenter. Roles of students, however, are defined on the host computer. If I clone the role of users in vCenter and change this role cloned to have "permissions" that those who are on the host computer and then apply it to the data store, it still does not work.

    So, after all this (which I hope I've included all the necessary information), what can I do to allow the students to change ISO to which they are connected?

    Of course, if I left something, or if someone has a question, please ask.  I want to get this resolved as soon as I can.

    It turns out that I finally found the solution to the problem.

    What 'fixed', it is sufficient to vSphere Web Client to vCenter, which then allowed us to use Single Sign-On (SSO).  This, in turn, allowed us to define users and roles in vCenter (rather than having set them up directly on the host computer) which have then been applied to the VMS of students and also to the data store.

    Now, they can (de-) connect their ISOs at will.

    I find it interesting that vSphere Client (application) shows the users (and the things that they have access to), but it won't let you set of users.

  • create dvd Windows will not import the mp4, how to get around it, someone knows?

    create dvd Windows will not import the mp4, how to get around it, someone knows?

    It must convert your mp4 to WMV format video, and then add the wmv in Windows DVD Maker.

    There are other formats supported by Windows, but I chose WMV format because it is the most reliable and foolproof format for Windows.

    You can google for a free video converter. No need to buy one, unless you are a 'huge' in the making of films and others.

    I use Prism video converter. It's free.

    I'm not fan of movie maker. Prism is what I need it to do.

    http://Prism-video-converter.en.softonic.com/

  • Unable to add the virtual machine network services

    Hello:

    I already read that warning Virtual PC 2007 is not compatible with win 7-64.
    However, I read that it is "unofficially" possible launch.
    OK, I installed it and it worked except networking.
    Basically, I need to install the Virtual Machine Network Services.
    I right click on my network card-> properties-> install-> services-> virtual machine network services (VPC2007 folder: where I can see VMNetSrv.inf)
    Then says Windows: it is impossible to add the requested feature. The specified service has been marked for deletion.

    The problem is that I get this error even on WinXP SP3, so I think that there is something else wrong.

    And of course, Virtual PC 2007 available networks are only: no connection, Local, NAT.  (Missing my physical adapter)

    Thank you!!!

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    Hope this information is useful.

  • Unable to add the virtual machine to inventory

    Unable to add the virtual machine to inventory

    Hi assane, is vmware-cmd same available on ESXi 5.0 and later versions?

    To the OP:

    If you use 5.0 or later ESXi, vmware-cmd will not work. Alternatively, you can use:

    Vim - cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx

    That said, it could be several reasons of failure regarding the registration of the VM. Can put you up a screenshot of the error / symptom you see when it breaks down?

  • Devices 6210 USB in a virtual machine using

    Hello

    I have a NI 6210 usb device which I want to use in a virtual machine running in Sun's VirtualBox.

    The host operating system is Vista, the operating system in the virtual XP machine.

    It seems as if between the two OS USB device sharing does not work correctly.

    I installed the drivers fpr the 6210 in both the host and the guest operating system.

    The device is correctly detected in the host operating system.

    What I want to do is use the usb device in the virtual machine only, there no need to be available in the host operating system.

    But when I run the virtual machine, it seems as if the usb toggle device between the host and OS invited frequently, i.e. in a second, it appears in the host operating system, in the next second it appears in the guest OS. Is there a way to "turn off" the device usb in the OS, host so that it can be used exclusively by the guest operating system?

    I also tried to use Windows7 as the host operating system but with the same result as described above.

    Thank you.

    Christian

    Hi Christian,

    Can you tell me which version of the DAQmx driver you use? I am aware of a case where he helps update version 8.9 the DAQmx. If you have an older version, please upgrade. I hope that you have added a filter to the VirtuaBox mentioned such in support USB in VirtualBox help file section 3.7.9.

    Concerning

    TomBaum

  • When Microsoft will fix the problem they created with Skype.

    It's been more than 24 hours now that Skype has worked on my pc. When Microsoft will have their sh * t together and rectify the problem, they created with this program. Now it becomes ridiculous and smells of incompetence!

    Hello

    Be sure to contact the Skype Support like this might be a known issue and they might have the solution.
    There is also information and on the Skype Forums.

    There is an alert to update Skype system on the Skype homepage
    http://www.Skype.com/intl/en-us/home?intcmp=Alogo

    Skype - Support
    https://support.Skype.com/en-us/

    Skype - Forums
    http://Forum.Skype.com/

    It's the latest Skype Heartbeat information in date 27/05/2011:

    Skype Heartbeat - [MAJ] problems connecting to Skype and calls for a small number of users
    http://heartbeat.Skype.com/2011/05/problems_signing_into_skype_an.html

    I hope this helps.

  • Will the virtual machines in the space are automatically deleted when the protected group are removed

    Hi friends,

    Will the virtual machines in the space are automatically deleted when the protected group are removed?

    Thank you.

    Hello

    When you choose to delete the Protection Group, first virtual machines are unprotected and placeholders are deleted.

    Michael.

  • Not able to add the snapshot file to the virtual machine

    We have Win 2003 virtual machine running on ESXi 4.0.0 261974. The virtual machine has two vmdk files. We had taken the snapshot a few days back and today by mistake, we have removed one of the vmdk (DB - srv - 000001.vmdk - snapshot file). Now, we are not able to add the snapshot file to the virtual machine. When tried to add the existing vmdk, it displays only the source disk (DB - srv.vmdk). Please, help us to solve this problem.

    The GUI allows only adding the base vmdk. To add the Flash disk, you must manually change the vmx file. Registrations for the formerly removed virtual disk could still exist in the vmx file with... .present = "FALSE". After changing the vmx file you must reload the configuration. To do this, remove the VM of the inventory and add it back again (right-click on the vmx file).

    André

  • Physical disk how can I add in the Virtual Machine?

    I am trying to set up a network of storage, but I discovered it is there is a limitation for the addition of physical hard disks in the virtual machine.

    I have 1 virtual hard disk for the operating system (SCSI), an invited so I try to add more than 4 disks, but it should not add more than 3. They showed that (IIRC).

    I try to add 4 x 1 TB as physical hard disk in virtual machine hard disks, but it says that I must remove one to add.

    1. in the settings of the Virtual Machine, is there a difference between (SCSI) (IDE) and why are the physical disks (IDE)?

    2. What is the limitation of total hard drives under the VM settings, four?

    Johwwy

    physical disks can be detected such as IDE or SCSI - depends on the drivers used by the host

    SATA in ide-compat mode is used as IDE

    SATA AHCI mode is detected as SCSI

    It is possible to rewrite the descriptions after their creation.

    It is a little advanced - see my notes

    http://sanbarrow.com/VMDK-basics.html#changeadapter

    for a start, it may be necessary to also change the geometry... ask first so uncertain.

    I think the limit of physical disks that can be attached to a virtual machine is 64 = 4 x 15 - scsi and IDE 4-disc drives

    _________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • Move the virtual machines to new storage device

    I recently added a storage IBM DS3200 SAS device to my VMware ESX 3.5 server.  I am running 6 VMs locally on the server and I would like to move the virtual machines to the new storage device.  I have formatted disks and the ESX Server sees.  What is the best way to move the virtual machines that currently reside locally on the external storage device?

    Thanking you in advance,

    Al

    I guess you could also try using converter

  • My DVD device has "disappeared" from the COMPUTER screen page and is unusable/unrecognisable. Just gone.

    I am running Vista.  My DVD drive is an Optiarc DVD +-RW AD - 5560 a ATA DEVICE.  This has happened in the past, I think that as a direct result of the execution of "update".  I am not very computer but I think it has something to do with the filters.  Dell has fixed this for me several times, but he continues to to and I would like to know the procedure to fix myself (off warranty and Dell charges a lot$ $$).  Yet once, when I click on COMPUTER, this device is simply not there.

    Hello

    Please make all below even if you have done some before as it is often the set of operations which solves
    the question.

    Try this - Panel - Device Manager - CD/DVD - double-click on the device - driver tab - click
    Update the drivers (this will probably do nothing) - then RIGHT click the drive - UNINSTALL - REBOOT
    This will refresh the default driver stack. Even if the reader does not appear to continue below.

    Then, work your way through these - don't forget the drive might be bad, could be a loose cable or
    slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for

  • How long does normally take to access the screen with update or restore?

    How long normally takes to get to the restore or update the window when the need to enter an Ipad handicapped?

  • HP Pavilion dv6 Notebook PC: HP Pavilion Dv6 Graphics Card Upgrade help

    Hello I wanted to update GFX card my PC for a long time and comes to learn that it IS indeed possible to upgrade, but if the map is too powerful I have to upgrade everything else as well. I have never tried upgrading a PC before, but my dv6 has a GeF

  • HP Omni 10 Webcam does not

    Hello I have a HP Omni 10 with Windows 8.1.  Recently, I discovered that my webcam does not work.  Whenever I press the camera application on the start menu, it gives me the message "to start, connect a camera."  I read a few solutions to go to Devic

  • Opaque office

    Hello I have a Pavilion dm4 which never shows an entire page when a web browser is launched. When the browser is open, I can see an opaque view of the desktop in the upper part of the screen. It makes no difference if I click to display full page. Th

  • Difficult question - upgrade of the motherboard ASUS P5LP processors - THE

    I have a HP desktop with the motherboard ASUS P5LP - THE. I would like to ask a series of Core 2 Duo E7500 processor in this computer, however the features HP say max supported is a 6xxx series. The E7500 will work with this motherboard? E6xxx proces