Virtualization in Fedora Virtualization in Fedora (KVM based) (KVM - - PowerPoint PPT Presentation

virtualization in fedora virtualization in fedora kvm
SMART_READER_LITE
LIVE PREVIEW

Virtualization in Fedora Virtualization in Fedora (KVM based) (KVM - - PowerPoint PPT Presentation

Virtualization in Fedora Virtualization in Fedora (KVM based) (KVM based) Kashyap Chamarthy Kashyap Chamarthy kashyapc@fedoraproject.org kashyapc@fedoraproject.org Outline 1/ Virtualization at a glance 2/ Overview of KVM based Virt 3/


slide-1
SLIDE 1

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

slide-2
SLIDE 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

slide-3
SLIDE 3

Virtualization at a glance

✔ Server Consolidation ✔ Greeeeeeeeeeeeeeeen Planet

✔ Data Center -- Space, Power, Cooling,

Maintenance cost savings

✔ Run multiple operating systems

slide-4
SLIDE 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..

slide-5
SLIDE 5

Virt Architecture

X86 Hardware(Intel/AMD)

hypervisor -- KVM[/dev/kvm] (Linux Kernel)

App1 App2 App4 App3 QEMU (I/O) Virtual Machine 2 Virtual Machine 1 Virsh, Virt-tools, Virt-manager

Regular Apps

Libvirt

slide-6
SLIDE 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

slide-7
SLIDE 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

slide-8
SLIDE 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

slide-9
SLIDE 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

slide-10
SLIDE 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/rele ases/15/Fedora/x86_64/os/

slide-11
SLIDE 11

Conclusion

  • Simple. Does not re-invent the wheel
  • Takes massive advantage of kernel features
  • Impressive performance
  • Terrific tooling
slide-12
SLIDE 12

Resources

✔ http://fedoraproject.org/wiki/Getting_started_wit

h_virtualization

✔ http://fedoraproject.org/wiki/How_to_use_qemu ✔ http://virt-tools.org/ ✔ http://kashyapc.wordpress.com/2011/08/18/una

ttended-guest-install-with-a-local-kickstart/

slide-13
SLIDE 13

?