Skip navigation

VMware Studio

1 post

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: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 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:


VMware Tools Packages for X Server:


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.