Difference between revisions of "Virtualization"
From Hack Sphere Labs Wiki
(→Configure) |
(→Debian) |
||
Line 5: | Line 5: | ||
=Debian= | =Debian= | ||
+ | |||
+ | ==Install== | ||
+ | apt-get install xen-linux-system | ||
+ | apt-get install xen-qemu-dm-4.0 | ||
+ | dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen | ||
+ | update-grub | ||
+ | |||
+ | May want to do this eventually to limit dom0 ram: | ||
+ | /etc/default/grub | ||
+ | # Xen boot parameters for all Xen boots | ||
+ | GRUB_CMDLINE_XEN="dom0_mem=1024M" | ||
+ | then | ||
+ | update-grub | ||
+ | then edit | ||
+ | /etc/xen/xend-config.sxp | ||
+ | (dom0-min-mem 1024) | ||
+ | (enable-dom0-ballooning no) | ||
+ | |||
+ | |||
==Network Scripts== | ==Network Scripts== | ||
/etc/xen/scripts/network-bridge | /etc/xen/scripts/network-bridge |
Revision as of 15:55, 22 July 2012
- HVM is hardware and faster
- PV is Paravirtualization and usually slower
Contents
Notes
Debian
Install
apt-get install xen-linux-system apt-get install xen-qemu-dm-4.0 dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen update-grub
May want to do this eventually to limit dom0 ram:
/etc/default/grub # Xen boot parameters for all Xen boots GRUB_CMDLINE_XEN="dom0_mem=1024M"
then
update-grub
then edit
/etc/xen/xend-config.sxp (dom0-min-mem 1024) (enable-dom0-ballooning no)
Network Scripts
/etc/xen/scripts/network-bridge /etc/xen/scripts/vif-bridge
Notes
Configure
Debian wiki states that the network control scripts that come with Xen are going to be phased out eventually. Goes on to say that you should setup networking yourself.
aptitude install bridge-utils brctl addbr br0
- br0 could be anything like: whatever0
ip addr show
- Just to see interfaces
You now need to add interfaces to the bridge
brctl addif br0 eth0 eth1
To make the bridge perm you need to edit /etc/network/interfaces
/etc/network/interfaces
Fuck
- cloudstack.org/
- xcp
- http://www.xvpsource.org/
- openstack
Notes
HyperVM | Free and looks like a great product. Does not work with CentOS 6 because CentOS dropped Xen? |
- Xen XCP
- OpenVZ
- Virtuzzo
- ProxMox
- SolusVM
- vePortal
Most of these can integrate with a billing platform.
- lxcenter.org
kloxo