Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 247646

Re: VMware Studio v2.7(?): Feature requests / User wish list

$
0
0

Feature request

Set custom locale via VM Studio UI

 

Issue

Studio 2.6 will build Ubuntu 10.04 appliances with locale set to en_US. When installing a database package such as postgresql-8.4, the databases will default to same locale resulting in LATIN1 encoding. The desired encoding is UTF-8.

 

Workarounds

Post-appliance build:

The workaround after the appliance first boots (that we know of) is to change the locale (i.e to en_US.utf8) on the OS level, then purge and reinstall package  postgresql-8.4. This way the databases will default to locale en_US.utf8 resulting in UTF-8 encoding.

 

Workaround for building new appliances:

Edit the Ubuntu 10.04 profile and templates so that when the appliance is built, it will be with en_US.utf8 locale.

 

/opt/vmware/etc/build/templates/ubuntu/10/ubuntu.xsl
-     d-i debian-installer/locale string en_US
+     d-i debian-installer/locale string en_US.UTF-8

 

/opt/vmware/etc/build/templates/ubuntu/10/post.xsl

+locale-gen en_US.UTF-8

+update-locale LANG=en_US.UTF-8

-export LANG=en_US

+export LANG=en_US.UTF-8

 

/opt/vmware/var/lib/build/profiles/<profile_name>.xml

- Change all mention of "en_US" to en_US.UTF-8


Viewing all articles
Browse latest Browse all 247646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>