Remove the SCSI controller change question of VMWare

Hello

I used PowerCLI for create a virtual machine and replace it with instead of buslogic SCSI LSILogic controller. I did it by using the following code:

function updateSCSIController ($vmName, $ctrlName)

{

$vm = get - VM $vmName | Get-View

  1. Get the controller and devices on

$vm. Config.Hardware.Device | where {$_.} DeviceInfo.Label - eq $ctrlName} | % {

$oldCtrl = $_

$ctrlKey = $_. Key

$devs = @)

$_. Device | % {

$devKey = $_

$vm. Config.Hardware.Device | where {$_.} Key - eq $devKey} | % {

$devs += $_

}

}

}

  1. Create the specification for the device changes

$bootDelay = 10000

$spec = new-Object VMware.Vim.VirtualMachineConfigSpec

$spec. BootOptions = New-Object VMware.Vim.VirtualMachineBootOptions

$spec. BootOptions.BootDelay = $bootDelay

  1. Remove the old controller

$old = new-Object VMware.Vim.VirtualDeviceConfigSpec

$old.device = $oldCtrl

$old.operation = 'delete '.

$spec. DeviceChange += $old

  1. Update the devices connected to the controller

$devs | % {

$dev = new-Object VMware.Vim.VirtualDeviceConfigSpec

$dev.device = $_

$dev.device.ControllerKey = - 100

$dev.operation = "Edit."

$spec. DeviceChange += $dev

}

  1. Add the new controller

$new = new-Object VMware.Vim.VirtualDeviceConfigSpec

$new. Device = New-Object VMware.Vim.VirtualLsiLogicController

$new. Device.Key = - 100

$new. Device.ControllerKey = $oldCtrl.ControllerKey

$new. Device.UnitNumber = $oldCtrl.UnitNumber

$new.operation = 'Add '.

$spec. DeviceChange += $new

$vm. ReconfigVM ($spec)

}

However when I try to start the virtual machine Via code, it gives me an error saying that the virtual machine has questions to be decided.

This is the question asked by VMWare:

sg.disk.AdapterMismatch: the disk attached to the node SCSI0:0 has been created for the Buslogic SCSI adapter but SCSI0 Virtual Machine device is a SCSI LSI Logic card.

VMware ESX Server can change the free disc adapter type. Attention of the user, if a guest operating system is installed on the drive, it is perhaps not able to start.

Do you think Vmware ESX Server to change the type of adapter for SCSI0:0 disk

This issue can be removed through PowerCLI?

This is the part of code that fails

updateSCSIController - vmName $name - ctrlName "SCSI controller 0.

Start-VM - $vm VM - confirm: $false

$vm | Get-CDDrive. Game-CDDrive-connected: $true - confirm: $false

I don't know if you can remove the question, but you can respond with the Set-VMQuestion cmdlet.

____________

Blog: LucD notes

Twitter: lucd22

Tags: VMware

