X-Git-Url: https://git.deb.at/?p=debienna.git;a=blobdiff_plain;f=OpenVz%2Findex.mdwn;h=6f9761e0874bd06cd1b7761b15f9b1a9bb0b1762;hp=0a0d49724380a946f1eaab610d2f4950ea423cd6;hb=87911f707aa2809fe2713a3b2ab122f7b3b50716;hpb=bb58b440ee60e34e1c961060195598787087c131;ds=sidebyside diff --git a/OpenVz/index.mdwn b/OpenVz/index.mdwn index 0a0d497..6f9761e 100644 --- a/OpenVz/index.mdwn +++ b/OpenVz/index.mdwn @@ -1,40 +1,50 @@ -OpenVZ ist eine freie Lösung zur Virtualisierung von Servern unter GNU/Linux. Mehr zum Thema findest du unter XenVirtualisierung. OpenVZ ist der Kern von Parallels Virtuozzo und stellt eine Alternative zu Xen dar. - -== Host-system vorbereiten == -{{{ -redtux@phobos:~$ sudo aptitude install linux-image-2.6-openvz-amd64 -redtux@phobos:~$ sudo reboot -redtux@phobos:~$ uname -r -2.6.26-1-openvz-amd64 -redtux@phobos:~$ ps ax | grep vz - 2334 ? S 0:00 [vzmond] - 8074 pts/0 S+ 0:00 grep --color=auto vz -redtux@phobos:~$ sudo cp -v /etc/sysctl.conf /etc/sysctl.conf.bak -redtux@phobos:~$ sudo aptitude install debootstrap binutils-doc -redtux@phobos:~$ sudo mkdir -v /var/lib/vz/template/cache/debian -redtux@hyadum:~$ sudo debootstrap --arch amd64 lenny /var/lib/vz/template/cache/debian -redtux@hyadum:~$ sudo tar -czf /var/lib/vz/template/cache/debian.tar.gz /var/lib/vz/template/cache/debian/ -redtux@hyadum:~$ ls /var/lib/vz/template/cache/ -debian debian.tar.gz -}}} - -== VM-Container erstellen == -{{{ -export ID=100 -sudo vzctl create $ID -sudo vzctl set $ID --save --hostname myhostname.debienna.at -sudo vzctl set $ID --save --ipadd 10.0.0.123 -sudo vzctl set $ID --save --nameserver 10.0.0.1 -}}} - -== VLAN erstellen == -{{{ -redtux@phobos:~$ sudo ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 -redtux@phobos:~$ sudo aptitude install bridge-utils -redtux@phobos:~$ sudo brctl addbr vmbr0 -bla... -}}} -rest: http://ckdake.com/content/2008/vlans-in-openvz.html (unten) - -== Siehe auch == - * OpenVzResources \ No newline at end of file + +OpenVZ ist eine freie Lösung zur Virtualisierung von Servern unter GNU/Linux. Mehr zum Thema findest du unter [XenVirtualisierung](/Vortrag/XenVirtualisierung). OpenVZ ist der Kern von Parallels Virtuozzo und stellt eine Alternative zu Xen dar. + + +## Host-system vorbereiten + + +[[!format txt """ +redtux@phobos:~$ sudo aptitude install linux-image-2.6-openvz-amd64 +redtux@phobos:~$ sudo reboot +redtux@phobos:~$ uname -r +2.6.26-1-openvz-amd64 +redtux@phobos:~$ ps ax | grep vz + 2334 ? S 0:00 [vzmond] + 8074 pts/0 S+ 0:00 grep --color=auto vz +redtux@phobos:~$ sudo cp -v /etc/sysctl.conf /etc/sysctl.conf.bak +redtux@phobos:~$ sudo aptitude install debootstrap binutils-doc +redtux@phobos:~$ sudo mkdir -v /var/lib/vz/template/cache/debian +redtux@hyadum:~$ sudo debootstrap --arch amd64 lenny /var/lib/vz/template/cache/debian +redtux@hyadum:~$ sudo tar -czf /var/lib/vz/template/cache/debian.tar.gz /var/lib/vz/template/cache/debian/ +redtux@hyadum:~$ ls /var/lib/vz/template/cache/ +debian debian.tar.gz +"""]] + +## VM-Container erstellen + + +[[!format txt """ +export ID=100 +sudo vzctl create $ID +sudo vzctl set $ID --save --hostname myhostname.debienna.at +sudo vzctl set $ID --save --ipadd 10.0.0.123 +sudo vzctl set $ID --save --nameserver 10.0.0.1 +"""]] + +## VLAN erstellen + + +[[!format txt """ +redtux@phobos:~$ sudo ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 +redtux@phobos:~$ sudo aptitude install bridge-utils +redtux@phobos:~$ sudo brctl addbr vmbr0 +bla... +"""]] +rest: [[http://ckdake.com/content/2008/vlans-in-openvz.html|http://ckdake.com/content/2008/vlans-in-openvz.html]] (unten) + + +## Siehe auch + +* [[OpenVzResources|OpenVzResources]] \ No newline at end of file