Virtualization with libvirt Kashyap Chamarthy

Slides:



Advertisements
Similar presentations
With ovirt & virt manager
Advertisements

Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
Profit from the cloud TM Parallels Dynamic Infrastructure AndOpenStack.
NWCLUG 01/05/2010 Jared Moore Xen Open Source Virtualization.
Virtual Machine Security Design of Secure Operating Systems Summer 2012 Presented By: Musaad Alzahrani.
COMS E Cloud Computing and Data Center Networking Sambit Sahu
Lesson 7: Creating and Configuring Virtual Machine Settings
A comparison between xen and kvm Andrea Chierici Riccardo Veraldi INFN-CNAF.
Virtualization for Cloud Computing
To run the program: To run the program: You need the OS: You need the OS:
Condor Project Computer Sciences Department University of Wisconsin-Madison Virtual Machines in Condor.
E Virtual Machines Lecture 4 Device Virtualization
Week 6 Operating Systems.
System Center 2012 Setup The components of system center App Controller Data Protection Manager Operations Manager Orchestrator Service.
INTRODUCTION TO CLOUD COMPUTING CS 595 LECTURE 7 2/23/2015.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2010 Seminar #1 VIRTUALIZATION EVERYWHERE.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2009 Seminar #1 VIRTUALIZATION EVERYWHERE.
Module 7: Hyper-V. Module Overview List the new features of Hyper-V Configure Hyper-V virtual machines.
Benefits: Increased server utilization Reduced IT TCO Improved IT agility.
Secure & flexible monitoring of virtual machine University of Mazandran Science & Tecnology By : Esmaill Khanlarpour January.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
Simplifying Resource Sharing in Voluntary Grid Computing with the Grid Appliance David Wolinsky Renato Figueiredo ACIS Lab University of Florida.
Beowulf Software. Monitoring and Administration Beowulf Watch 
NTU Cloud 2010/05/30. System Diagram Architecture Gluster File System – Provide a distributed shared file system for migration NFS – A Prototype Image.
Lecture 26 Virtual Machine Monitors. Virtual Machines Goal: run an guest OS over an host OS Who has done this? Why might it be useful? Examples: Vmware,
Библиотеки и фреймворки для построения клаудов Данилов Константин Mirantis koder-ua.blogspot.com.
Virtualization One computer can do the job of multiple computers, by sharing the resources of a single computer across multiple environments. Turning hardware.
Course 03 Basic Concepts assist. eng. Jánó Rajmond, PhD
KVM tutorial #3 Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
From VMware to Proxmox Federico Calzolari Scuola Normale Superiore - INFN Pisa.
Libvirt management Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Introduction to KVM Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Performance analysis comparison Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Find – used to find files corresponding to a certain criteria find starting_dir matching_criteria [options] Examples: find /usr –name startx find /usr.
VIRTUAL MACHINE – VMWARE. VIRTUAL MACHINE (VM) What is a VM? – A virtual machine (VM) is a software implementation of a computing environment in which.
A comparison between xen and kvm Andrea Chierici Riccardo Veraldi INFN-CNAF CCR 2009.
Intro To Virtualization Mohammed Morsi
Open Source Virtualization Andrey Meganov RHCA, RHCX Consultant / VDEL
Secure remote management with virtualization Daniel P. Berrangé.
Virtualization Neependra Khare
Virtualization in Fedora (KVM based) Kashyap Chamarthy Virtualization in Fedora (KVM based) Kashyap Chamarthy
Welcome to the Virtual Machine Mark Cyzyk The Sheridan Libraries Johns Hopkins University.
Daniel P. Berrangé Principal Software Engineer, Red Hat.
How It Stacks Up Amit Shah Presented by Fedora Project Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License Fedora Virtualisation.
10/2/2016 Secure Virtualization Using SELinux Daniel J Walsh
Daniel P. Berrangé KVM Forum Vancouver, libvirt: Why it exists ● Stable: isolation from HV API changes ● Standard: portable across HV ● Simple:
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Virtualization Mini Summit, Austin 2008 mmm, tasty penguins...
Virtualization for Cloud Computing
Guide to Operating Systems, 5th Edition
Section 4 Block Storage with SES
Chapter 6: Securing the Cloud
OVirt Architecture Itamar Heim
NEWS LAB 薛智文 嵌入式系統暨無線網路實驗室
Snap your App! Ted Texas Linux Fest
London OpenStack Meetup, July 2012 libvirt & KVM with OpenStack Nova
Linux Containers Overview & Roadmap
Containers and Virtualisation
Virtualization overview
libvirt: Stable API Management of hypervisor(s)
An introduction... Mike Latimer Sr. Engineering Manager SUSE
CIT 480: Securing Computer Systems
Cloud Technology Group
Hands-On Virtualization in the Classroom
Download dumps - Microsoft Real Exam Questions Dumps4download
Versatile HPC: Comet Virtual Clusters for the Long Tail of Science SC17 Denver Colorado Comet Virtualization Team: Trevor Cooper, Dmitry Mishin, Christopher.
Guide to Operating Systems, 5th Edition
Virtualization and Persistence
Presentation transcript:

