Top Banner
Sandor Acs [email protected] 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on
18
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Sandor Acs

[email protected]

05/07/2012

1

OpenNebula 3.6 (beta) Hands-on

Page 2: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Outline

• OpenNebula GUI

• Marketplace

• Image, template and VM management

• Testing

2

Page 3: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

OpenNebula GUI: Sunstone (1)Adress: http://testcfe.lpds.sztaki.hu/Username: st$iPassword: SummerSchool2012$i

Page 4: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

OpenNebula GUI: Sunstone (2)• Users are interested in ”Virtual

Resources” and ”Marketplace” menu

• ”Infrastructure” menu used by the admins and operators

Page 5: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Exercise I.

• Import the ttylinux image from the

Marketplace

• Create a template for VM submission

• Start a VM from the template

Page 6: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Import image from Marketplace

Page 7: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Import image from Marketplace (2)

Page 8: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Creating a template for VM submission

Page 9: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Start a VM from a template

Page 10: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

DEMO

• Creating an image

• Uploading to OpenNebula

• Creating a template

• Sharing with others

Page 11: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Creating new images• New images can be created in many ways

• Booting a blank disk image with a bootable CD (image) and install the OS

• Using kickstart or debootstrap• (I guess) the easiest (and most beautiful)

way with ubuntu:• $ sudo vmbuilder kvm ubuntu --suite precise --

flavour virtual --arch amd64 -o --libvirt qemu:///system --hostname myvm --user user --pass summerschool --addpkg acpid --addpkg openssh-server --rootsize 512 --swapsize=64

Page 12: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Uploading to OpenNebula

Page 13: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Creating a template

Page 14: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Sharing with others• Images and templates can be shared as

well• However sharing needs administrator role

at this moment

Page 15: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Exercise II.

• Start a VM with the shared template

• Connect it via VNC and SSH• Install the lighttpd package• Create a copy from the non-

persistent image• Make the new image persistent• Try it!

Page 16: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Hints (1)• SSH is more comfortable than VNC for

server VMs (e.g: ssh [email protected])

• Installing lighttpd package• $ sudo bash #password is ”summerschool”• $ apt-get –y install lighttpd• $ echo ”Hello Cloud, username” >

/var/www/index.html• Check it with your browser!

• Use ”Save as” (and ”Shutdown”) to clone running VMs

Page 17: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Hints (2)

• Just one instance can be started from a persistent image!

• If you still have time Create an instance from ”SummerSchool2012-Portal” and practice the portal installation procedure.

Page 18: Sandor Acs acs.sandor@sztaki.mta.hu 05/07/2012 1 OpenNebula 3.6 (beta) Hands-on.

Questions?

Thank you for the attention!