will this clever plan work?
(originally posted via gmame but never showed up)
I thought of two applications for Xen that could be amusing. First is as a base for a firewall. The idea would be that in order to upgrade to the next release of the firewall, you would create a new virtual machine image and disable (but not necessarily expire) the previous version.
Ideally these would be complete system images that one could just add to and replace as necessary. I do hope it's also possible for a linux system to change the xen configuration so it could boot to the new configuration.
Second I have another project would require running a Gentoo based system that can handle multiple virtual instances (maybe as many as 10 or 20) of a stock application configuration.
My fantasy is that I will be able to build a single disk image for all of the basic OS and application to be shared between multiple virtual machines. Update that single core image using Gentoo magic and be able to have separate partitions holding my application data.
in the test case, I'm running with a couple of SCSI disks for the OS and a raid 1 (79 GB real storage) for holding all the virtual system "disk images".
real? Fantasy? Roll up my sleeves and work really really hard, documenting as I go to make somebody else's life easier?
don't worry about disappointing me. I have already been disappointed with EVMS but only enough to make me go away for six months. ;-)
thank you for whatever information you give me.
---eric
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Quoted 4 lines
I thought of two applications for Xen that could be amusing. First is as a base for a firewall. The idea would be that in order to upgrade to the next release of the firewall, you would create a new virtual machine image and disable (but not necessarily expire) the previous version.
It should be possible to build something like that on top of Xen. It'd be quite cute too ;-)
Quoted 4 lines
Ideally these would be complete system images that one could just add to and replace as necessary. I do hope it's also possible for a linux system to change the xen configuration so it could boot to the new configuration.
One nice way to set this up would be:
* admin software in dom0 (accessed via console or dedicated NIC)
* a separate domain for the firewall software, controlling the NICs directly
* when you upgrade, kill the old domain and build a new one (this can be scripted and should be a very quick process with minimal downtime)
Quoted 4 lines
My fantasy is that I will be able to build a single disk image for all of the basic OS and application to be shared between multiple virtual machines. Update that single core image using Gentoo magic and be able to have separate partitions holding my application data.
Yes, you should be able to do that. If you're using VBDs (not NFS), the standard caveats for shared data apply:
* domains can't write to the shared data
* you can't update the shared data while the domains are running (otherwise you'll confuse them)
$0.02,
Mark
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Quoted 7 lines · Mark A. Williamson
Quoted 4 lines
I thought of two applications for Xen that could be amusing. First is as a base for a firewall. The idea would be that in order to upgrade to the next release of the firewall, you would create a new virtual machine image and disable (but not necessarily expire) the previous version.
It should be possible to build something like that on top of Xen. It'd be quite cute too ;-)
and if I could make it run out of flash memory, it would be the cat's ass[1]
Quoted 4 lines
One nice way to set this up would be:
* admin software in dom0 (accessed via console or dedicated NIC)
* a separate domain for the firewall software, controlling the NICs directly
* when you upgrade, kill the old domain and build a new one (this can be scripted and should be a very quick process with minimal downtime)
can the two domains communicate over a virtual NIC? the reason I ask is that since most of the control is by a Web interface, we would need to tickle the control system in dom0 or at least proxy to it.
Quoted 9 lines
Quoted 4 lines
My fantasy is that I will be able to build a single disk image for all of the basic OS and application to be shared between multiple virtual machines. Update that single core image using Gentoo magic and be able to have separate partitions holding my application data.
Yes, you should be able to do that. If you're using VBDs (not NFS), the standard caveats for shared data apply:
* domains can't write to the shared data
* you can't update the shared data while the domains are running (otherwise you'll confuse them)
I really need to learn how the whole storage metaphor is organized.. I don't know enough to ask the right questions yet. I probably should just set up a system with a real standard disk image and partitioning and start breaking it.
on a humorous aside, VBD used to refer to people who are so insecure in their manhood that they used proxies like expensive cars, trophy wives, etc. to show that they had a VBD.
---eric
[1] well, since our feline buddies are always waving their butts in our faces like it was the best thing on the face the planet, if it's good, it must be the cat's ass ;-)
Signature · 8 lines
President Nixon: Now more than ever ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Quoted 2 lines
and if I could make it run out of flash memory, it would be the cat's ass[1]
You can also pull tricks like running the firewall out of a ramdisk or using a CoW LVM VBD so that you can be sure that you can always roll its state back to a known config (e.g. after a hacking attempt).
Quoted 3 lines
can the two domains communicate over a virtual NIC? the reason I ask is that since most of the control is by a Web interface, we would need to tickle the control system in dom0 or at least proxy to it.
Oooh, are you using xensv (the pretty one)? Or the Xend web interface? How's it working for you? I think most people use the xm tool at the console or via SSH.
I'm not sure that you can currently get dom0 to use a virtual NIC but it's certainly technically possible with a little hacking. Using a dedicated management NIC to talk to dom0 would work right now and has the advantage that you could access it even if you exploded your firewall VM ;-)
Quoted 4 lines
I really need to learn how the whole storage metaphor is organized.. I don't know enough to ask the right questions yet. I probably should just set up a system with a real standard disk image and partitioning and start breaking it.
Linux generally doesn't expect to have filesystems modified underneath it, so (unless you're using a cluster filesystem like GFS, etc) Linux will get very confused if another domain modifies a filesystem it had been using. If two Linux domains both write to a filesystem then you're certainly going to hose it as well as confusing both kernels.
In general, sharing block devices should *only* be read-only by all clients unless you're using a cluster FS. Xend generally shouts at you if you try to do something it thinks is unsafe (unless you force the operation).
NFS has support for shared write access, with the server managing consistency of the metadata so you can share NFS filesystems safely.
Quoted 3 lines
on a humorous aside, VBD used to refer to people who are so insecure in their manhood that they used proxies like expensive cars, trophy wives, etc. to show that they had a VBD.
That interpretation of the acronym hadn't occurred to me before!
Cheers,
Mark
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click