xen rocks
Par jd le dimanche, août 7 2005, 16:46 - Xen - Lien permanent
I decided that I had enough of having plenty of computers running at home to run a gateway, a workstation, a server, a dev(a)station, etc...
I gave a try to some virtualizations things like vserver. This one does not do what I want, because it's only a kernel patched with a context support.
This is like a powerful chroot() system, but for examples, this is not very good for doing routing stuff, because you have only one kernel and all IP adresses are bound to your real interfaces.
So I tried Xen, and it is very very nice. I can run as many computers (and so, kernel) as I want and they act like real computers, not a computer with chrooted services (like vserver). You can also put your virtual node on the CPU you want, distribute your RAM as you want and emulate the number of NIC you want to. I like that.
Network access between kernel are made using Ethernet bridges, which is very nicer than the vserver method.
You can also run NetBSD hosts in your XenLinux host. I think I will give it a try too, probably to emulate my gateway.
This is more powerful than UML too.
In consequence, I plan to replace my current 3 machines with a big one (2.4 GHz/1 GB RAM), emulating 3 nodes: a gateway/firewall, a developpement station and a server for my local services.
Commentaires
That's very interesting. I'd like to try Xen too. I think it could be very useful. What documentation did you use?
Best regards, Faheem.
I mainly used the documention provided by Xen itself.
I did not found any "complete" documentation, mainly because many people simply use the tarball provided by Xen, and run ./install.sh
I use the Xen debian package and I managed to recompile my xen0 and xenU kernels. I recognized that it took me 3 hours to understand how to do this, mainly because the 'make menuconfig ARCH=xen' is a little tricky sometimes.
But it works, and I just succeeded in install NetBSD 2.0.
Intéressant, intéressant, surtout que je galère depuis 2 jours pour faire tourner mon domU sarge !!! pas moyen de le faire démarrer... j'ai essayé avec un LVM puis ensuite un fichier img... et maintenant j'ai un kernel panic je suis très très embêté, mais je continue à creuser
en tout cas, si jamais tu te sens de faire un petit 'howto' sur le sujet... n'hésite pas ! (même si y'en a déjà plusieurs qui existent concernant debian et xen)
eric:
I will probably write an HOWTO next month due to popular request.
Meaning while, I managed to put all my home network (3 boxes) in one box with Sarge and NetBSD domU, with several bridges.
Attention toutefois à ne pas trop confondre. Vserver n'est pas une solution de virtualisation, mais est complètement différent des chroot. chroot est un appel système qui donne donc une nouvelle racine à ton système (comme peut également le faire pivot_root, enfin, le concept est ***quasiment*** le même - pivot_root étant plus utilisé dans des initrd par exemple pour changer la racine après le chargement de modules, très utile sur des distributions où tout est en module, même le module kernel prenant en compte l'ext3).
Vserver est une véritable solution pour séparer des machines : tu as ta propre machine, etc ... mais en revanche, tu n'as qu'un seul kernel. Xen est différent, il permet justement d'avoir une solution complète de virtualisation. On le voit tout connement : un #halt# sur un xen arretera le domaine X, alors qu'avec vserver, ça arretera simplement la machine.
Bref, ce sont des approches complètement différentes. Xen a ses points forts (virtualisations, noyau propre, etc ...), mais peut paraitre parfois porki (scripts pythons, communication inter-domain), alors que vserver est un meta-patch kernel qui permet de lancer plusieurs ***instances*** de ta machine courante.
Cela dit, Xen est très bien
Ah si, un point noir, il ne me semble pas que ça fonctionne sous PowerPC. Et ça, çaimal (tm).
PS : L'apport de mon post ? Il n'y en a pas beacoup, comme dans la majorité de mes interventions, seulement, j'ai juste l'impression que tu voyais xen comme vserver alors que finalement, ce sont des choses completement différentes.
> I will probably write an HOWTO next month due to popular request.
That would be super cool. As you have already observed, there is a paucity of "complete" documentation, especially by people using the Debian packages
Fil des commentaires de ce billet