1 2 Previous Next 15 Replies Latest reply: Jul 13, 2011 9:55 AM by Gerardo Bartoccini RSS

I need to create a Virtual Guest Job...

cricci2

I need to create a Virtual Guest Job with the command blcli Virtualization : createVirtualGuestFromPackage but do not know how to modify the corresponding xml file with the proper value for the VirtualGuestDestination in the following section :

 

<VirtualGuestJob>
<JobName>xxxxxx</JobName>
<JobFolderID>2000500</JobFolderID>
<VirtualGuestDestination>HERE-HERE</VirtualGuestDestination>

  • 1. Re: I need to create a Virtual Guest Job...
    Umar Shaikh

    Welcome to the forums!

     

    To get the value for the VirtualGuestDestination field, you can run the following BLCLIs:

     

    1. Virtualization listVirtualEntityManagers
      This BLCLI would list down all the VCs in your environment. Note down either the name / the ID of the server from the output
    2. Either Virtualization listVirtualEntitiesByEntityManagerServerIdAndEntityType
      Or Virtualization listVirtualEntitiesByEntityManagerServerNameAndEntityType (Based on what you noted from the previous CLI)
      This BLCLI would list down all the Entities based on the VC Server and the EntityType that was passed. The possible entity types you can use as the target are one of VMwareCluster, VMwareESXServer or VMwareResourcePool.
      The value for the VirtualGuestDestination field is from the last column from this CLI.

     

    Just for information: To list all the possible entity types, just run the Virtualization listVirtualEntityTypes BLCLI.

  • 2. Re: I need to create a Virtual Guest Job...
    cricci2

    I am still having problems and the error is the following:

    Command execution failed.  org.xml.sax.SAXParseException: Content is not

    allowed in prolog.

     

     

    Here is my file xml:

     

     

     

    Date:

    26/07/2010 13:44

    Objet :

    I need to create a Virtual Guest Job... New

    message on BMC Communities

     

     

     

    Thread: "I need to create a Virtual Guest Job..."

    http://communities.bmc.com/communities/message/156867#156867

    Author: Umar Shaikh

  • 3. Re: I need to create a Virtual Guest Job...
    cricci2

    I'm still having problems and the error is the following:

    Command execution failed. org.xml.sax.SAXParseException: Content is not allowed in prolog.

      

    Here is my file xml:

      

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

    <CreateVGRequest>

    <VirtualGuestPackage>

    <VGPackageID>24</VGPackageID>

    <VGName>Windows-2003-SE-R2-x86-ENU-VMT</VGName>

    <VGNoOfProcessors>1</VGNoOfProcessors>

    <VGMemoryInMB>1024</VGMemoryInMB>

    <VGDiskInfo>

    <Disk>

    <StoragePath>Sata_Datastore_Stratus_LUN137_DMX4</StoragePath>

    <DiskSize>30720</DiskSize>

    <UseExistingdisk>true</UseExistingdisk>

    </Disk>

    </VGDiskInfo>

    <VGNetworkInfo>

    <Network>

    <NetworkPortGroup>1</NetworkPortGroup>

    <NetworkAdaptorType>Client1 Admin</NetworkAdaptorType>

    <ConnectAtPowerOn>true</ConnectAtPowerOn>

    </Network>

    <Network>

    <NetworkPortGroup>2</NetworkPortGroup>

    <NetworkAdaptorType>Client1 Admin</NetworkAdaptorType>

    <ConnectAtPowerOn>true</ConnectAtPowerOn>

    </Network>

    </VGNetworkInfo>

    </VirtualGuestPackage>

    <VirtualGuestJob>

    <JobName>VGJ-Win23-Test04</JobName>

    <JobFolderID>2000500</JobFolderID>

    <VirtualGuestDestination>11 VMwareCluster domain-c3692</VirtualGuestDestination>

    <ExecuteNow>false</ExecuteNow>

    </VirtualGuestJob>

    <LifeCycle>

    <noLifeCycle>false</noLifeCycle>

    <ServiceRquestID>SRID1</ServiceRquestID>

    <ChangeID>CID1</ChangeID>

    <TaskID>TID1</TaskID>

    <Owner>O1</Owner>

    <ExpiryDate>2010-07-30 04:54:44</ExpiryDate>

    </LifeCycle>

    </CreateVGRequest>

      

    output for tte following commands:

     

    blcli -v testing01 -r BLAdmins Virtualization listVirtualEntityManagers

     

  • 4. Re: I need to create a Virtual Guest Job...
    Umar Shaikh

    How are you firing the BLCLI for creating the job? You need to give complete NSH path to the file.

     

    We've seen that error occurring when the agent on which the file is residing is either not licensed or cannot be contacted correctly.

     

    Could you try again making sure of these things? If it still does not work, paste the CLI you are running and the agentinfo output of the agent on which the XML file resides

  • 5. Re: I need to create a Virtual Guest Job...
    cricci2

    The command line excutes but I am have the following problem now:

     

    I want to create a Virtual Guest Job with unique values for the propeties IP Address, Subnet Mask, Dns Server, Host Name, everytime I create a new VGJ.

    I'm currently using the blcli command Virtualization createVirtualGuestFromPackage :

    blcli -v testing01 -r BLAdmins Virtualization createVirtualGuestFromPackage "//Server/d/Blcli/DistributeVGPviaCluster2.xml"

     

    The jobs are created but the values for IP Address, Subnet Mask, Dns Server never really change. Is it perhaps because the xml file currently does not have placeholders for these properties to replace each we want too create the job.

    Here is my xml file:

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <CreateVGRequest>
    <VirtualGuestPackage>
    <VGPackageID>51</VGPackageID>
    <VGName>Test16</VGName>
    <VGNoOfProcessors>1</VGNoOfProcessors>
    <VGMemoryInMB>1024</VGMemoryInMB>
    <VGDiskInfo>
    <Disk>
    <StoragePath>Sata_Datastore_Stratus_XXXX_DMX4</StoragePath>
    <DiskSize>30720</DiskSize>
    <UseExistingdisk>true</UseExistingdisk>
    </Disk>
    </VGDiskInfo>
    <VGNetworkInfo>
    <Network>
    <NetworkPortGroup>1</NetworkPortGroup>
    <NetworkAdaptorType>Client1 Admin</NetworkAdaptorType>
    <ConnectAtPowerOn>true</ConnectAtPowerOn>
    </Network>
    <Network>
    <NetworkPortGroup>2</NetworkPortGroup>
    <NetworkAdaptorType>Client1 Admin</NetworkAdaptorType>
    <ConnectAtPowerOn>true</ConnectAtPowerOn>
    </Network>
    </VGNetworkInfo>
    </VirtualGuestPackage>
    <VirtualGuestJob>
    <JobName>Test16</JobName>
    <JobFolderID>2000500</JobFolderID>
    <VirtualGuestDestination>11 BMC_VMware_Cluster domain-c3692</VirtualGuestDestination>
    <ExecuteNow>false</ExecuteNow>
    </VirtualGuestJob>
    <LifeCycle>
    <noLifeCycle>false</noLifeCycle>
    <ServiceRquestID>SRID1</ServiceRquestID>
    <ChangeID>CID1</ChangeID>
    <TaskID>TID1</TaskID>
    <Owner>O1</Owner>
    <ExpiryDate>2009-07-27 04:54:44</ExpiryDate>
    </LifeCycle>
    </CreateVGRequest>

  • 6. Re: I need to create a Virtual Guest Job...
    Umar Shaikh
    I think what you are looking out for is the Template based Virtual Guest Job. Look at the Custom Config and Guest Networking sections from below.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <CreateVGRequest>
        <VirtualGuestPackage>
    <VGPackageID>30</VGPackageID>
            <VGName>static-ip-323</VGName>
    </VirtualGuestPackage>
        <VirtualGuestJob>
    <JobName>vgj-static-ip-323</JobName>
    <JobFolderID>2000020</JobFolderID>
    <VirtualGuestDestination>1 VMwareESXServer host-9730</VirtualGuestDestination>                              
    <ExecuteNow>true</ExecuteNow>
    </VirtualGuestJob>
        <LifeCycle>
    <noLifeCycle>false</noLifeCycle>
    <ServiceRquestID>SRID1</ServiceRquestID>
    <ChangeID>CID1</ChangeID>
    <TaskID>TID1</TaskID>
    <Owner>O1</Owner>
    <ExpiryDate>2009-07-27 04:54:44</ExpiryDate>
        </LifeCycle>
    <CustomConfig>             
    <vgComputerName>pun-static-1</vgComputerName>
    <vgWorkGroup>WORKGROUP</vgWorkGroup>
    <vgPassword>fr3sca</vgPassword>
    <vgUserName>BLAdmin</vgUserName>
    <vgOrganization>BladeLogic Inc.</vgOrganization>
    <osLicense>PCKWV-3XYM9-GJYGD-2FV62-BJGBD</osLicense>
    <licensePerServer>true</licensePerServer>
    <numConcurrentConn>5</numConcurrentConn>
    </CustomConfig>           
    <GuestNetworkAdapter>
    <ipAdress>10.128.132.240</ipAdress>
    <subnetMask>255.255.252.0</subnetMask>
    <defaultGateway>10.128.135.253</defaultGateway>
    <priDnsServer>10.128.135.253</priDnsServer>
    <secDnsServer>10.128.135.254</secDnsServer>
    </GuestNetworkAdapter>         
    </CreateVGRequest>
  • 7. Re: I need to create a Virtual Guest Job...
    cricci2

    Thank You for this info. It's really too bad this information is not in the BLcli default html Help.

    Because it would be really helpful, for example, at the moment I'm looking for how to configure the IP addresse on a second LAN card.

    Also, I'm wondering how to modify the Licenses configuration for the server. I want to the configuration Concurrent Connections and not Per Server:

    When I use the following configuration in the xml, it does no work properly :

     

    <licensePerServer>false</licensePerServer>
    <numConcurrentConn>0</numConcurrentConn>
  • 8. Re: I need to create a Virtual Guest Job...
    Umar Shaikh

    As of now we have a limitation that we can only modify one network adapter. So, the second one unfortunately would not be possible.

     

    About the license per server, etc. values, we have a defect open for that which would be resolved in the next release.

  • 9. Re: I need to create a Virtual Guest Job...
    cricci2

    About the license per server, etc. values, we have a defect open for that which would be resolved in the next release.

     

    Does the version SP5 of BMC Bladelogic 8.0.0 support this problem.

     

     

     

  • 10. Re: I need to create a Virtual Guest Job...
    Akbar Aziz

    We just upgraded to SP5 Patch 1 for 8.0 and are still seeing this issue.

  • 11. Re: I need to create a Virtual Guest Job...
    Umar Shaikh

    Are you talking about the license per server and other related options? That has gone into the next major release (still to be released) and not the service packs

  • 12. Re: I need to create a Virtual Guest Job...
    Akbar Aziz

    Yes, the license per server and other options. We are running into this scenario in trying to build our CLM solution. I was able to perform a bare-metal vm provisioning job where it did not ask me to input the information for license, but soon as we use a vg template it stops here when rebooting during the server build.

     

    From: "forums@developer.bmc.com<mailto:forums@developer.bmc.com>" <forums@developer.bmc.com<mailto:forums@developer.bmc.com>>

    Reply-To: "forums@developer.bmc.com<mailto:forums@developer.bmc.com>" <forums@developer.bmc.com<mailto:forums@developer.bmc.com>>

    Date: Thu, 7 Oct 2010 23:08:07 -0500

    To: Akbar Aziz <akbar_aziz@bmc.com<mailto:akbar_aziz@bmc.com>>

    Subject: Re: I need to create a Virtual Guest Job... New message on BMC Communities

     

    BMC Communities<http://communities.bmc.com/communities/index.jspa>

     

    Re: I need to create a Virtual Guest Job...

    created by Umar Shaikh<http://communities.bmc.com/communities/people/ushaikh> in BMC BladeLogic Scripting - View the full discussion<http://communities.bmc.com/communities/message/164868#164868

  • 13. I need to create a Virtual Guest Job...
    Gerardo Bartoccini

    Umar, your XML example will set vgWorkGroup for the virtual machine.

    I have tried and replaced this with vgDomain, but here's what I got:

     

    Clipboard03.jpg

    So the domain field is actually filled, but not enabled.

    How can I solve this?

     

    Thanks

  • 14. I need to create a Virtual Guest Job...
    Gerardo Bartoccini

    I figured out a list of the available fields from the following file:

     

    <BL_INSTALL_DIR>/br/xml/cli/VGPackageCustomConfig-Generated.xml

     

    Here's the list:

     

    Name

    VgDomainUserName

    CustomTimezone

    TimezoneId

    IsAutoGenerateName

    VgDomain

    VgDomainPassword

    MouseId

    LicensePerServer

    VgOrganization

    VgPassword

    IsinDomain

    VgUserName

    VgWorkGroup

    OsLicense

    VgComputerName

    NumConcurrentConn

    Description

    VgCreateAccountInDomain

    KeyboardId

    VirtualGuestPackageId

    TimezoneAsString

     

    I am trying to use this to customize my VGJ xml.

     

    In order to enable domain not only vgDomain must be used, but also IsInDomain has to be set to true.

     

    Case sensitivity may be an issue.

    I discover that

     

    VgCreateAccountInDomain

    VgDomainUserName

    VgDomainPassword

    VgDomain

     

    have to be turned to

     

    vgCreateAccountInDomain

    vgDomainUserName

    vgDomainPassword

    vgDomain

     

     

    HTH

1 2 Previous Next