Package: xenosimager
Date:2012-03-08 16:22Tags:Openstack, Nova Compute, Nova, Glance, Imaging, XenServerCategory:*nixAuthor:Kevin CarterCreate an Image from within an InstanceGeneral OverviewThis application has been created to work with Openstack if using the XenServer Hypervisor. At this time the code base supports Openstack as a whole, however the application has only been tested on Rackspace Cloud Servers.Overview:XenOsImagerwill create an image from information obtained from within the instance. The application will look at the “xenstore” data to determine the UUID of the instance, and the region. The user is only required to input their OpenStack API Credentials into a simple configuration file. These credentials are only used to make API calls for image creation.Simply the application will allow you to create images of instances as a simple automation task; CRON job, on demand, or anythine else you can think of.Prerequisites :Python => 2.6 but < 3.0python-setuptoolsInstallation is simple :from Python.org, IE “pip”pipinstallxenosimagerfrom Github, which is Trunk.gitclonegit://github.com/cloudnull/transporter.gitcdtransporterpythonsetup.pyinstallSetup is Simple too edit the file “/etc/xenosimager/config.cfg” :vi/etc/xenosimager/config.cfgIn the previous file, add your credentials. If you feel so inclined, you can also add your mail relay information and the system will send you a message when the images are created or if there are overall issues.Available Options in the config file or on the CLI :Required Variables from CLIsystem-config| Where your config file existsimage-name| the name of the imageOpenStack Variablesos_user| YOUos_apikey| SuperSecretInformationos_auth_url| Authentication URLos_rax_auth| A-LOCATIONos_verbose| True or Falseos_password| SuperSecretInformationos_tenant| UsernameGenerallyos_region| WhereIsThisInstanceos_version| v2.0Mail Variablesmail-main-contact| WhoReadsEmailmail_debug| True or Falsemail_url| AURLmail_user| Usernamemail_password| Passwordmail_cert| /location/certmail_key| KeyForCertmail_tls| True or Falsemail_port| Port NumberHow to use this toolApplication is simple to use. Simply follow this command and add your own custom name to the end.xenosimager--system-config/etc/xenosimager/config.cfg--image-name$NAME_OF_THE_IMAGELogs are created for all interaction of the imager, and can be found here :/var/log/xenosimager.logFor automated image create please have a look at the example.cron.txt file, which is where you can find cron job examples, but with little to no ingenuity I am sure you could figure out other methods for automated command execution.Get SocialDownloadable onPyPiDownloadable onGitHubSee MyGitHub Issues Pagefor any and all Issues or Feature requestsSeehttps://github.com/cloudnull/transporter/issuesfor Issues or Feature requestsLicenseCopyright [2013] [Kevin Carter]Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.