|
VMware
Brief introduction in how to use the TyphoonAE VMware image.
Featured TyphoonAE on VMware/VirtualBoxFor the ones who don't want to build their own TyphoonAE environment, we supply a preconfigured VMware/VirtualBox appliance. You can run multiple versions of different GAE Python applications on this TyphoonAE box. To upload application files, run the original appcfg.py command from the SDK with the update action and the name of your application's root directory.
See this page for a brief introduction of TyphoonAE's Appcfg Service. Since TyphoonAE is still beta, it is not guaranteed that all GAE Python applications will run. See these notes to get some information on what to expect. However, any bug reports are highly welcome. Getting the ImageDownload and unpack the archive. $ curl -O http://www.typhoonae.org/TyphoonAE_Ubuntu_10.10_64bit.vmwarevm.tar.gz $ tar xvzf TyphoonAE_Ubuntu_10.10.64bit.vmwarevm.tar.gz A VirtualBox appliance is also available. $ curl -O http://www.typhoonae.org/TyphoonAE_Ubuntu_10.10_64bit.vbox.tar.gz $ tar xvzf TyphoonAE_Ubuntu_10.10.64bit.vbox.tar.gz Installed and Preconfigured ServicesSince the virtual machine image is a all-in-one installation, it has a whole bunch of software installed. The following list shows only the more important components.
Running and Configuring the EngineRun VMware/VirtualBox and import the appliance. Once the guest system is up and running, login by using typhoonae as user and password. Now it is very important to obtain the correct IP address of your guest. You can use the following command: $ ifconfig eth0 On the VMware/VirtualBox host add the following lines to your local hosts table (/etc/hosts on Linux/OS X) and don't forget to replace 10.0.1.42 with the correct IP address of the guest. # TyphoonAE VM beta 10.0.1.42 typhoonae.local typhoonae # My application 10.0.1.42 myapp.typhoonae.local 10.0.1.42 1.latest.myapp.typhoonae.local For each application you plan to deploy to TyphoonAE make the appropriate entries as shown above. Since TyphoonAE supports multiple versions, add another line for each version. Uploading the AppNow deploy the 'myapp' GAE Python application by typing: $ appcfg.py --insecure -s typhoonae.local:8080 update path/to/myapp/ Visit your application by opening http://myapp.typhoonae.local in your web browser. To see what applications are installed enter http://typhoonae.local:8080 into your web browser.
In order to cleanly shutdown the virtual machine, login to the guest system ... $ ssh typhoonae@typhoonae.local ... and enter the following commands: $ sudo supervisorctl shutdown $ sudo shutdown -h now Please bear in mind that TyphoonAE and the above configuration is beta. However, you're invited to help improving all this. Contact the TyphoonAE discussion group. | |
If, while importing the VirtualBox? appliance you get the error:
Too many IDE Controllers in OVF; import facility only supports one
just upgrade to the latest version of VirtualBox? (currently 3.2.12).
@toxicafunk: Can you manually add the .vmdk to the Virtual Media Manager and then either use the .ovf from the archive or create a new one? The settings are typical Ubuntu 64bit settings.
Also, it seems you need to disable audio for it to work, seems like an OVF import bug or something.
@tobia.rodaebel: No, that was what I first tried but I just got a black screen. Apparently its some kind of VirtualBox? bug because the same was reported by a reddit user while importing a reddit VM here.
@toxicafunk: I've baked a new image and replaced the old one. The URL is the same. Hopefully, this works better for you.
@tobia.rodaebel: I had the other working by updating and turning audio off. I had no problem with the new one you updated.
By the way, for applying the correct keyboard layout just use:
sudo dpkg-reconfigure console-setup
One question though, the VM comes preconfigured to use Bridged networking which doesn't assign IP to the guest machine, therefore ifconfig doesn't show what IP to use on /etc/hosts.
I've been able to access the supervisor console by changing the network to NAT and configuring Port Forwarding on VirtualBox?:
But now I'm not sure what to do on
I suppose I use the appcfg from my host and that I'm passing the typhoonae serve through the "-s" param, right?
@toxicafunk: The appcfg.py script is part of the App Engine SDK that you should have on your host. path/to/myapp should point to an App Engine application folder containing an app.yaml file.
NOTE that there seems to be a file size upload limit of 1Mb (not 10Mb as "real" App Engine)