0% found this document useful (0 votes)
59 views

How To Implement KVM

The document discusses how to implement KVM virtualization. It begins with an introduction to virtualization and KVM. It then has sections on installing KVM and its dependencies, how to install and control virtual machines. It concludes that KVM is easy to set up and allows using more resources than otherwise possible.

Uploaded by

姜飞
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

How To Implement KVM

The document discusses how to implement KVM virtualization. It begins with an introduction to virtualization and KVM. It then has sections on installing KVM and its dependencies, how to install and control virtual machines. It concludes that KVM is easy to set up and allows using more resources than otherwise possible.

Uploaded by

姜飞
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

How to

implement
KVM

Toshaan
Bharvani -
VanTosh
bvba
How to implement KVM
Theory Tutorial
Introduction
KVM Toshaan Bharvani - VanTosh bvba
Tutorial
<[email protected]>
KVM Tools
Building
VM’s

Conclusion

The End

Linux Open Administration Days


10 April 2010

How to implement KVM Toshaan Bharvani - VanTosh bvba 1 / 18


How to
implement $ whoami
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial Toshaan Bharvani


KVM Tools
Building Currently working at VanTosh
VM’s

Conclusion
Has been involved with CentOS
The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 2 / 18


How to
implement Table of contents
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory 1 Theory
Introduction Introduction
KVM
KVM
Tutorial
KVM Tools
Building
VM’s 2 Tutorial
Conclusion
KVM Tools
The End
Building VM’s

3 Conclusion

How to implement KVM Toshaan Bharvani - VanTosh bvba 3 / 18


How to
implement
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM
1
Tutorial
KVM Tools
Building Theory
VM’s

Conclusion

The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 4 / 18


How to
implement What is virtualization
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial Running multiple (different) operating systems on 1


KVM Tools physical machine
Building
VM’s Separation of operating system and the underlying
Conclusion hardware
The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 5 / 18


How to
implement Types of virtualization
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
Full virtualization (IBM’s CP/CMS, VirtualPC, VirtualBox,
KVM Qemu)
Tutorial
Hardware-assisted virtualization (VMware, Xen, KVM)
KVM Tools
Building Partial virtualization
VM’s

Conclusion Paravirtualization (Xen, UML)


The End Operating system-level virtualization (virtual hosting,
chroot jail + resource management)
Emulation

How to implement KVM Toshaan Bharvani - VanTosh bvba 6 / 18


How to
implement Why use virtualization
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial
Consolidation of machines
KVM Tools
Separating Production / Staging / Development platforms
Building
VM’s
Prevent Hardware Lock-in
Conclusion
Greener IT (saving idle cycles)
The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 7 / 18


How to
implement What does & doesn’t change?
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM
The system essentially stays the same.
Tutorial
KVM Tools Security remains an important factor (yes you need to
Building
VM’s
secure a VM)
Conclusion Backups are still required
The End Networking moves closes

How to implement KVM Toshaan Bharvani - VanTosh bvba 8 / 18


How to
implement What is KVM?
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM Full virtualization for Linux
Tutorial Loadable kernel module (kvm.ko, kvm-intel.ko or
KVM Tools
Building
kvm-amd.ko)
VM’s
Can run multiple virtual machines, unmodified Linux or
Conclusion
Windows images.
The End
Virtual machine has private virtualized hardware

How to implement KVM Toshaan Bharvani - VanTosh bvba 9 / 18


How to
implement How does KVM work?
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial
KVM Tools
Building
VM’s

Conclusion

The End

Figure: KVM visual representation (Pascal Gienger)

How to implement KVM Toshaan Bharvani - VanTosh bvba 10 / 18


How to
implement
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM
2
Tutorial
KVM Tools
Building Tutorial
VM’s

Conclusion

The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 11 / 18


How to
implement Installation & Dependencies
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial
KVM Tools
Building
VM’s

Conclusion

The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 12 / 18


How to
implement How to install a VM
KVM

Toshaan virt-install
Bharvani -
VanTosh –hvm
bvba
–accelerate
Theory –name=LOADWinXPPro
Introduction
–ram=2048
KVM

Tutorial
–vcpus=2
KVM Tools –check-cpu
Building
VM’s
–arch=x866 4
Conclusion
–os-type=windows
The End –os-variant=winxp
–sound
–cdrom=/drives/mrepodrive/images/oemmswinxpprosp3.iso
–file=/drives/virtualdrive/mswinxppro.qcow2
–file-size=36
–vnc
–sdl
–keymap=be1-latin
How to implement KVM Toshaan Bharvani - VanTosh bvba 13 / 18
How to
implement Controlling the VM
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM virsh start <domain>
Tutorial virsh destroy <domain>
KVM Tools
Building virsh create </etc/libvirt/qemu/domainname.xml>
VM’s

Conclusion
virsh list
The End virsh net-start
virsh net-list

How to implement KVM Toshaan Bharvani - VanTosh bvba 14 / 18


How to
implement What evil system should we build?
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial
KVM Tools
Building Microsoft Windows
VM’s

Conclusion

The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 15 / 18


How to
implement
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM
3
Tutorial
KVM Tools
Building Conclusion
VM’s

Conclusion

The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 16 / 18


How to
implement Conclusion
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial
Easy to setup
KVM Tools Remain focussed
Building
VM’s Every VM should be treated as another OS
Conclusion
Use more resources you never could
The End

How to implement KVM Toshaan Bharvani - VanTosh bvba 17 / 18


How to
implement The End
KVM

Toshaan
Bharvani -
VanTosh
bvba

Theory
Introduction
KVM

Tutorial Thank You


KVM Tools
Building
VM’s

Conclusion

The End

Toshaan Bharvani - VanTosh bvba <[email protected]>

http://www.vantosh.com/publications

Made with Beamer LATEX


a TEXbased Presentation program

How to implement KVM Toshaan Bharvani - VanTosh bvba 18 / 18

You might also like