Presentation is loading. Please wait.

Presentation is loading. Please wait.

Virtualization in Fedora (KVM based) Kashyap Chamarthy Virtualization in Fedora (KVM based) Kashyap Chamarthy

Similar presentations


Presentation on theme: "Virtualization in Fedora (KVM based) Kashyap Chamarthy Virtualization in Fedora (KVM based) Kashyap Chamarthy"— Presentation transcript:

1 Virtualization in Fedora (KVM based) Kashyap Chamarthy kashyapc@fedoraproject.org Virtualization in Fedora (KVM based) Kashyap Chamarthy kashyapc@fedoraproject.org

2 Outline 1 Virtualization at a glance 2 Overview of KVM based Virt 3 Virtualization Architecture 4 Enabling KVM on a linux machine 5 Libvirt 6 Virt Tools 7 Illustration of virt-tools 8 Conclusion

3 Virtualization at a glance ✔ Server Consolidation ✔ Greeeeeeeeeeeeeeeen Planet ✔ Data Center -- Space, Power, Cooling, Maintenance cost savings ✔ Run multiple operating systems

4 Overview of KVM ✔ Hardware-Assisted ✔ CPU Extensions – Intel VMX ; AMD SVM ✔ Turns linux kernel into hypervisor ✔ Re-uses existing kernel features : ✔ CPU scheduling ✔ Memory, Power Management ✔ Device Drivers, Timer handling, plenty more..

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

6 Enabling KVM on Linux ✔ Grep for Virt extension support ✔ # egrep -i 'svm|vmx' /proc/cpuinfo ✔ Check the kernel modules are loaded ✔ # lsmod | grep kvm ✔ Ensure kvm device node is present ✔ # file /dev/kvm

7 Libvirt ✔ Excellent for managing single nodes. (supports a variety of hypervisors) ✔ XML format to define guests ✔ start; stop; shutdown; reboot; save; restore; sanpshot -- a guest ✔ Secure(svirt/selinux) ; Manage Networking, Storage, etc

8 Virt Tools ✔ Virt-manager(Brilliant graphical tool) ✔ Virt-install (python-virtinst) ✔ Virsh (Virt Shell for managing guest life cycle) ✔ Libugestfs/guestfish(Disk Manipulation) ✔ Virt-cat, Virt-ls, Virt-df, Virt-dmesg, and a gazillion more

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

10 Virt-install Illustration2 ● Guest install via shell $ virt-install –connect=qemu:///system \ --name f15-vm2 \ --extra-args=”console=tty0 console=ttyS0” \ --disk /var/lib/libvirt/images/f15-vm2.img, size=5 \ --ram 1024 \ --vcpus=2 \ --check-cpu \ --hvm \ --location \ http://download.fedora.redhat.com/pub/fedora/linux/releases/1 5/Fedora/x86_64/os/

11 Conclusion ● Simple. Does not re-invent the wheel ● Takes massive advantage of kernel features ● Impressive performance ● Terrific tooling

12 Resources ✔ http://fedoraproject.org/wiki/Getting_started_with_v irtualization ✔ http://fedoraproject.org/wiki/How_to_use_qemu ✔ http://virt-tools.org/ ✔ http://kashyapc.wordpress.com/2011/08/18/unattend ed-guest-install-with-a-local-kickstart/

13 ??


Download ppt "Virtualization in Fedora (KVM based) Kashyap Chamarthy Virtualization in Fedora (KVM based) Kashyap Chamarthy"

Similar presentations


Ads by Google