StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI-261552 VM Lifecycle StratusLab Tutorial.

Slides:



Advertisements
Similar presentations
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Management Overview StratusLab.
Advertisements

StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Enhancing grid.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 4 Software Integration.
Virtual Machine Lifecycle StratusLab Tutorial (Orsay, France) 28 November 2012.
Using Storage with VMs StratusLab Tutorial (Orsay, France) 28 November 2012.
Marketplace and Appliance Management Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Sharing Virtual Appliances.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI VM Lifecycle ACGRID-III (Hanoi)
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Introduction to Cloud Technology.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Cloud Federation.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Cloud Distribution.
Installation Overview Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
Customized cloud platform for computing on your terms !
Client Installation StratusLab Tutorial (Orsay, France) 28 November 2012.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Cloud Computing and Challenges.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Marketplace & Image Metadata.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Storage Services ACGRID-III.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Virtual Machine Isolation.
Advanced Topics StratusLab Tutorial (Orsay, France) 28 November 2012.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Client Installation ACGRID-III.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Registration ACGRID-III (Hanoi)
VApp Product Support Engineering Rev E VMware Confidential.
When you run a scenario, the Vusers on each host machine use the host’s IP address. You can define multiple IP addresses on a host machine to emulate a.
Computing Services Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI The StratusLab Cloud Distribution.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Tutorial Recap.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Storage Services.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INSFO-RI StratusLab project Update.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Collaborations.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INSFO-RI Integrating Cloud Monitoring.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Storage Services.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Marketplace EGI.
Appliance Management StratusLab Tutorial (Orsay, France) 28 November 2012.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INSFO-RI Operating grid services on.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Enhancing Grid.
VMware Certified Professional 6-Data Center Virtualization Beta 2V0-621Exam.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Management Overview StratusLab.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 3 Dissemination.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Demonstration StratusLab First.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 2 Interactions.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Client Installation StratusLab.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Technical Overview StratusLab.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Enhancing Grid.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Marketplace C.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 2 Interactions.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI CloudBroker usage Zoltán Farkas MTA SZTAKI LPDS
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Cloud Computing and Challenges.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 5 Infrastructure.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Virtual Machine Isolation.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 5 Infrastructure.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Introduction to Cloud Technology.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Exploitation and Sustainability.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Overview & Collaboration.
Current Status of the Project C. Loomis CNRS/LAL The StratusLab project is co-funded by the European Community’s Seventh Framework Programme (Capacities)
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Sustainability.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 4 Software Integration.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Features, Use Cases, and Sustainability.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: VM Lifecycle EGI.
StratusLab Tutorial (Bordeaux, France)
Aprovisionamiento de Maquinas Virtuales Windows Server 2016 y Windows 10 en Azure
StratusLab Tutorial (Bordeaux, France)
VMWare Workstation Installation
StratusLab Tutorial (Bordeaux, France)
StratusLab Tutorial (Bordeaux, France)
StratusLab Tutorial (Bordeaux, France)
Creating a Windows Server 2012 R2 Datacenter Virtual machine
Creating a Windows Server 2016 Datacenter Virtual machine
StratusLab Tutorial (Orsay, France)
Creating a Windows 7 Professional SP1 Virtual machine
Presentation transcript:

StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI VM Lifecycle StratusLab Tutorial

2 VM Lifecycle Overview Normal VM lifecycle consists of following commands:  Deploy new instance: –stratus-run-instance  Describe running instances: –stratus-describe-instance [VM ID]  Access instance: –stratus-connect-instance [VM ID]  Shutdown instance: –stratus-shutdown-instance [VM ID]  Remove instance: –stratus-kill-instance [VM ID]

3 Deploy a VM from the Marketplace Use a ttylinux image Identifier from the Marketplace to understand the VM lifecycle:  Browse the StratusLab Marketplace:  export TTYLINUX_ID=BzrqtDb2pYxA5_jha4IXG4WLyD3 Deploy your virtual machine:  stratus-run-instance ${TTYLINUX_ID}  Response should give the VM ID and Public IP: ::::::::::::::::::::::::: :: Starting machine(s) :: ::::::::::::::::::::::::: :: Starting 1 machine :: Machine 1 (vm ID: 12) Public ip: :: Done!

4 Status of Virtual Machines Follow the status of the machine with the VM ID:  stratus-describe-instance  All active machines can be seen with same command without VMID. $ stratus-describe-instance 12 id state vcpu memory cpu% ip name 12 Running one-12 $ stratus-describe-instance id state vcpu memory cpu% ip name 11 Running one Running one-12

