virtualization of linux based computers virtualization of
play

Virtualization of Linux based computers: Virtualization of Linux - PowerPoint PPT Presentation

Virtualization of Linux based computers: Virtualization of Linux based computers: the Linux- -VServer project VServer project the Linux Beno t des Ligneris, Ph. D. t des Ligneris, Ph. D. Beno Benoit.des.Ligneris@RevolutionLinux.com


  1. � plex86 � plex86 « (...) a very lightweight Virtual Machine (VM) for (...) a very lightweight Virtual Machine (VM) for « running Linux/x86» » running Linux/x86 http://plex86.sourceforge.net/ (Feb/2005) http://plex86.sourceforge.net/ (Feb/2005) ➔ Use the same Vmware logic but is restricted only to Use the same Vmware logic but is restricted only to ➔ Linux OS (native OS as well as guest OS) Linux OS (native OS as well as guest OS) ➔ It's needed to recompile the kernel on the guest OS It's needed to recompile the kernel on the guest OS ➔

  2. � plex86 � plex86 « (...) a very lightweight Virtual Machine (VM) for (...) a very lightweight Virtual Machine (VM) for « running Linux/x86» » running Linux/x86 http://plex86.sourceforge.net/ (Feb/2005) http://plex86.sourceforge.net/ (Feb/2005) ➔ Use the same Vmware logic but is restricted only to Use the same Vmware logic but is restricted only to ➔ Linux OS (native OS as well as guest OS) Linux OS (native OS as well as guest OS) ➔ It's needed to recompile the kernel on the guest OS It's needed to recompile the kernel on the guest OS ➔ ➔ Very slow at the time of this writing Very slow at the time of this writing ➔

  3. � Bochs � Bochs

  4. � Bochs � Bochs « Bochs is a highly portable open source IA Bochs is a highly portable open source IA- -32(x86) PC 32(x86) PC « emulator written in C++, that runs on most popular emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, platforms. It includes emulation of the Intel x86 CPU, common I/O devices and a custom BIOS. Currently, Bochs common I/O devices and a custom BIOS. Currently, Bochs can be compiled to emulate a 386, 486, Pentium, Pentium can be compiled to emulate a 386, 486, Pentium, Pentium Pro or AMD64 CPU including optional MMX, SSE, SSE2 Pro or AMD64 CPU including optional MMX, SSE, SSE2 and 3DNow instructions » » and 3DNow instructions http://bochs.sourceforge.net/ (Feb/2005) http://bochs.sourceforge.net/ (Feb/2005)

  5. � Bochs � Bochs ➔ The performance of bochs does not compare to Vmware The performance of bochs does not compare to Vmware ➔ or plex86 mainly because it emulates the CPU instead of or plex86 mainly because it emulates the CPU instead of using the native instruction set of the IA- -32 CPUs 32 CPUs using the native instruction set of the IA

  6. � Bochs � Bochs ➔ The performance of bochs does not compare to Vmware The performance of bochs does not compare to Vmware ➔ or plex86 mainly because it emulates the CPU instead of or plex86 mainly because it emulates the CPU instead of using the native instruction set of the IA- -32 CPUs 32 CPUs using the native instruction set of the IA ➔ There is no locking mechanism for the disks. There is no locking mechanism for the disks. ➔

  7. � The Linux � The Linux- -VServers VServers

  8. � The Linux � The Linux- -VServers VServers « Linux Linux- -VServer allows you to create virtual private VServer allows you to create virtual private « servers and security contexts which operate like a normal servers and security contexts which operate like a normal Linux server, but allow many independent servers to be run Linux server, but allow many independent servers to be run simultaneously in one box at full speed» » simultaneously in one box at full speed http://www.linux- -vserver.org (Feb/2005) vserver.org (Feb/2005) http://www.linux

  9. � The Linux � The Linux- -VServers VServers ➔ The Linux The Linux- -VServer project consists of a kernel patch and VServer project consists of a kernel patch and ➔ installation of userland tools installation of userland tools

  10. � The Linux � The Linux- -VServers VServers ➔ The Linux The Linux- -VServer project consists of a kernel patch and VServer project consists of a kernel patch and ➔ installation of userland tools installation of userland tools ➔ It manage resources dinamically: a single kernel is in It manage resources dinamically: a single kernel is in ➔ charge of allocating resources. charge of allocating resources.

  11. � The Linux � The Linux- -VServers VServers ➔ The Linux The Linux- -VServer project consists of a kernel patch and VServer project consists of a kernel patch and ➔ installation of userland tools installation of userland tools ➔ It manage resources dinamically: a single kernel is in It manage resources dinamically: a single kernel is in ➔ charge of allocating resources. charge of allocating resources. ➔ Priority, Memory, Disk space, CPU ticks can be managed Priority, Memory, Disk space, CPU ticks can be managed ➔ dynamically for a given vserver. dynamically for a given vserver.

  12. � The Linux � The Linux- -VServers VServers ➔ The Linux The Linux- -VServer project consists of a kernel patch and VServer project consists of a kernel patch and ➔ installation of userland tools installation of userland tools ➔ It manage resources dinamically: a single kernel is in It manage resources dinamically: a single kernel is in ➔ charge of allocating resources. charge of allocating resources. ➔ Priority, Memory, Disk space, CPU ticks can be managed Priority, Memory, Disk space, CPU ticks can be managed ➔ dynamically for a given vserver. dynamically for a given vserver. ➔ Because only one kernel access the hardware and Because only one kernel access the hardware and ➔ interrupts, it uses the advanced management mechanism interrupts, it uses the advanced management mechanism already present in the Linux Kernel already present in the Linux Kernel

  13. � The Linux � The Linux- -VServers VServers ➔ As a consequence, this is a very fast and lightweight As a consequence, this is a very fast and lightweight ➔ system as only the necessary services are run (ssh, http, system as only the necessary services are run (ssh, http, postfix, etc) and not a complete boot process. postfix, etc) and not a complete boot process.

  14. � The Linux � The Linux- -VServers VServers ➔ As a consequence, this is a very fast and lightweight As a consequence, this is a very fast and lightweight ➔ system as only the necessary services are run (ssh, http, system as only the necessary services are run (ssh, http, postfix, etc) and not a complete boot process. postfix, etc) and not a complete boot process. ➔ Additional security occurs inside a vserver; the Linux Additional security occurs inside a vserver; the Linux- - ➔ VServer use the POSIX capabilities to increase its VServer use the POSIX capabilities to increase its security. security.

  15. � The Linux � The Linux- -VServers VServers ➔ As a consequence, this is a very fast and lightweight As a consequence, this is a very fast and lightweight ➔ system as only the necessary services are run (ssh, http, system as only the necessary services are run (ssh, http, postfix, etc) and not a complete boot process. postfix, etc) and not a complete boot process. ➔ Additional security occurs inside a vserver; the Linux Additional security occurs inside a vserver; the Linux- - ➔ VServer use the POSIX capabilities to increase its VServer use the POSIX capabilities to increase its security. security. ➔ Network access, device access and many more Network access, device access and many more ➔ capabilities can be given or taken in order to have a more capabilities can be given or taken in order to have a more secure virtual server. secure virtual server.

  16. � User � User- -Mode Linux (UML) Mode Linux (UML)

  17. � User � User- -Mode Linux (UML) Mode Linux (UML) « User User- -Mode Linux is a safe, secure way of running Linux Mode Linux is a safe, secure way of running Linux « versions and Linux processes. Run buggy software, versions and Linux processes. Run buggy software, experiment with new Linux Kernel or distributions, and experiment with new Linux Kernel or distributions, and poke around in the internals of Linux, all without risking poke around in the internals of Linux, all without risking your main Linux setup» » your main Linux setup http://user-mode-linux.sourceforge.net/ (Feb/2005) (Feb/2005)

  18. � User � User- -Mode Linux (UML) Mode Linux (UML) « User User- -Mode Linux is a safe, secure way of running Linux Mode Linux is a safe, secure way of running Linux « versions and Linux processes. Run buggy software, versions and Linux processes. Run buggy software, experiment with new Linux Kernel or distributions, and experiment with new Linux Kernel or distributions, and poke around in the internals of Linux, all without risking poke around in the internals of Linux, all without risking your main Linux setup» » your main Linux setup http://user-mode-linux.sourceforge.net/ (Feb/2005) (Feb/2005) ➔ very slow performance because only one program can very slow performance because only one program can ➔ run in privileged mode: the host Kernel that support the run in privileged mode: the host Kernel that support the hosted ones hosted ones

  19. � User � User- -Mode Linux (UML) Mode Linux (UML) « User User- -Mode Linux is a safe, secure way of running Linux Mode Linux is a safe, secure way of running Linux « versions and Linux processes. Run buggy software, versions and Linux processes. Run buggy software, experiment with new Linux Kernel or distributions, and experiment with new Linux Kernel or distributions, and poke around in the internals of Linux, all without risking poke around in the internals of Linux, all without risking your main Linux setup» » your main Linux setup http://user-mode-linux.sourceforge.net/ (Feb/2005) (Feb/2005) ➔ very slow performance because only one program can very slow performance because only one program can ➔ run in privileged mode: the host Kernel that support the run in privileged mode: the host Kernel that support the hosted ones hosted ones ➔ the performance penalty is very important and a complete the performance penalty is very important and a complete ➔ boot process is necessary boot process is necessary

  20. � Xen � Xen

  21. � Xen � Xen « Xen is a virtual machine monitor for x86 that supports Xen is a virtual machine monitor for x86 that supports « execution of multiple guest operating systems with execution of multiple guest operating systems with unprecedented levels of performance and resource unprecedented levels of performance and resource isolation» » isolation http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ (Feb/2005) (Feb/2005)

  22. � Xen � Xen ➔ this is achieved by installing a king of this is achieved by installing a king of « «mega mega- -bios bios» » layer layer ➔ (Xen) that hides the physical hardware and provides (Xen) that hides the physical hardware and provides supported OS specific « «Xen drivers Xen drivers» » in order to interact in order to interact supported OS specific with the Xen abstraction layer. with the Xen abstraction layer.

  23. � Xen � Xen ➔ this is achieved by installing a king of this is achieved by installing a king of « «mega mega- -bios bios» » layer layer ➔ (Xen) that hides the physical hardware and provides (Xen) that hides the physical hardware and provides supported OS specific « «Xen drivers Xen drivers» » in order to interact in order to interact supported OS specific with the Xen abstraction layer. with the Xen abstraction layer. ➔ the virtual servers interact with Xen hardware (including the virtual servers interact with Xen hardware (including ➔ CPU) needs a specific kernel but applications can run CPU) needs a specific kernel but applications can run unchanged. unchanged.

  24. � Xen � Xen ➔ this is achieved by installing a king of this is achieved by installing a king of « «mega mega- -bios bios» » layer layer ➔ (Xen) that hides the physical hardware and provides (Xen) that hides the physical hardware and provides supported OS specific « «Xen drivers Xen drivers» » in order to interact in order to interact supported OS specific with the Xen abstraction layer. with the Xen abstraction layer. ➔ the virtual servers interact with Xen hardware (including the virtual servers interact with Xen hardware (including ➔ CPU) needs a specific kernel but applications can run CPU) needs a specific kernel but applications can run unchanged. unchanged. ➔ a lightweight technology, but demands complete systems a lightweight technology, but demands complete systems ➔ to be « «booted booted» » inside the Xen domains (virtual servers) inside the Xen domains (virtual servers) to be so resource consumption (RAM, CPU, processes, etc) is so resource consumption (RAM, CPU, processes, etc) is much more important than the Linux- -VServer project. VServer project. much more important than the Linux

  25. � QEMU � QEMU

  26. � QEMU � QEMU « QEMU is a generic and open source processor emulator QEMU is a generic and open source processor emulator « which achieves a good emulation speed by using dynamic which achieves a good emulation speed by using dynamic translation» » translation http://fabrice.bellard.free.fr/qemu/ (Feb/2005) (Feb/2005)

  27. � QEMU � QEMU ➔ emulates only the x86 family of processors emulates only the x86 family of processors ➔

  28. � QEMU � QEMU ➔ emulates only the x86 family of processors emulates only the x86 family of processors ➔ ➔ supports emulation of user code on other architecture supports emulation of user code on other architecture ➔ (ARM, SPARC, PowerPC) (ARM, SPARC, PowerPC)

  29. � QEMU � QEMU ➔ emulates only the x86 family of processors emulates only the x86 family of processors ➔ ➔ supports emulation of user code on other architecture supports emulation of user code on other architecture ➔ (ARM, SPARC, PowerPC) (ARM, SPARC, PowerPC) ➔ emulation, by default, very slow; a non emulation, by default, very slow; a non- -free layer free layer ➔ (QEMU accelerator) gives a much better performance on (QEMU accelerator) gives a much better performance on the same architecture (x86 emulated on x86) the same architecture (x86 emulated on x86)

  30. � QEMU � QEMU ➔ emulates only the x86 family of processors emulates only the x86 family of processors ➔ ➔ supports emulation of user code on other architecture supports emulation of user code on other architecture ➔ (ARM, SPARC, PowerPC) (ARM, SPARC, PowerPC) ➔ emulation, by default, very slow; a non emulation, by default, very slow; a non- -free layer free layer ➔ (QEMU accelerator) gives a much better performance on (QEMU accelerator) gives a much better performance on the same architecture (x86 emulated on x86) the same architecture (x86 emulated on x86) ➔ a young and still very experimental project a young and still very experimental project ➔

  31. usage Classification of problems: usage Classification of problems: criteria criteria

  32. usage Classification of problems: usage Classification of problems: criteria criteria We present in the following several needs for We present in the following several needs for computer virtualization and will use those computer virtualization and will use those criteria to compare the selected technology criteria to compare the selected technology

  33. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS

  34. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging

  35. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging � OS installation process � OS installation process

  36. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging � OS installation process � OS installation process � Resources consumption � Resources consumption

  37. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging � OS installation process � OS installation process � Resources consumption � Resources consumption � Dynamical allocation of resources � Dynamical allocation of resources

  38. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging � OS installation process � OS installation process � Resources consumption � Resources consumption � Dynamical allocation of resources � Dynamical allocation of resources � Multi architecture � Multi architecture

  39. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging � OS installation process � OS installation process � Resources consumption � Resources consumption � Dynamical allocation of resources � Dynamical allocation of resources � Multi architecture � Multi architecture � Maturity � Maturity

  40. usage usage Classification of problems: Classification of problems: criteria criteria � Multi OS � Multi OS � Kernel development / debugging � Kernel development / debugging � OS installation process � OS installation process � Resources consumption � Resources consumption � Dynamical allocation of resources � Dynamical allocation of resources � Multi architecture � Multi architecture � Maturity � Maturity � Security � Security

  41. � Multi OS � Multi OS

  42. � Multi OS � Multi OS ➔ Some virtualization technology only support a type of OS Some virtualization technology only support a type of OS ➔ (Linux, Windows, FreeBSD, etc) while others are more (Linux, Windows, FreeBSD, etc) while others are more generic and can run Linux on Windows, Windows on generic and can run Linux on Windows, Windows on Linux, etc. Linux, etc.

  43. � Multi OS � Multi OS ➔ Some virtualization technology only support a type of OS Some virtualization technology only support a type of OS ➔ (Linux, Windows, FreeBSD, etc) while others are more (Linux, Windows, FreeBSD, etc) while others are more generic and can run Linux on Windows, Windows on generic and can run Linux on Windows, Windows on Linux, etc. Linux, etc. ➔ Multi OS virtualization systems include VMware and Multi OS virtualization systems include VMware and ➔ Xen. Xen.

  44. � Kernel development / debugging � Kernel development / debugging

  45. � Kernel development / debugging � Kernel development / debugging ➔ Some users need to develop the kernel. This criteria will Some users need to develop the kernel. This criteria will ➔ define if, yes or no, those tasks can be achieved with the define if, yes or no, those tasks can be achieved with the chosen virtualization technique chosen virtualization technique

  46. � Kernel development / debugging � Kernel development / debugging ➔ Some users need to develop the kernel. This criteria will Some users need to develop the kernel. This criteria will ➔ define if, yes or no, those tasks can be achieved with the define if, yes or no, those tasks can be achieved with the chosen virtualization technique chosen virtualization technique ➔ UML has been designed for Kernel Hacking and UML has been designed for Kernel Hacking and ➔ development development

  47. � OS installation process � OS installation process

  48. � OS installation process � OS installation process ➔ Some users need to reproduce the complete installation Some users need to reproduce the complete installation ➔ of a system (install CD, network boot, hard disk of a system (install CD, network boot, hard disk partitioning, etc). partitioning, etc).

  49. � OS installation process � OS installation process ➔ Some users need to reproduce the complete installation Some users need to reproduce the complete installation ➔ of a system (install CD, network boot, hard disk of a system (install CD, network boot, hard disk partitioning, etc). partitioning, etc). ➔ VMware supports perfectly the simulation of the VMware supports perfectly the simulation of the ➔ installation process for the supported Linux distributions installation process for the supported Linux distributions

  50. � Resources consumption � Resources consumption

  51. � Resources consumption � Resources consumption ➔ This criteria will define how much resources a virtual This criteria will define how much resources a virtual ➔ computer need to use in order to be fully functional. computer need to use in order to be fully functional.

  52. � Resources consumption � Resources consumption ➔ This criteria will define how much resources a virtual This criteria will define how much resources a virtual ➔ computer need to use in order to be fully functional. computer need to use in order to be fully functional. ➔ For each virtualization technique, the approximative For each virtualization technique, the approximative ➔ resource consumption of a fully functional virtual server resource consumption of a fully functional virtual server has been estimated. has been estimated.

  53. � Resources consumption � Resources consumption ➔ This criteria will define how much resources a virtual This criteria will define how much resources a virtual ➔ computer need to use in order to be fully functional. computer need to use in order to be fully functional. ➔ For each virtualization technique, the approximative For each virtualization technique, the approximative ➔ resource consumption of a fully functional virtual server resource consumption of a fully functional virtual server has been estimated. has been estimated. ➔ VMware needs a lot of resources, as does UML, then VMware needs a lot of resources, as does UML, then ➔ Xen and finally Linux- -VServers. VServers. Xen and finally Linux

  54. � Dynamical allocation of resources � Dynamical allocation of resources

  55. � Dynamical allocation of resources � Dynamical allocation of resources ➔ Some users need to dynamically change the resources Some users need to dynamically change the resources ➔ used by a virtual computer. Some virtualization programs used by a virtual computer. Some virtualization programs allow the user to live change the resources available for allow the user to live change the resources available for the virtual server while others can not do this. the virtual server while others can not do this.

  56. � Dynamical allocation of resources � Dynamical allocation of resources ➔ Some users need to dynamically change the resources Some users need to dynamically change the resources ➔ used by a virtual computer. Some virtualization programs used by a virtual computer. Some virtualization programs allow the user to live change the resources available for allow the user to live change the resources available for the virtual server while others can not do this. the virtual server while others can not do this. ➔ UML, Xen and Linux UML, Xen and Linux- -VServers can dynamically alocate VServers can dynamically alocate ➔ resources an ensure QoS criteria between the virtual resources an ensure QoS criteria between the virtual servers and the host system. servers and the host system.

  57. � Multi architecture � Multi architecture

  58. � Multi architecture � Multi architecture ➔ Some virtualization technology only support a type of Some virtualization technology only support a type of ➔ architecture, x86 for the most part. architecture, x86 for the most part.

  59. � Multi architecture � Multi architecture ➔ Some virtualization technology only support a type of Some virtualization technology only support a type of ➔ architecture, x86 for the most part. architecture, x86 for the most part. ➔ UML and Linux UML and Linux- -VServers support several architectures. VServers support several architectures. ➔

  60. � Maturity � Maturity

  61. � Maturity � Maturity ➔ This is a This is a relative relative indicator of the maturity of the indicator of the maturity of the ➔ technology. technology.

  62. � Maturity � Maturity ➔ This is a This is a relative relative indicator of the maturity of the indicator of the maturity of the ➔ technology. technology. ➔ VMware is very mature (but not well supported with 2.6 VMware is very mature (but not well supported with 2.6 ➔ kernel and more experimental kernels) kernel and more experimental kernels)

  63. � Maturity � Maturity ➔ This is a This is a relative relative indicator of the maturity of the indicator of the maturity of the ➔ technology. technology. ➔ VMware is very mature (but not well supported with 2.6 VMware is very mature (but not well supported with 2.6 ➔ kernel and more experimental kernels) kernel and more experimental kernels) ➔ UML and Linux UML and Linux- -VServer are production ready VServer are production ready ➔

  64. � Maturity � Maturity ➔ This is a This is a relative relative indicator of the maturity of the indicator of the maturity of the ➔ technology. technology. ➔ VMware is very mature (but not well supported with 2.6 VMware is very mature (but not well supported with 2.6 ➔ kernel and more experimental kernels) kernel and more experimental kernels) ➔ UML and Linux UML and Linux- -VServer are production ready VServer are production ready ➔ ➔ Xen is more experimental Xen is more experimental ➔

  65. � Security � Security

  66. � Security � Security ➔ While all virtualization techniques increases security While all virtualization techniques increases security ➔ by allowing system administrators to cleanly by allowing system administrators to cleanly separate services on different virtual servers, some separate services on different virtual servers, some of them offers additional protections with rules/roles of them offers additional protections with rules/roles and additional security models that can make a and additional security models that can make a virtual server more robust than a real one. virtual server more robust than a real one.

  67. � Security � Security ➔ Linux Linux- -VServer share some code with the guest OS VServer share some code with the guest OS ➔ and this can be considered as a vulnerability. and this can be considered as a vulnerability.

  68. � Security � Security ➔ Linux Linux- -VServer share some code with the guest OS VServer share some code with the guest OS ➔ and this can be considered as a vulnerability. and this can be considered as a vulnerability. ➔ We did not consider this as a vulnerability because We did not consider this as a vulnerability because ➔ we consider that if a security problem occurs in the we consider that if a security problem occurs in the kernel in a primitive method used by a Linux- - kernel in a primitive method used by a Linux VServer (chroot, chcontext, chbind, etc) then every VServer (chroot, chcontext, chbind, etc) then every Linux server (vserver or not) has this problem and Linux server (vserver or not) has this problem and has to be upgraded. has to be upgraded.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend