3 Replies Latest reply on Sep 10, 2012 5:08 AM by Umar Shaikh

    Building VGJ's with multiple network I/F's

      Hi All,

       

      I'm working on a script to generate multiple VGJ's for a vCenter rollout.  I've seen the discussion elsewhere in the forum regarding the XML file that needs to be created, but I can't find any reference to additional network interfaces.  Can BladeLogic even handle this?

       

      Thanks,

      -John.

        • 1. Re: Building VGJ's with multiple network I/F's

          You want to add NICs to the VMs that you're creating? This can be done via BladeLogic.

          You need to copy the VirtualNetwork tag and it's children and then replace / remove the appropriate tags depending on what you want to deploy.

           

          So for instance, if my original VGP had the VirtualNetworks tag looking like this:

           

                         <VirtualNetworks>

                          <VirtualNetwork>

                              <NetworkName>VM Network</NetworkName>

                              <NetworkExtendedProperties>

                                  <PlatformSpecificProperty>

                                      <PropertyName>vlanID</PropertyName>

                                      <PropertyValue>3</PropertyValue>

                                  </PlatformSpecificProperty>

                              </NetworkExtendedProperties>

                              <GuestNetworkConfiguration>

                                  <IPAddress>192.168.5.6</IPAddress>

                                  <SubnetMask>255.255.255.0</SubnetMask>

                                  <DefaultGateway>192.168.5.1</DefaultGateway>

                                  <PrimaryDNS>192.168.5.1</PrimaryDNS>

                                  <SecondaryDNS>192.168.5.2</SecondaryDNS>

                              </GuestNetworkConfiguration>

                          </VirtualNetwork>

                      </VirtualNetworks>

           

           

          I could make it add one more network by adding an extra VirtualNetwork:

           

                                   <VirtualNetworks>

                          <VirtualNetwork>

                              <NetworkName>VM Network</NetworkName>

                              <NetworkExtendedProperties>

                                  <PlatformSpecificProperty>

                                      <PropertyName>vlanID</PropertyName>

                                      <PropertyValue>3</PropertyValue>

                                  </PlatformSpecificProperty>

                              </NetworkExtendedProperties>

                              <GuestNetworkConfiguration>

                                  <IPAddress>192.168.5.6</IPAddress>

                                  <SubnetMask>255.255.255.0</SubnetMask>

                                  <DefaultGateway>192.168.5.1</DefaultGateway>

                                  <PrimaryDNS>192.168.5.1</PrimaryDNS>

                                  <SecondaryDNS>192.168.5.2</SecondaryDNS>

                              </GuestNetworkConfiguration>

                          </VirtualNetwork>

                          <VirtualNetwork>

                              <NetworkName>VM Network 2</NetworkName>

                              <NetworkExtendedProperties>

                                  <PlatformSpecificProperty>

                                      <PropertyName>vlanID</PropertyName>

                                      <PropertyValue></PropertyValue>

                                  </PlatformSpecificProperty>

                              </NetworkExtendedProperties>

                          </VirtualNetwork>

                      </VirtualNetworks>

           

          That should do it.

           

          Which version of BladeLogic are you working with?

          1 of 1 people found this helpful
          • 2. Re: Building VGJ's with multiple network I/F's

            Many thanks!  I'm using BL8.2 SP2 and was basing my script on a "quick and dirty" sample that I found in the partner section of Confluence.  However, even the BLCLI help fails to talk about whether it can deal with multiple sections within the XML.

             

            I'll need to do some work now to tweak my script, but at least I've got something to work with.

             

            Cheers,

            -John.

            • 3. Re: Building VGJ's with multiple network I/F's

              Just FYI... You can add Disks too in the same way like was mentioned for Networks.