5 Connecting to the Virtual Machine Wait until the machine is "Running" then ping the VM:  ping If all's OK, connect to the machine instance:  stratus-connect-instance You can also log into the machine as root, using ssh:  ssh $ ping PING ( ): 56 data bytes 64 bytes from : icmp_seq=0 ttl=63 time=0.780 ms 64 bytes from : icmp_seq=1 ttl=63 time=0.704 ms... $stratus-connect-instance 11 # # echo $USER root

6 More machine instances… Deploy second machine instance:  stratus-run-instance …  Log into machine as root  Stay logged in… Common machine states:  Pending: waiting for resource  Prolog: cloud initialization of an image  Boot: starting virtual machine from image  Running: machine is active  Failed: problem with starting/running the machine

7 Stopping the Virtual Machine Graceful shutdown from within the machine:  shutdown –h  Wait for the unknown state, then kill (remove) the instance:  This safely stops all services and halts the machine. Rip the power cord from the wall:  stratus-kill-instance # shutdown -h # Connection to closed by remote host. Connection to closed. $ stratus-shutdown-instance 11 id state vcpu memory cpu% ip name 11 Unknown one-11 $ stratus-kill-instance 12 $ stratus-describe-instance 12 id state vcpu memory cpu% ip name 12 Done one-12

8 Changing VM Resources At deployment, you can choose the number of CPUs, amount of RAM and swap space. StratusLab has a number of predefined types:  stratus-run-instance --list-type (default is m1.small) Deploy an m1.xlarge instance $ stratus-run-instance --list-type Type CPU RAM SWAP m1.large 2 CPU 512 MB 1024 MB c1.xlarge 4 CPU 2048 MB 2048 MB m1.small 1 CPU 128 MB 1024 MB c1.medium 1 CPU 256 MB 1024 MB m1.xlarge 2 CPU 1024 MB 1024 MB t1.micro 1 CPU 128 MB 512 M $ stratus-run-instance --quiet --type=m1.xlarge $TTYLINUX_ID 14, $ stratus-describe-instance 14 id state vcpu memory cpu% ip name 14 Pending one-14

9 Non-standard Machine Types What happens when you need resource allocations different from the predefined types? New in client 1.22, users can specify all resources:  stratus-run-instance –help Want to deploy ttylinux with (CPU=8 cores, RAM=4096MB,SWAP=1024MB) $ stratus-run-instance –help …… --cpu=VMCPU number of CPU cores --ram=VMRAM RAM in megabytes --swap=VMSWAP swap space in megabytes …… $ stratus-run-instance --quiet –cpu=8 –ram=4096 –swap=1024 $TTYLINUX_ID 14, $ stratus-describe-instance 14 id state vcpu memory cpu% ip name 14 Pending one-14

10 Non-standard Machine Types NOTE: Machine images must be capable of using multiple CPUs, additional RAM, etc. for this to be useful.

11 Advanced features At deployment, you can ask to save image after VM shutdown. Save image workflow  stratus-run-instance --save --author- =‘…’  Connect to the instance: stratus-connect-instance [VM ID]  Apply modifications.  Shutdown the instance: stratus-shutdown-instance [VM ID]  Once the newly image created, user receives information on how to proceed in the they provided with --author- option.  Note: Instances must support ACPI $ stratus-run-instance –help …… --save save image after VM shutdown --author- = Used with --save option. address of the author of the new image. After image is saved a notification is sent with further instructions. ……

12 Advanced features Deploy CentOS 6.2 instance (Identifier: DfXlr9qthtM6BKrPzeqyxqTvamx from the Marketplace) $ export CENTOS_ID=DfXlr9qthtM6BKrPzeqyxqTvamx $ stratus-run-instance –quiet --save --author- =‘your address’ $CENTOS_ID 15, $ stratus-describe-instance 15 id state vcpu memory cpu% ip name 15 Running one-15 $ stratus-shutdown-instance 15 $ $ stratus-describe-instance 15 id state vcpu memory cpu% ip name 15 Shutdown one-15

13 Questions and Discussion

14 Exercises: Deploy Machines Marketplace  Search Marketplace to see what types of machines are available  What metadata is available for existing virtual machines?  What metadata would you like to have? Deploy Virtual Machines  Try different operating systems (ttylinux, Ubuntu, CentOS, Fedora, OpenSUSE)  Change the machine types, resources  Try both shutdown and kill. What differences do you see? Create a Web Site  Deploy virtual machine with a web server  Customize landing page or other content  Verify that you can access the site with the customized content

Copyright © , Members of the StratusLab collaboration: Centre National de la Recherche Scientifique, Universidad Complutense de Madrid, Greek Research and Technology Network S.A., SixSq Sàrl, Telefónica Investigación y Desarrollo SA, and The Provost Fellows and Scholars of the College of the Holy and Undivided Trinity of Queen Elizabeth Near Dublin. This work is licensed under the Creative Commons Attribution 3.0 Unported License