10 Replies Latest reply on Aug 16, 2010 3:29 AM by Jogarem

    Build ok but then export problem. systemCmdWaitTime has no effect..

    Jogarem Enthusiast

      Hello together,

       

      when I build a VM sometimes (and now very often) a build runs fine on the provisioning system but than can not be exported from the provisioning system to Studio..

       

      Studio: v2.1

      Provisioning system: ESXi 4.0

      Build-Template: based on "/opt/vmware/etc/build/templates/ubuntu/08/044/build_profile.xml"

       

      debug.log error:

      0/08/2010 16:18:40 [info] Installation finished.
      10/08/2010 16:18:40 [info] Checking for post-OS installation error ...
      10/08/2010 16:19:16 [info] Transporting VM from provisioning host to Studio; this may take a few minutes...
      10/08/2010 16:20:14 [warn] Failed to see password prompt for: </opt/vmware/share/ovftool/ovftool '--name=1.1.1.1_myVM-v2_.79' '--targetType=vmx' '--diskMode=twoGbMaxExtentSparse' 'vi://usernam@ESX-hostname:443/1.1.1.1_myVM-v2_.79/' '/opt/vmware/www/build/myVM-v2_.79/va'>.
      10/08/2010 16:20:14 [info] Try increasing vadk:systemCmdWaitTime (currently set to <30> secs) in the profile.
      10/08/2010 16:20:32 [warn] VM transporting failed! Error:
      10/08/2010 16:20:32 [warn] 
      10/08/2010 16:20:32 [error] Encountered a fatal build error!
      

       

      The problem is that I have increased the vadk:systemCmdWaitTime in my profile (/opt/vmware/var/lib/build/profiles/myVM-v2.xml) to 60 seconds

      but the error message is always the same. Obviously the build process ignores my setting.. :o((

       

      When I execute the above command then first time it takes a long while until I can see the prompt. From the second try it goes

      fast (under 5 seconds) until the PW prompt is shown.

       

      *Question to fix that the right way:*

       

      The ESX server have a bad response time but why? The ESX server do nothing else than provisioning and I cannot

      see any problems in the ESX logs..

       

       

      *Question how to hotfix that (workaround):*

       

      What is to do to set the systemCmdWaitTime really?

       

       

      Any help for the one or other question suggested!

       

      Thanks

      Thomas

        • 1. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
          chorgeas Hot Shot

          Can you please upload your build profile? Please change/remove password and confidential data from build profile.

           

          Path for build profile in Studio = /opt/vmware/var/lib/build/profiles/

          • 2. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
            Jogarem Enthusiast

            Hello chorgeas,

             

            I don't know what would happen when you would left this forum ;o))

             

            here comes the profile:

             

            <?xml version="1.0" encoding="utf-8"?>
            <ovf:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vadk="http://www.vmware.com/schema/vadk" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 /opt/vmware/etc/build/schemas/vadk.xsd" ovf:version="0.7.0" vadk:version="2.1">
                    <References></References>
            <!--
                    The Annotation element of the AnnotationSection_Type is the text
                    that will be presented as the Description of the appliance.
                -->
                    <Section xsi:type="ovf:AnnotationSection_Type">
                            <Info></Info>
                            <Annotation>TEXT-CONTENT-REMOVED</Annotation>
                    </Section>
                    <Section xsi:type="ovf:ProductSection_Type" ovf:required="false">
                            <Info>Virtuelle Appliance - Ubuntu JeOS</Info>
                            <Product>TEXT-CONTENT-REMOVED</Product>                                                                                
            <Vendor>TEXT-CONTENT-REMOVED</Vendor>                                                                                
            <!--                                                                                
            Version is the actual product version in the                                                                                
            form X.X.X.X where X is an unsigned 16-bit integer.                                                                                
            FullVersion is a descriptive version string                                                                                
            including, for example, alpha or beta designations                                                                                
            and other release criteria.
                    -->
                            <Version>2.0.0.8</Version>
                            <FullVersion>2.0.0</FullVersion>
                            <ProductUrl>TEXT-CONTENT-REMOVED</ProductUrl>
                            <VendorUrl>TEXT-CONTENT-REMOVED</VendorUrl>
                            <AppUrl>http://${app.ip}/</AppUrl>
                            <Category>Application</Category>
                    </Section>
                    <Section xsi:type="vadk:ExtendedProductSection_Type">
                            <Info></Info>
                            <vadk:VendorUUID>TEXT-CONTENT-REMOVED</vadk:VendorUUID>
                            <vadk:ProductRID>TEXT-CONTENT-REMOVED</vadk:ProductRID>
                            <vadk:AppUrlName>TEXT-CONTENT-REMOVED</vadk:AppUrlName>
                            <vadk:Logo>TEXT-CONTENT-REMOVED-logo.jpg</vadk:Logo>
                            <vadk:LogoUrl>TEXT-CONTENT-REMOVED</vadk:LogoUrl>
                            <vadk:WelcomeText>TEXT-CONTENT-REMOVED</vadk:WelcomeText>
                    </Section>
                    <Section xsi:type="ovf:EulaSection_Type" xml:lang="en">
                            <Info>End User License Agreement</Info>
                            <License>TEXT-CONTENT-REMOVED</License>
                    </Section>
                    <Section xsi:type="vadk:SSLCertificateSection_Type">
                            <Info></Info>
                            <vadk:CommonName>TEXT-CONTENT-REMOVED-appliance</vadk:CommonName>
                            <vadk:OrganizationName>TEXT-CONTENT-REMOVED</vadk:OrganizationName>
                            <vadk:OrganizationalUnitName>TEXT-CONTENT-REMOVED</vadk:OrganizationalUnitName>
                            <vadk:CountryName>TEXT-CONTENT-REMOVED</vadk:CountryName>
                    </Section>
                    <Section xsi:type="vadk:ApplicationSection_Type">
                            <Info></Info>
                            <vadk:VMXFilename>TEXT-CONTENT-REMOVED.vmx</vadk:VMXFilename>
                            <vadk:DistributionFormat vadk:format="zip" vadk:filename="VM" vadk:directory="" vadk:enabled="false">
                                    <vadk:PostOutputCreation></vadk:PostOutputCreation>
                            </vadk:DistributionFormat>
                            <vadk:DistributionFormat vadk:format="ova" vadk:filename="VM" vadk:directory="" vadk:enabled="false">
                                    <vadk:PostOutputCreation></vadk:PostOutputCreation>
                            </vadk:DistributionFormat>
                            <vadk:DistributionFormat vadk:format="vmx" vadk:filename="VM" vadk:directory="" vadk:enabled="false">
                                    <vadk:PostOutputCreation></vadk:PostOutputCreation>
                            </vadk:DistributionFormat>
                            <vadk:DistributionFormat vadk:format="ovf" vadk:filename="TEXT-CONTENT-REMOVED_base" vadk:directory="" vadk:enabled="true">
                                    <vadk:PostOutputCreation>
                                            <vadk:Script vadk:name="sign" vadk:enabled="false">
            #
            # This script will be passed the full path to the ovffile as $1
            #
            # The script should produce a detached signature file with
            # a .cert extension into the same directory as the passed ovffile.
            #
            
            #
            # this will generate a self-signed certificate and sign the OVF with it.
            #
            cd `dirname $1`
            /opt/vmware/bin/signovf -s &apos;/C=US/ST=Some-State/O=AnyCompany/CN=Self-Signed&apos; `basename $1`
            #
            # if you have your own pem key, you can sign the OVF with it this way:
            #
            # /opt/vmware/bin/signovf -p /tmp/my_pem_file.pem `basename $1`
            #
            </vadk:Script>
                                    </vadk:PostOutputCreation>
                            </vadk:DistributionFormat>
                            <vadk:ApplicationPackages>
                                    <vadk:url>http://[http://VADK.localIP|http://VADK.localIP]/TEXT-CONTENT-REMOVED/commondebs</vadk:url>
                            </vadk:ApplicationPackages>
                            <vadk:OSPackages><!-- Additional OS packages needed by the ISV's application --><!-- <vadk:Package vadk:name="foo"/> -->
                                    <vadk:Package vadk:name="build-essential"></vadk:Package>
                                    <vadk:Package vadk:name="vim"></vadk:Package>
                                    <vadk:Package vadk:name="sharutils"></vadk:Package>
                                    <vadk:Package vadk:name="sysutils"></vadk:Package>
                                    <vadk:Package vadk:name="perl-doc"></vadk:Package>
                                    <vadk:Package vadk:name="dnsmasq-base"></vadk:Package>
                                    <vadk:Package vadk:name="gawk"></vadk:Package>
                                    <vadk:Package vadk:name="backuppc"></vadk:Package>
                                    <vadk:Package vadk:name="traceroute"></vadk:Package>
                                    <vadk:Package vadk:name="postfix"></vadk:Package>
                                    <vadk:Package vadk:name="linux-image-server"></vadk:Package>
                                    <vadk:Package vadk:name="ntp"></vadk:Package>
                            </vadk:OSPackages>
                            <vadk:PackagesToRemove></vadk:PackagesToRemove>
                            <vadk:BootActions>
                                    <vadk:FirstBoot>TEXT-CONTENT-REMOVED</vadk:FirstBoot>
                                    <vadk:SubsequentBoot></vadk:SubsequentBoot>
                            </vadk:BootActions>
                            <vadk:Users>
                                    <vadk:User vadk:username="root" vadk:password="TEXT-CONTENT-REMOVED" vadk:passwordFormat="base64" vadk:fullname="" vadk:uid=""></vadk:User>
                                    <vadk:User vadk:username="TEXT-CONTENT-REMOVED" vadk:password="TEXT-CONTENT-REMOVED" vadk:passwordFormat="base64" vadk:fullname="default admin" vadk:uid=""></vadk:User>
                            </vadk:Users>
                    </Section>
                    <Section xsi:type="vadk:UpdateSection_Type">
                            <Info></Info>
                            <vadk:Repository vadk:url="ftp://TEXT-CONTENT-REMOVED" vadk:username="VALIDLICENSENEEDED" vadk:password="TEXT-CONTENT-REMOVED" vadk:passwordFormat="base64"></vadk:Repository>
                            <vadk:RepositoryStagingServer vadk:fileProto="scp" vadk:hostname="TEXT-CONTENT-REMOVED" vadk:fileLogin="TEXT-CONTENT-REMOVED" vadk:filePassword="TEXT-CONTENT-REMOVED" vadk:filePasswordFormat="base64" vadk:filePath="TEXT-CONTENT-REMOVED"></vadk:RepositoryStagingServer>
            <!--
                    <vadk:RepositoryStagingServer vadk:hostname=""
                        vadk:fileLogin="" vadk:filePassword=""
                        vadk:filePasswordFormat="plaintext" vadk:fileProto="scp"
                        vadk:filePath="/tmp"/>
            -->
                            <vadk:Info>TEXT-CONTENT-REMOVED</vadk:Info>
            <!--
                    <vadk:RepositoryExport vadk:format="zip"
                        vadk:filename="VADK_Update"/>
            -->
                            <vadk:PreInstallShellScript></vadk:PreInstallShellScript>
                            <vadk:PostInstallShellScript></vadk:PostInstallShellScript>
                            <vadk:DigitalSignature>
                                    <vadk:Script vadk:name="sign" vadk:enabled="true">#!/bin/sh
            #Sample script to sign updates
            #  $1 is the file to sign
            #  $2 is the file to save sig into
            #  write the signature to stdout
            
            #use sample pem file
            PEMFILE=/opt/vmware/etc/update.pem
            
            #Sign the update with the temporary certificate
            openssl dgst -sha1 -sign $PEMFILE -out &quot;$2&quot; &quot;$1&quot;
            </vadk:Script>
                                    <vadk:Script vadk:name="pubkey" vadk:enabled="true">#!/bin/sh
            #Sample script to get the public key
            #  $1 is the file to write the public key to
            
            SUBJECT=&apos;/C=US/ST=Some-State/O=AnyCompany/CN=Self-Signed&apos;
            PEMFILE=/opt/vmware/etc/update.pem
            
            if [ ! -f $PEMFILE ]; then
              #Create a temporary self-signed certificate first time only
              openssl req -x509 -nodes -sha256 -newkey rsa:1024 -keyout $PEMFILE -out $PEMFILE -subj &apos;$SUBJECT&apos;
            fi
            
            #Get the public key
            openssl rsa -in $PEMFILE -pubout -out $1
            </vadk:Script>
                                    <vadk:Script vadk:name="validate" vadk:enabled="true">#!/bin/sh
            #Sample script to validate digital signature
            #  $1 is the file to validate
            #  $2 is the signature file
            #  $3 is the signature key file
            #  exit with status of 0 if valid
            
            openssl dgst -sha1 -verify &quot;$3&quot; -signature &quot;$2&quot;  &quot;$1&quot;
            </vadk:Script>
                            </vadk:DigitalSignature>
                            <vadk:UpdateInfoList>
                                    <vadk:UpdateInfo vadk:introduced-version="" vadk:category="feature" vadk:severity="important" vadk:affected-versions="" vadk:description="" vadk:reference-type="vendor" vadk:reference-id="" vadk:reference-url=""></vadk:UpdateInfo>
                            </vadk:UpdateInfoList>
                    </Section>
            <!-- Defined by  CIM_OperatingSystem.OsType -->
                    <Section ovf:id="101" xsi:type="ovf:OperatingSystemSection_Type">
                            <Info>Guest Operating System</Info>
                            <Description>Ubuntu Linux 8.04 Alternate</Description>
                    </Section>
                    <Section xsi:type="ovf:VirtualHardwareSection_Type">
                            <Info>Virtual Hardware Requirements</Info>
                            <System>
                                    <vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType>
                            </System>
                            <Item>
                                    <rasd:Caption>2 virtual CPU</rasd:Caption>
                                    <rasd:Description>Number of virtual CPUs</rasd:Description>
                                    <rasd:InstanceId>1</rasd:InstanceId>
                                    <rasd:ResourceType>3</rasd:ResourceType>
                                    <rasd:VirtualQuantity>2</rasd:VirtualQuantity>
                            </Item>
                            <Item>
                                    <rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
                                    <rasd:Caption>2048 MB of memory</rasd:Caption>
                                    <rasd:Description>Memory Size</rasd:Description>
                                    <rasd:InstanceId>2</rasd:InstanceId>
                                    <rasd:ResourceType>4</rasd:ResourceType>
                                    <rasd:VirtualQuantity>2048</rasd:VirtualQuantity>
                            </Item>
                            <Item>
                                    <rasd:BusNumber>0</rasd:BusNumber>
                                    <rasd:Caption>SCSI Controller 0 - LSI Logic</rasd:Caption>
                                    <rasd:InstanceId>3</rasd:InstanceId>
                                    <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
                                    <rasd:ResourceType>6</rasd:ResourceType>
                            </Item>
                            <Item>
                                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
                                    <rasd:Caption>Harddisk 1</rasd:Caption>
                                    <rasd:HostResource>/disk/TEXT-CONTENT-REMOVED-system</rasd:HostResource>
                                    <rasd:InstanceId>4</rasd:InstanceId>
                                    <rasd:Parent>3</rasd:Parent>
                                    <rasd:ResourceType>17</rasd:ResourceType>
                            </Item>
                            <Item>
                                    <rasd:AddressOnParent>1</rasd:AddressOnParent>
                                    <rasd:Caption>Harddisk 2</rasd:Caption>
                                    <rasd:HostResource>/disk/TEXT-CONTENT-REMOVED-var</rasd:HostResource>
                                    <rasd:InstanceId>5</rasd:InstanceId>
                                    <rasd:Parent>3</rasd:Parent>
                                    <rasd:ResourceType>17</rasd:ResourceType>
                            </Item>
                            <Item>
                                    <rasd:AddressOnParent>1</rasd:AddressOnParent>
                                    <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
                                    <rasd:Caption>Ethernet adapter on &quot;Network 1&quot;</rasd:Caption>
                                    <rasd:Connection>Network 1</rasd:Connection>
                                    <rasd:InstanceId>6</rasd:InstanceId>
                                    <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
                                    <rasd:ResourceType>10</rasd:ResourceType>
                            </Item>
                    </Section>
                    <Section xsi:type="vadk:JEOSSection_Type">
                            <Info></Info>
                            <vadk:BootArgs>
            initrd=ubuntu-installer/i386/initrd.gz
            priority=critical
            locale=en_US bootkbd=us
            kbd-chooser/method=us console-setup/layoutcode=us
            disable_dhcp=true
            file=/preseed.cfg
            clocksource=acpi_pm --
            </vadk:BootArgs>
                            <vadk:BootArgsDHCP>append initrd=ubuntu-installer/i386/initrd.gz 
            priority=critical locale=en_US bootkbd=us
            kbd-chooser/method=us console-setup/layoutcode=de
            netcfg/disable_dhcp=false netcfg/choose_interface=eth0
            preseed/url=[http://VADK.unattendedCfgURL|http://VADK.unattendedCfgURL]
            vga=6 clocksource=acpi_pm --</vadk:BootArgsDHCP>
                            <vadk:BootFiles vadk:relPath="install/netboot" vadk:kernel="ubuntu-installer/i386/linux"></vadk:BootFiles>
                            <vadk:UnattendedInstallTemplate>
                        [http://VADK.vadkRoot|http://VADK.vadkRoot]/etc/build/templates/ubuntu/ubuntu.xsl
                    </vadk:UnattendedInstallTemplate>
                            <vadk:PreInstallScript vadk:template="[http://VADK.vadkRoot|http://VADK.vadkRoot]/etc/build/templates/ubuntu/preinstall.xsl" vadk:output="[http://VADK.stageDir|http://VADK.stageDir]/preinstall.sh"></vadk:PreInstallScript>
                            <vadk:PostInstallScript vadk:path="http://[http://VADK.localIP|http://VADK.localIP]/build/[http://VADK.buildID|http://VADK.buildID]/.post.sh" vadk:template="[http://VADK.vadkRoot|http://VADK.vadkRoot]/etc/build/templates/ubuntu/post.xsl" vadk:output="[http://VADK.stageDir|http://VADK.stageDir]/.post.sh"></vadk:PostInstallScript>
                            <vadk:PostScriptRepoList>RepositoryList</vadk:PostScriptRepoList>
                            <vadk:PostScriptPackageList>PackageList</vadk:PostScriptPackageList>
                            <vadk:VADKPackages vadk:path="http://[http://VADK.localIP|http://VADK.localIP]/build/[http://VADK.buildID|http://VADK.buildID]/repo/vadkPackages/" vadk:sourceDir="[http://VADK.vadkRoot|http://VADK.vadkRoot]/lib/build/include/deb/" vadk:targetDir="[http://VADK.stageDir|http://VADK.stageDir]/repo/vadkPackages/"></vadk:VADKPackages>
                            <vadk:ISO vadk:path="file:///opt/vmware/TEXT-CONTENT-REMOVED/ISO/ubuntu-8.04.1-dvd-i386.iso" vadk:md5sum="5fddb647c1945b20055d751576dea8fc" vadk:containFiles="" vadk:packageRepoPath="" vadk:packageMetadataPath="dists/stable/main/binary-i386/Packages"></vadk:ISO>
                            <vadk:Distribution vadk:vendor="Ubuntu" vadk:OSverMajor="8" vadk:OSverMinor="041" vadk:arch="i386" vadk:smp="1" vadk:packageFormat="deb" vadk:packageManager="apt" vadk:packageRepoDir="packageRepoDir"></vadk:Distribution>
                            <vadk:OSPackages>
                                    <vadk:PackageGroup vadk:value="ubuntu-server"></vadk:PackageGroup>
                                    <vadk:Package vadk:name="libcurl3"></vadk:Package>
                                    <vadk:Package vadk:name="libglib2.0-0"></vadk:Package>
                                    <vadk:Package vadk:name="libpcre3"></vadk:Package>
                                    <vadk:Package vadk:name="librpm4.4"></vadk:Package>
                                    <vadk:Package vadk:name="openssh-server"></vadk:Package>
                                    <vadk:Package vadk:name="openssl"></vadk:Package>
                                    <vadk:Package vadk:name="python-libxml2"></vadk:Package>
                            </vadk:OSPackages>
                    </Section>
                    <Section xsi:type="vadk:BuildSection_Type">
                            <Info></Info>
                            <vadk:ProvisioningSettings><!-- OS settings for the appliance being provisioned -->
                                    <vadk:NetworkConnection>VM Network</vadk:NetworkConnection>
                                    <vadk:NetworkType>static</vadk:NetworkType>
                                    <vadk:IP>TEXT-CONTENT-REMOVED</vadk:IP>
                                    <vadk:Netmask>255.255.255.0</vadk:Netmask>
                                    <vadk:Gateway>TEXT-CONTENT-REMOVED</vadk:Gateway>
                                    <vadk:DNS1>TEXT-CONTENT-REMOVED</vadk:DNS1>
                                    <vadk:DNS2>TEXT-CONTENT-REMOVED</vadk:DNS2>
                            </vadk:ProvisioningSettings>
            <!--
                    vadk:path maps to the Upload Path field in the web UI. This is a local directory path on the 
                    physical box where the VMware Server is running. This location will be used to store 
                    the provisioning virtual machine for building the appliance.
            
                    vadk:filePath maps to the Registration Path field in the web UI. This is a path used by 
                    VMware Studio for uploading the provisioning virtual machine to the Upload Path mentioned above.
            
                    The Registration Path and the Upload Path above must refer to same physical directory. 
                    -->
                            <vadk:ProvisioningEngine>
                                    <vadk:VmhostLan vadk:hostname="TEXT-CONTENT-REMOVED" vadk:port="443" vadk:login="TEXT-CONTENT-REMOVED" vadk:password="TEXT-CONTENT-REMOVED" vadk:passwordFormat="base64" vadk:path="/tmp" vadk:fileLogin="TEXT-CONTENT-REMOVED" vadk:filePassword="TEXT-CONTENT-REMOVED" vadk:filePasswordFormat="base64" vadk:fileProto="scp" vadk:filePath="/tmp" vadk:hostOS="linux" vadk:datastore="datastore1" vadk:datacenter="ha-datacenter" vadk:managedESX="TEXT-CONTENT-REMOVED" vadk:resourcePool="" vadk:vmrunPath="" vadk:wsXDisplay=":0.0"></vadk:VmhostLan>
                                    <vadk:VmhostProduct vadk:name="ESX" vadk:majorVersion="4"></vadk:VmhostProduct>
                            </vadk:ProvisioningEngine>
            <!-- all timeouts are in seconds    -->
                            <vadk:ProvisioningTimeouts vadk:poweroff="25" vadk:hang="7200" vadk:boot="1200" vadk:sshWaitTime="120" vadk:scpOperationTime="300" vadk:scpAutoYesWaitTime="2" vadk:systemCmdWaitTime="60" vadk:systemCmdMaxTime="7200"></vadk:ProvisioningTimeouts>
                            <vadk:removeAgentPackage>false</vadk:removeAgentPackage>
                            <vadk:removeTransientVM>true</vadk:removeTransientVM>
                            <vadk:CheckPostInstallLog>true</vadk:CheckPostInstallLog>
                            <vadk:PreInstallShellScript>TEXT-CONTENT-REMOVED</vadk:PostInstallShellScript>
                    </Section>
            <!--
                    The combination of a network device in ovf:VirtualHardwareSection_Type
                    an entry in ovf:NetworkSection_Type describe a network.
                -->
                    <Section xsi:type="ovf:NetworkSection_Type">
                            <Info>List of logical networks used in the package</Info>
                            <Network ovf:name="Network 1">
                                    <Description>The &quot;Network 1&quot; network</Description>
                            </Network>
                    </Section>
            <!--
                    The combination of a disk device in ovf:VirtualHardwareSection_Type,
                    an entry in ovf:DiskSection_Type, and optionally entries in
                    vadk:DiskPartitionSection_Type describe a disk, referenced by ovf:diskId
                -->
                    <Section xsi:type="ovf:DiskSection_Type">
                            <Info>List of the virtual disks and partitions needed</Info>
                            <Disk ovf:diskId="TEXT-CONTENT-REMOVED-system" ovf:capacity="30720" ovf:capacityAllocationUnits="MegaBytes" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse" ovf:fileRef="TEXT-CONTENT-REMOVED-system.vmdk"></Disk>
                            <Disk ovf:diskId="TEXT-CONTENT-REMOVED-var" ovf:capacity="71680" ovf:capacityAllocationUnits="MegaBytes" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse" ovf:fileRef="TEXT-CONTENT-REMOVED-var.vmdk"></Disk>
                    </Section>
                    <Section xsi:type="vadk:DiskPartitionSection_Type">
                            <Info></Info>
                            <vadk:Partition vadk:mount="/boot" vadk:fs="ext3" vadk:bootable="1" vadk:diskId="TEXT-CONTENT-REMOVED-system" vadk:size="256"></vadk:Partition>
                            <vadk:Partition vadk:mount="" vadk:fs="swap" vadk:bootable="0" vadk:diskId="TEXT-CONTENT-REMOVED-system" vadk:size="1024"></vadk:Partition>
                            <vadk:Partition vadk:mount="/" vadk:fs="ext3" vadk:bootable="0" vadk:diskId="TEXT-CONTENT-REMOVED-system" vadk:size="grow"></vadk:Partition>
                            <vadk:Partition vadk:mount="/ivar" vadk:fs="ext3" vadk:bootable="0" vadk:diskId="TEXT-CONTENT-REMOVED-var" vadk:size="grow"></vadk:Partition>
                    </Section>
            <!--
                    Unknown OVF elements in this file will be passed directly
                    to the OVF output descriptor without interpretation
                -->
                    <Section xsi:type="vadk:VAMISection_Type">
                            <Info>VAMI Specific Information</Info>
                            <vadk:InitScript vadk:template="/opt/vmware/etc/vaos/vaos_init.sh"></vadk:InitScript>
                            <vadk:ShowEULA>true</vadk:ShowEULA>
                            <vadk:SetHostname>true</vadk:SetHostname>
                            <vadk:SetNetwork>true</vadk:SetNetwork>
                            <vadk:CreateSSHKeys>true</vadk:CreateSSHKeys>
                            <vadk:RunBootScripts>true</vadk:RunBootScripts>
                            <vadk:LoginTTY>true</vadk:LoginTTY>
                            <vadk:ManagementSrv>true</vadk:ManagementSrv>
                            <vadk:Services>
                                    <vadk:Service vadk:name="core" vadk:version="2.1.0.0" vadk:tabOrder="0"></vadk:Service>
                                    <vadk:Service vadk:name="system" vadk:version="2.1.0.0" vadk:tabOrder="1"></vadk:Service>
                                    <vadk:Service vadk:name="network" vadk:version="2.1.0.0" vadk:tabOrder="2"></vadk:Service>
                                    <vadk:Service vadk:name="update" vadk:version="2.1.0.0" vadk:tabOrder="3"></vadk:Service>
                            </vadk:Services>
                            <vadk:ManagementGUI>true</vadk:ManagementGUI>
                            <vadk:WebServer vadk:httpsPort="5480"></vadk:WebServer>
                            <vadk:ViewCustomization>
                                    <vadk:FooterLeft>&lt;a href=&quot;http://www.vmware.com/&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;padding-top: 3px;&quot; src=&quot;service/core/vmware-footer-logo.gif&quot; alt=&quot;VMware logo&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</vadk:FooterLeft>
                                    <vadk:FooterCopyright>Copyright &amp;copy; 1998-2009 VMware, Inc. All rights reserved.</vadk:FooterCopyright>
                                    <vadk:CopyrightDialog>Copyright &amp;copy; 1998-2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.&lt;br&gt;&lt;br&gt;VMware is a registered trademark or trademarks of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.</vadk:CopyrightDialog>
                            </vadk:ViewCustomization>
                            <vadk:VMToolsCore vadk:install="true" vadk:pkgsDir="/opt/vmware/lib/build/include/vmware-open-vm-tools/ubuntu/8/041/core"></vadk:VMToolsCore>
                            <vadk:VMToolsX vadk:install="false" vadk:pkgsDir="/opt/vmware/lib/build/include/vmware-open-vm-tools/ubuntu/8/041/x"></vadk:VMToolsX>
                    </Section>
                    <Section xsi:type="vadk:IpAssignmentSection_Type">
                            <Info>Supported IP assignment schemes</Info>
                            <vmw:IpAssignmentSection ovf:required="false" vmw:protocols="IPv4" vmw:schemes="">
                                    <Info>Supported IP assignment schemes</Info>
                            </vmw:IpAssignmentSection>
                    </Section>
                    <Section xsi:type="vadk:PropertySection_Type">
                            <Info>Property Assignments</Info>
                    </Section>
                    <Section xsi:type="vadk:AnyOVFSection_Type">
                            <Info>Unknown OVF elements in this element will bepassed directly to the OVF output descriptorwithout interpretation</Info>
                    </Section>
                    <Section xsi:type="vadk:VMWConfigSection_Type">
                            <Info>VMW Config elements in this element will be passed directly to the OVF output descriptor without interpretation</Info>
                    </Section>
                    <Section xsi:type="vadk:ExistingVMSection_Type" vadk:active="false">
                            <Info>Existing VM build configuration</Info>
                            <vadk:EVMInstallScript vadk:template="[http://VADK.vadkRoot|http://VADK.vadkRoot]/etc/build/templates/.unknownOS/linux/apt_deb/evm_install.xsl"></vadk:EVMInstallScript>
                            <vadk:PreInstallScript vadk:template="[http://VADK.vadkRoot|http://VADK.vadkRoot]/etc/build/templates/.unknownOS/linux/apt_deb/preinstall.xsl" vadk:output="[http://VADK.stageDir|http://VADK.stageDir]/preinstall.sh"></vadk:PreInstallScript>
                            <vadk:BaseInfo vadk:buildid="" vadk:agentInstalled="true"></vadk:BaseInfo>
                    </Section>
            </ovf:Envelope>
            

             

            • 3. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
              chorgeas Hot Shot

              I am not able to import your build profile. Can you please upload it as an attachment?

              • 4. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                Jogarem Enthusiast

                hm bad. But i don't believe that adding it as an attachment would solve that...

                 

                It could be that this is because I have replaced the

                 

                • UUID

                • ProductRID

                • All network settings

                 

                with blind text ??

                • 5. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                  provision Hot Shot
                  VMware Employees

                  In terms of the vadk:systemCmdWaitTime being ignored, it is unfortunately a bug that you may apply the following fix for:

                   

                  /opt/vmware/lib/build/VADK/ProvInterface/Vim.pm

                   

                        my ($retStatus, $cmdStdout, $pid, $retExpObj, $savedHdl)

                              = VADK::System::systemCmdWithPw($cmdStr, $self->{&K_PROVPASSWORD}, $ovftool_exitfile, 1);

                   

                        my $sysSettings = $self->getSysSettings();

                        my ($retStatus, $cmdStdout, $pid, $retExpObj, $savedHdl) =

                           VADK::System::systemCmdWithPw(

                              $cmdStr,

                              $self->{&K_PROVPASSWORD},

                              $ovftool_exitfile,

                              1,

                              $sysSettings->{&VADK::Constants::K_SYSCMDWAITTIME},

                              $sysSettings->{&VADK::Constants::K_SYSCMDMAXTIME} );

                   

                  -and-

                   

                           my ($retCmd, $cmdStdout, $pid, $expISO, $childHdlISO) = VADK::System::systemCmdWithPw( $cmdConnISO, $pw, $exitIso, 0);

                   

                           my ($retCmd, $cmdStdout, $pid, $expISO, $childHdlISO) =

                              VADK::System::systemCmdWithPw( $cmdConnISO, $pw, $exitIso, 0,

                                 $sysSettings->{&VADK::Constants::K_SYSCMDWAITTIME},

                                 $sysSettings->{&VADK::Constants::K_SYSCMDMAXTIME} );

                   

                   

                  As for the ESX having bad response while not carrying a high load, maybe you could consider restarting the ESX management agent to release it from maybe a bad state: http://vmwaretips.com/wp/2008/12/12/restarting-the-management-agents-on-an-esx-server/

                  • 6. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                    Jogarem Enthusiast

                    Many thanks for your answer!

                     

                    I had restarted the management agents but that has not solved the problem. Both

                    servers (studio and ESX) are in the same network - no firewall etc. between)

                     

                    Because I'm running in a time issue I had rebooted today Studio, too. From that moment on

                    everything works fine!!

                     

                    Nevertheless I have patched Vim.pm with your version but I have left the systemCmdWaitTime in my profile at 30 seconds

                    for the moment - because everything is working after Studio reboot.

                     

                    btw: it would be nice to have the possibility to execute commands when build starting..

                    In my case I have written a script which compiles and package all my software from a SVN trunk before build is starting.

                    I have hacked vabs.pl to do this but it would be nice to have the external command supported for the next releases :o)

                     

                    Thanks for your help!

                    Thomas

                    • 7. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                      provision Hot Shot
                      VMware Employees

                      Because I'm running in a time issue I had rebooted today Studio, too. From that moment on everything works fine!!

                       

                      Just curious, exactly what kind of time issue was it? Was the system clock in Studio way off? Ahead/behind?

                       

                      Nevertheless I have patched Vim.pm with your version but I have left the systemCmdWaitTime in my profile at 30 seconds for the moment - because everything is working after Studio reboot.

                       

                      Great! Glad to hear.

                       

                      btw: it would be nice to have the possibility to execute commands when build starting..

                       

                      Please elaborate if you would. You want hook in studiocli to execute customized shell script before it starts the current build process? What are the clear benefits of that as oppose to having the additional scripts running prior to launching studiocli?

                      • 8. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                        Jogarem Enthusiast

                        Just curious, exactly what kind of time issue was it? Was the system clock in Studio way off? Ahead/behind?

                         

                        no the time is ok at the studio server..... now.... I havent checked that before the reboot... but.... i don't believe that

                        there is a time issue on the machine itself.. I believe that there were maybe processes hanging or something?!

                         

                        What are the clear benefits of that as oppose to having the additional scripts running prior to launching studiocli?

                         

                        Well I don't want to do it manually .. When you have to do that every single build you get stupid.

                        and

                        I WANT to use the web interface (I don't want to start a command via CLI which then executes my script and then studiocli. The next problem with

                        this is that I have to do that for all my new and existing builds.. bad.).

                        and

                        it IS really cool to see the info/warn/error messages in the normal verbose log in the web frontend..

                        and

                        I don't want to think about that (integrate my script) again when there will be a new vmstudio version released.

                         

                         

                        • 9. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                          provision Hot Shot
                          VMware Employees

                          Notes taken. Thanks for sharing! BTW, pls feel free to send us more feature requests that you may have anytime.

                          • 10. Re: Build ok but then export problem. systemCmdWaitTime has no effect..
                            Jogarem Enthusiast

                            oh i have some more ideas of course

                             

                            I will start a new thread with that