Virtualization with libvirt Kashyap Chamarthy

Outline Virt Architecture What Libvirt Terminology Virtualization Shell Common virsh operations Snapshots Security Libguestfs Conclusion

Virsh, Virt-tools, Virt-manager X86 Hardware(Intel/AMD) Virt Architecture Regular Apps Virsh, Virt-tools, Virt-manager Libvirt App1 App2 Virtual Machine 1 Virtual Machine 2 App3 App4 QEMU (I/O) hypervisor -- KVM[/dev/kvm] (Linux Kernel) X86 Hardware(Intel/AMD)

OK, so, what the heck is libvirt? Library to securely manage Virtual Machines Uses a client/server model Supports multiple hypervisors KVM, QEMU, XEN, Virtualbox, LXC, and more XML format to define virtual machine Stable

Offline/Live Migration More libvirt.. Networking Devices QEMU/KVM libguestfs Storage CPU tuning Snapshots sVirt Offline/Live Migration Serial Console MEM tuning MEM tuning MEM tuning Qcow2 Encryption SSH/TLS

Terminology node – Physical machine/Bare Metal domain – Virtual machine/Guest machine hypervisor – A software layer which enables to run multiple operating systems

Virt-install Illustration1 virt-install --connect=qemu:///system \ --name fedora16 \ --disk /export/vmimgs/fedora16.img,size=5 \ --ram 1024 \ --vcpus=2 \ --check-cpu \ --hvm \ --cdrom /export/isos/Fedora-16-Beta-x86_64-Live- Desktop.iso

Virtualization shell A powerful shell interface to manage guests $ virsh help host $ virsh capabilities $ virsh dominfo

virsh examples $ virsh nodeinfo $ virsh define lovelock1.xml $ virsh start lovelock1 $ virsh shutdown lovelock1 $ virsh list --all

More virsh operations Edit and define $ virsh edit lovelock1 Save VM(or domain) $ virsh save lovelock1 savedlovelock1 $ virsh restore savedlovelock1 Connect to a remote virt-host $ virsh --connect \ qemu+ssh://root@remotehostname/system

Libvirt Security Guests are run as unprivileged user – 'qemu' sVirt - SELinux(Mandatory Access controls) Integrated into libvirt qemu driver Example SELinux label for a VM Syntax: USER:ROLE:TYPE:MCS label system_u:object_r:svirt_image_t:s0:c162,c597 /export/vmimgs/yellow.qcow2

Snapshots Currently supports Qcow2 disk image formats $ virsh snapshot-create lovelock1 Types of snapshots VM state VM State is stored to a file ; Can restore instantly Internal Single file to move around ; Very handy External Uses backing files ; useful to creating templates

Libguestfs Read, Modify, Manage, Inspect disk images An interactive shell to access guest file-systems For a 'running' guest $ guestfish –ro -i -a /path/to/disk-image For an 'offline guest $ sudo guestfish –rw -i -a /path/to/disk-image

Where else libvirt is used Virt-manager ; Boxes(gnome-shell integration) Virt-install (part of python-virtinst) Libguestfs and friends Oz – an automatic VM creator with minimal input Many cloud based projects – aeolusproject, openStack, openNebula etc

Try it out ! http://libvirt.org/ http://virt-tools.org/ http://fedoraproject.org/wiki/Getting_started_with_virt ualization http://aeolusproject.org/oz.html http://libguestfs.org/ http://kashyapc.fedorapeople.org/virt/create-guest-virt- install.bash

<kashyapc@fedoraproject.org> Thank You <kashyapc@fedoraproject.org> kashyap on irc.freenode.net http://kashyapc.fedorapeople.org/ http://kashyapc.wordpress.com/