In VMware Studio 2.1 you may add support for building Ubuntu 10.04.1 Server i386 appliances with the following steps:

 

  1. Log in to the VMware Studio VM as root.

     


  2. Run this command to create the template structure for the new OS:

     

    studiocli --newos --osdesc "Ubuntu 10.04.1" -p /opt/vmware/etc/build/templates/ubuntu/08/044/build_profile.xml
    

     


  3. Update the preseed settings to work with Ubuntu 10.04. Edit /opt/vmware/etc/build/templates/Ubuntu10.04.1/Ubuntu10.04.1.xsl (filename is based on this example) to activate these settings by uncommenting or adding these lines:

     

    # Explicitly disable installation of the non-existence Restricted software from the ISO (around line 210)
    d-i apt-setup/restricted boolean false
    
    # Enable VT1-VT6 (around line 285)
    d-i finish-install/keep-consoles boolean true
    
    # Allow weak password (around line 235)
    d-i user-setup/allow-password-weak boolean true
    

     


  4. Update the template profile /opt/vmware/etc/build/templates/Ubuntu10.04.1/build_profile.xml with these values:

     

    <vadk:ISO vadk:path="file:///opt/vmware/www/ISV/ISO/ubuntu-10.04.1-server-i386.iso" vadk:md5sum="" vadk:packageRepoPath="" vadk:packageMetadataPath="dists/stable/main/binary-i386/Packages.gz" vadk:containFiles=""/>
    
    <vadk:Distribution vadk:vendor="Ubuntu" vadk:OSverMajor="10" vadk:OSverMinor="041" vadk:arch="i386" vadk:smp="1" vadk:packageFormat="deb" vadk:packageManager="apt" vadk:packageRepoDir="packageRepoDir"/>
    
    <vadk:RunBootScripts>true</vadk:RunBootScripts>
    
    <vadk:LoginTTY>true</vadk:LoginTTY>
    
    <vadk:ManagementSrv>true</vadk:ManagementSrv>
    
    <vadk:ManagementGUI>true</vadk:ManagementGUI>
    
    <vadk:VMToolsCore vadk:install="false" vadk:pkgsDir=""/>
    
    <vadk:VMToolsX vadk:install="false" vadk:pkgsDir=""/>
     
    

     


  5. Update /opt/vmware/etc/build/templates/Ubuntu10.04.1/post.xsl with these additional post install scripts before the line <call-template name="task_app_postinstall_script" />:

     

    # Force disregard of the deprecated tzconfig command in Ubuntu 10.04
    sed --in-place=.orig -e 's/tzconfig/tzconfigDeprecated/' /opt/vmware/share/vami/vami_set_timezone
    
    # Enable the blue welcome/login screen on the VM console TTY1
    sed --in-place=.orig -e 's/\/sbin\/.*getty .*tty1[ \t]*$/\/opt\/vmware\/share\/vami\/vami_login &gt; \/dev\/tty1 2&gt;\&amp;1 &lt; \/dev\/tty1/' /etc/init/tty1.conf
    
    # Disable the Plymouth splash screen
    mv /etc/init/plymouth-splash.conf /etc/init/plymouth-splash.conf.bak
    
    # Remove the "quiet splash" kernel boot options
    sed --in-place=.orig -e 's/quiet splash//' /etc/default/grub
    /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
    

     


And that's it for the setup steps. You may now make ubuntu-10.04.1-server-i386.iso available to the VMware Studio VM (in this example the iso is NFS mounted to /opt/vmware/www/ISV/ISO/ in the VMware Studio VM), create your custom appliance profiles based on the new Ubuntu 10.04.1 template through the VMware Studio web interface (http://<studio-vm_ip>), and build the desired appliances.

 

Note that the VMware Tools (OSP format which VMware Studio uses by default) for Ubuntu 10.04.1 is now available at http://packages.vmware.com/tools/esx/4.1/ubuntu/dists/lucid/main/binary-i386/index.html. You may download the following OSP packages to go with your application packages for enabling VMware Tools in the Ubuntu 10.04.1 appliances:

 

VMware Tools Core Packages:

 

http://packages.vmware.com/tools/esx/4.1/ubuntu/dists/lucid/main/binary-i386/vmware-open-vm-tools-kmod-2.6.32-24-generic_8.3.2-0.299420_ubuntu10.04.i386.deb
http://packages.vmware.com/tools/esx/4.1/ubuntu/dists/lucid/main/binary-i386/vmware-open-vm-tools-common_8.3.2-0.299420_ubuntu10.04.i386.deb

 

VMware Tools Packages for X Server:

 

http://packages.vmware.com/tools/esx/4.1/ubuntu/dists/lucid/main/binary-i386/vmware-open-vm-tools-xorg-drv-display_11.0.1.0_ubuntu10.04.i386.deb
http://packages.vmware.com/tools/esx/4.1/ubuntu/dists/lucid/main/binary-i386/vmware-open-vm-tools-xorg-drv-mouse_12.6.7.0_ubuntu10.04.i386.deb
http://packages.vmware.com/tools/esx/4.1/ubuntu/dists/lucid/main/binary-i386/vmware-open-vm-tools-xorg-utilities_8.3.2-0.299420_ubuntu10.04.i386.deb

 

Note also that the ISO packages browsing from the VMware Studio web interface would not function for this OS because it requires VMware Studio code changes. Adding packages from the ISO by manually entering the packages' name does work.