Similar Questions

  • Adds the second SCSI controller & change the SCSI ID numbers?

    Hello

    I have a need to add a couple of SCSI drives to my VMware Workstation VM (v10), and these drives need the SCSI ID of 1:x (i.e. who need a second controller).  Could someone give me some advice on the .vmx necessary parameters for this?  I looked at a few posts - which says that I must just add the readers in the UI, then change the SCSI ID in the .vmx... but it does not work.

    Any help is appreciated...

    Cheers, James

    You will need to should not change at all .vmx file to achieve this.

    Once you've added the hard drives on the virtual machine, click the Advanced button in the lower right of the settings of the Virtual Machine window.  The Virtual Device Node labeled popup should allow you to move the virtual hard drives SCSI 1:0, which will give you a second card SCSI.

    --

    Darius

  • Adding a virtual drive on the SCSI controller with sharing fails physical/virtual

    I have added a virtual disk to a SCSI controller with bus sharing physical or virtual, which is put down to the code below. Same code gets successfully if the bus share is 'noSharing '.

    $vmView = Vim::find_entity_view (view_type = > 'VirtualMachine', filter = > {name = > $vms [0]});
    $controllerKey = find_scsi_cntlrkey (vm = > $vmView, controller = > $cntlr);
    my hash % =)
    VM = > $vmView,
    diskMode = > 'persistent. "
    fileName = > $filename,
    controllerKey = > $controllerKey,
    unitNumber = > $target,
    size = > "5242880",.
    backingtype = > "ordinary."
    UUID = > UNDEF,
    deviceName = > UNDEF,
    );
    My $filespec = get_vdiskSpec (%hash);
    print Dumper $filespec;
    My $vdisk = add_virtualdisk (vm = > $vmView, devspec = > $filespec);

    Run the command:

    amrut@2:~/scripts/VMware/apps$ perl RDM_add.pl - vmname vm1 - Server vcenter_server name of [email protected] past Pass@123--op generation add - 2, 2 - controller filename vm_232
    Addition of new LsiLogicSAS vSCSI 2 Controller to "vm1.
    Successfully added
    $VAR1 = bless ({}
    'fileOperation' = > bless ({}
    'val' = > 'create '.
    (}, 'VirtualDeviceConfigSpecFileOperation'),
    'operation' = > bless ({}
    'val' = > 'Add '.
    (}, 'VirtualDeviceConfigSpecOperation'),
    'device' = > ({bless him
    'capacityInKB' = > '5242880',.
    "backup" = > bless ({}
    'Filename' = > ' [datastore1 (4)]/vm1/vm_232.vmdk',)]
    'diskMode' = > 'persistent '.
    (}, "VirtualDiskFlatVer2BackingInfo").
    'unitNumber' = > 2,
    'controllerKey' = > '1002',.
    'key' = >-1
    (}, "VirtualDisk")
    (}, "VirtualDeviceConfigSpec");
    Cannot configure the virtual device.

    amrut@2:~/scripts/VMware/apps$

    In vcenter GUi I get below error:

    Has no power on scsi2:2.
    Cannot add the disk scsi2:2.

    But more successful if sharing of bus is none!

    amrut@uptohell2:~/scripts/VMware/apps$ perl RDM_add.pl - vmname vm1 - Server vcenter_server name of [email protected] past Pass@123--op generation add - 1:2 - filename vm_232 controller
    $VAR1 = bless ({}
    'fileOperation' = > bless ({}
    'val' = > 'create '.
    (}, 'VirtualDeviceConfigSpecFileOperation'),
    'operation' = > bless ({}
    'val' = > 'Add '.
    (}, 'VirtualDeviceConfigSpecOperation'),
    'device' = > ({bless him
    'capacityInKB' = > '5242880',.
    "backup" = > bless ({}
    'Filename' = > ' [datastore1 (4)]/vm1/vm1_232.vmdk',)]
    'diskMode' = > 'persistent '.
    (}, "VirtualDiskFlatVer2BackingInfo").
    'unitNumber' = > 2,
    'controllerKey' = > '1001'.
    'key' = >-1
    (}, "VirtualDisk")
    (}, "VirtualDeviceConfigSpec");
    Created virtual disk.
    amrut@2:~/scripts/VMware/apps$

    Can you get it someone please let me know, we should pass us any other parameter for the addition of SCSI controller with bus sharing physical/virtual disk?

    Thank you

    Celine

    Yes, the stand is adjustable to all types at deployment time.  You need to change your disk with the correct support add operation.

  • My computer removes the programs and changes the way it works without my help or knowledge

    Hello

    I had a problem recently with my computer changes the way it works with some programs. I use my computer to print postage labels, and all of a sudden, now it asks me to save in my documents before I can print them. I did have to take the additional step before.

    And also, I use Adobe Acrobat to print the labels, and this afternoon, I printed a label and then had to leave. When I came back home I need to print another label, but kept getting the error 'invalid registry. When I checked the Adobe Acrobat program was missing from my computer?

    I'm the only person in my family who use this computer. Who removed the program? Can I have a virus? My computer works just fine in general, it's fast and responsive. Is it Spyware or malware? Everyone is faced with this problem?

    Thank you for your help...

    Darryl Hello,

    Thanks for posting your query in Microsoft Community.

    We regret the inconvenience caused to you. We will help you with the question.

    1. Have you checked in programs and features if you can find the Adobe Acrobat program?
    2. Have you installed all the updates of Windows pending?

    For now try the steps and check them off below if it helps:

    Step 1: Install all pending Windows updates and check.

    Step 2: Follow the suggestion given by Cynthia kasibhatla from link given below and check if this can help:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/reader-error-invalid-value-for-registry-when/e76fe781-9457-4f48-93e2-a85b443ef3be

    Let us know the status of the issue. We will be happy to help you further.

    Thank you.

  • be prompted to install the scsi controller during the creation of the new office or after recompose

    Hi, I use the lsi logic scsi Controller for my computer parallel virtual parent.  After you create the pool, choose my parent vm, etc... when I go to connect to the desktop computer I am asked to install the driver for the found new hardware wizard scsi controller.  dekstops has windows xp.  If I use the default controller it doesn't.  Thanks in advance for any ideas.  screenshot is attached.   Cheers.

    Maybe this thread will help you, http://communities.vmware.com/message/1691428 and also this KB, http://kb.vmware.com/kb/1031986.

  • The block, by removing the block, by asking questions of compensation block

    Hello

    The current design of the shape is as below (without changes to the formatting and design)

    (1) has a P - database no block parent heading

    (2) has a child block C - block of data with a single table T

    In essence, the data is stored in a single table

    How to achieve the following

    (1) clear the block (both P and C) If you erase the block P

    (2) by deleting the records to both P and C, if the deletion of the record in P

    (3) by deleting records in C

    (4) ask Parent P (F11 and F11 control) reviews and pulling on the files in C (Ctrl + F11)

    Concerning

    S

    Hello

    Pls use for their feature the following...

    1. you can use WHEN - BUTTON - PRESSED to erase the two Trigger block using Clear_form;

    2 & 3 - oracle database to create relationship master-detail between tables using foreign keys and cascading deletes using the FOREIGN KEY constraint with the ON DELETE CASCADE clause. Oracle/PLSQL: delete foreign keys with cascade

    However, Oracle Forms manage thing delete cascade internally when you define the relationship properties. I recommend the creation of another table master P with the relationship specified in table C.

    U GOLD create a relationship out of shape between the two blocs.

    If not, try to use-DELETE or KEY of VALIDATION Trigger at the level of the form, FOR INSTANCE:

    Note: do not to consider deleting the master, since non-base of data block DELETE is used ONLY in db transaction deleting.

    So you can set their NULL values as

    :P_block.dept_id :=NULL;

    or you can use CLEAR_ITEM;

    CLEAR_ITEM('P_block.dept_id');

    Syntax

    REMOVE the TABLE Table_Name

    WHERE search_condition;

    Example of

    IF: P_block.dept_id is NOT NULL, THEN

    DELETE T

    WHERE t.dept_id =: p_block.dept_id;

    4-to resolve this point

    PLS, set the property default_where of the data block C for example

    dept_id =: p_block.dept_id;

    Therefore, to create a TIME-NEWS-BLOCK-INSTANCE Trigger on C block diagram

    Write the following text

    GO_BLOCK('C');

    EXECUTE_QUERY;

    Amatu Allah.

  • Remove the answers and asking Questions

    Hello

    Can remove us the feature of challenge questions / answers - which is requested at the time to click on the link "forgotten password?"
    Is there a system configuration settings we can do?

    Thank you
    -oidm.

    See finding Def - "Lookup.Webclient.Questions".

    The two 'use default question' and 'Force to address the issue at the beginning upward' to FALSE.

  • Remove the secondary controller and tertiary high availability for each access point

    I want to remove secondary and tertiary sector controller of high availability for each access point. I have more than 900 APs associated with a Version of the WLC 8510 8.0.121.0 software. What is the best/better way to remove secondary and tertiary controller?
    Or I can create a model first. We use version 2.2

    Hello

    Easiest way:

    Yes you can do this by using the first Cisco Infrastructure, you can create a Setup AP Lightweight model to specify the name of the PDC and the IP address and specify an empty value (choose the first empty option in the drop-down list) and 0.0.0.0 for the secondary and tertiary sector controllers.  Then you can apply this model to the AP, and she must remove (virgins all) values for these fields.

    Long way:

    Yes there is no clean way to remove it from the CLI. you need to manually remove each on the AP.

    Concerning

    Remember messages useful rates

  • APEX 4.1 is possible to remove the message "unsaved changes" pagination?

    Hello

    We have developed a tabular presentation to APEX 4.1 that only contains an editable column. Once the user changes the column, it triggers a dynamic Action, updated table data source. The problem is after you change a field any and by clicking on the link of the pagination, we get the alert message following "this form contains unsaved changes. Press 'Ok' to continue without saving the changes.

    Is it possible to get rid of this message? I found a way to translate the message but nothing to remove it. We have also seen the paging calls a JavaScript function called page, would be possible to modify its definition to disable the message somehow?

    Thank you

    Hello

    Apex uses a global array called gTabFormData to store the original values when the page loads and identify those that were changed when the user makes the paging. Thus, a hack that you could use is to call this function right after you have saved the changes in the database:

    function resetFormCachedData() {
        var c = $x_FormItems($x('report_));  // e.g. report_MYSTATICID
        for (var e = 0; e < c.length; e++) {
            if (c[e].name != "X01") {
                gTabFormData[e] = c[e].value
            } else {
                gTabFormData[e] = "0"
            }
        }
    }
    

    I suggest putting this code in a JS library, so if Apex is changed in a later version (for example, by providing a way documented for this), it is easy to change too.

    Luis

  • Why Apple did remove the ability to change fonts and activate the mode night in ePub created in IBA?

    Re: "on the files ePub created with iBooks author - Apple Support"

    I want to IBA allows you to create ePub files that take advantage of all THE features of iBooks. However, in accordance with article above, this is not an option: "you will not be able to change the fonts or view files ePub created with these new models in night mode."

    I use the night mode all the time, and I often want to adjust the size or font style, so I have these options available in ePub files I create. I don't want to lose the ability to use features iBooks group of Notes and cards to study.

    I've tried the iBooks format, but these capabilities are also not there, since iBooks are made to be formatted in a particular way and has not changed a lot. That's why I'm set for the ePub format.

    Is there a way to create ePub IBA files that actually can take advantage of all THE features of iBooks?

    DLM

    Moon d wrote:

    Is there a way to create ePub IBA files that actually can take advantage of all THE features of iBooks?

    N ° inform about new features you want to see through the Apple

    http://www.Apple.com/feedback

    I think that some authors use InDesign to EPUB more elaborate.

  • How to remove the icon of change on interactive report?

    An interactive report I now work on displays the change icon (pencil). A report that I create a while does not.
    I couldn't find where I turned this off icon display. Can anyone help?

    See:

    Report attributes
    Link column - select here exclude the link column

    Jeff

  • the logical volume change question

    Hi all

    I'm a bit rusty...

    On an audio track, I would like to take a little bit of audio in the middle of a track - drag from left to right - pointing out a few bars and when I let go automatic volume benchmarks would start at the end.

    Then, I would just be able to click inside the selection and do increase or decrease the volume for this section.

    I forgot the tools to do this easily

    Can anyone remind me how to do this?

    Hello

    With the automation of volume showing track, use the marquee tool to "slide". Click and drag the volume automation curve to adjust as you describe

    TDC

  • VMware's paravirtualized SCSI controller

    I need to replace the SCSI controller on a couple of Windows 2008R2 machines VMware paravirtualized SCSI controller, when I change and start the server, it displays BSOD blus

    I followed the steps in the link below, but still the same problem.

    http://www.Vladan.fr/changement-from-LsiLogic-paralel-into-pvscsi/

    any help will be much appreciated

    Joseph

    Make sure you have scsi paravirtualized drivers installed on the client, otherwise it won't know how to join his drive.

    They are available in a disk image in the floppies/vmimages/directory on a host computer.

    Also, make sure that you meet the compatibility matrix as in this KB:

    http://KB.VMware.com/kb/1010398

    Guest operating system Data disc Startup disk

    Windows Server 2008 and higher

    ESX 4.0

    ESX 4.0 Update 1

    Windows Server 2003

    ESX 4.0

    ESX 4.0 Update 1

    Red Hat Enterprise Linux (RHEL) 5

    ESX 4.0

    not supported

    RHEL 6 and higher

    ESX 4.0 Update 2

    ESX 4.0 Update 2

    SUSE Linux Enterprise 11 SP1 and higher

    ESX 4.1

    ESX 4.1

    Ubuntu 10.04 and above

    ESX 4.1

    ESX 4.1

    Distributions using Linux 2.6.33 version or later and this includes the driver vmw_pvscsi

    ESX 4.1

    ESX 4.1

  • Addition of RDM but bo SCsi controller is added

    Hello

    I am trying to create a cluster between two virtual machines that are on two servers different esxi. I use SAN VNX 5100. My esxi version is 5.1.

    I am trying to add RDM hard drive but when I completed the steps, it didn't add the SCSi controller.

    Any idea?

    Kind regards

    Talha

    This statement is a useful guide that covers the process for a few common scenarios: http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-50-mscs-guide.pdf

  • Manual addition of SCSI controller

    Hello

    I got in trouble, adding to a SCSI controller. My code looks like this:

    name = "SSCI Controller";
    description = "SSCI Controller";
    address = 0;
    type = 6;
    subType = "lsilogicsas";
    
    CimString cimString = new CimString();
    Map<QName, String> cimAttributes = cimString.getOtherAttributes();
    cimAttributes.put(new QName("http://www.vmware.com/vcloud/v1.5",
    "busSubType", "vcloud"), subType);
    cimAttributes.put(new QName("http://www.vmware.com/vcloud/v1.5",
    "busType", "vcloud"), String.valueOf(type));
    cimString.getOtherAttributes().putAll(cimAttributes);
    CimString setElementName = new CimString();
    setElementName.setValue(name);
    CimString setDescription = new CimString();
    setDescription.setValue(description);
    CimString setInstanceID = new CimString();
    setInstanceID.setValue("1000");
    ResourceType setResourceType = new ResourceType();
    setResourceType.setValue(String.valueOf(type));
    
    CimString setAddress = new CimString();
    setAddress.setValue(String.valueOf(address));
    
    RASDType diskItemType = new RASDType();
    diskItemType.setElementName(setElementName);
    diskItemType.setDescription(setDescription);
    diskItemType.setInstanceID(setInstanceID);
    diskItemType.setResourceType(setResourceType);
    diskItemType.setAddress(setAddress);
    diskItemType.getHostResource().add(cimString);
    

    The XML looks like this:

     <ns6:Item>
            <ns3:Address>0</ns3:Address>
            <ns3:Description>IDE Controller</ns3:Description>
            <ns3:ElementName>IDE Controller 0</ns3:ElementName>
                <ns3:InstanceID>1</ns3:InstanceID>
            <ns3:ResourceType>5</ns3:ResourceType>
        </ns6:Item>
        <ns6:Item>
            <ns3:Address>0</ns3:Address>
                <ns3:Description>SSCI Controller</ns3:Description>
            <ns3:ElementName>SSCI Controller</ns3:ElementName>
            <ns3:HostResource ns6:busSubType="lsilogicsas" ns6:busType="6"/>
            <ns3:InstanceID>1000</ns3:InstanceID>
            <ns3:ResourceType>6</ns3:ResourceType>
        </ns6:Item>
    
    

    Also, I get a success message:

    <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-11-08T21:14:32.401+01:00" operationName="vappUpdateVm" operation="Updated Virtual Machine Test Machine(6c99a693-fcfc-4424-afdb-cf5a9172447b)" expiryTime="2012-02-06T21:14:32.401+01:00" endTime="2011-11-08T21:14:32.635+01:00" name="task" id="urn:vcloud:task:ac59ce2a-fc3f-451e-891d-0a2e1ab54e7c" type="application/vnd.vmware.vcloud.task+xml" href="https://188.138.123.220/api/task/ac59ce2a-fc3f-451e-891d-0a2e1ab54e7c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://172.30.34.220/api/v1.5/schema/master.xsd">
        <Owner type="application/vnd.vmware.vcloud.vm+xml" name="Test Machine" href="https://188.138.123.220/api/vApp/vm-6c99a693-fcfc-4424-afdb-cf5a9172447b"/>
        <User type="application/vnd.vmware.admin.user+xml" name="scriptuser" href="https://188.138.123.220/api/admin/user/8062b4a4-2aa5-4858-af62-b8bee8baa693"/>
        <Organization type="application/vnd.vmware.vcloud.org+xml" name="Demo" href="https://188.138.123.220/api/org/baca2a0b-d2be-4b6a-ad30-9268b9cdee23"/>
    </Task>
    
    

    The problem is take a look in the hardware section that I can't find the SCSI controller...

    Can someone help me?

    Hello

    Adding a type SCSI drive will add the SCSI controller for you.

    I don't think that you can add only a SCSI controller without any disk to it.

    Try to only add a SCSI (buslogic, free, lsilogicsas, VIrtualSCSI) disc that will add a SCSI controller for you.

            any name
           
            any id
            17
       

    Kind regards

    Rajesh Kamal.

Maybe you are looking for