Virtuelle Maschinen für Amazon EC2 mit dem VMBuilder erstellen

[ 0 ] Juli 21, 2010 |

Dieses Tutorial beschreibt wie ein offizielles Amazon EC2 Image mit dem VMBuilder deployed wird.

Installation


Installation auf Karmic Koala (9.10) und späteren Versionen

Für alle Ubuntu Versionen ab Karmic Koala (9.10) sind fertige Pakete vorhanden.

apt-get install python-vm-builder-ec2

Installation auf früheren Versionen

Für frühere Versionen müssen die notwendigen Tools installiert werden, um den VMBuilder zu erstellen und diesen zu nutzen.

sudo apt-get install bzr cdbs python-all-dev python-epydoc 
  kvm debootstrap parted kpartx ubuntu-keyring             
  dpkg-dev python-boto python-cheetah ec2-ami-tools        
  devscripts build-essential

Laden der EC2-Änderungen die an dem VMBuilder ggf. vorgenommen wurden.

sbzr branch lp:~zulcss/vmbuilder/vmbuilder-intrepid-ec2

Laden der EC2 Skripte die für die Konfiguration während des ersten Starts und der ersten Benutzeranmeldung für das Image benötigt werden.

bzr branch lp:~zulcss/ec2-scripts/trunk zulcss-ec2-scripts

Erstellen des VMBuilder Package.

(cd vmbuilder-chuck; debuild -uc -us)

Installation der Debs.

sudo dpkg -i                
  python-vm-builder_*.deb   
  python-vm-builder-ec2*.deb

Erstellen einer virtuellen Maschine


Mit dem folgenden Befehl wird automatisch ein Image erstellt, ge-bundled und hochgeladen.

sudo vmbuilder xen ubuntu --suite={hardy,intrepid,karmic} --ec2 
  --ec2-cert=                  
  --ec2-key=                    
  --ec2-access-key=                     
  --ec2-secret-key=                     
  --ec2-user=                             
  --ec2-bucket=                        
  --ec2-prefix=                                
  --ec2-version="Beschreibung des EC2 Image"              
  --firstboot=/usr/share/doc/python-vm-builder-ec2/examples/ec2-firstboot.sh            
  --part=/usr/share/doc/python-vm-builder-ec2/examples/ec2-< arch >-part-file.txt         
  --debug

Beim Einsatz eines früheren Ubuntu Release müssen die Skripte unter /usr/share/doc/python-vm-builder-ec2/examples mit den Skripten von zulcss-ec2-scripts (siehe oben) ersetzt werden.

Quelle

Tags: , , , , , , , , , , , , ,

Category: Tutorials

About the Author ()

Rene Buest is Principal Analyst and Senior Advisor at renebuest research, covering cloud computing, business technology and collaboration. He is member of the GigaOm Pro Analyst Network and top cloud computing blogger in Germany. Worldwide he is one of the top 50 bloggers in this area. For more than 16 years he is focused on the strategic use of information technology in businesses and the IT impact on our society as well as disruptive technologies. Rene Buest is the author of numerous professional cloud computing and technology articles, speaker and participant of experts rounds. On CloudUser.de he writes about topics from the fields of cloud computing, it-infrastructures, technologies, management and strategies and is moving on Twitter via his account @ReneBuest. Rene Buest is organizer of numerous cloud computing and technology events. Covering the CloudCamp Hamburg 2010, CloudCamp Frankfurt 2012, CloudOps Summit 2012 and the Amazon Web Services and Windows Azure User Groups in Germany. Rene Buest is a fully qualified specialist for system integration und holds a diploma in computer engineering from the Hochschule Bremen (Dipl.-Informatiker (FH)) as well as a M.Sc. in IT-Management and Information Systems from the FHDW Paderborn. Detailed curriculum vitaes are hosted on XING and LinkedIn.

Leave a Reply

You must be logged in to post a comment.