organizing virtual machines
just want to make sure I'm understanding things correctly.
Every virtual machine must have effectively two partitions. The first being a root partition containing all of the system executables and configuration files as well as the usual /var, /tmp, etc. The second being storage for your application/user.
I imagine one could make a single partition to hold both of these sets of information but that's not the wisest choice. my preference would also be to put /var on the data partition.
Assuming the use of a standard OS distribution like Gentoo, it is my impression that each virtual machine would be updated independently just like they would be on separate physical hardware platforms.
Obviously, this seems like a terrible waste of space but given the current dogs breakfast known as /etc, I'm not sure that is another solution. I have a few ideas on how to fix this that may or may not pan out but not the hands (rsi).
anyway, just wanted to confirm the impressions from the documentation.
next task is mastering lvm2...
---eric
Signature · 12 lines
http://www.salon.com/books/review/2004/12/18/heloise/index.html The basis of Abelard's philosophy, which he taught to Heloise, was that logic had to be applied to religion in order to arrive at the truth. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 5 lines · Eric S. Johansson
just want to make sure I'm understanding things correctly.
Every virtual machine must have effectively two partitions. The first being a root partition containing all of the system executables and configuration files as well as the usual /var, /tmp, etc. The second being storage for your application/user.
I imagine one could make a single partition to hold both of these sets of information but that's not the wisest choice. my preference would also be to put /var on the data partition.
The best setup for me has been a shared, read only /usr, and a seperate "/" for each of my domains. I use ferdora3 as my base for these filesystems. The shared /usr is about 2 GB and the / is about 100 MB each. When creating domains for testing, I use lvm to carve up a second disk, 2GB logical volume for /usr, and the rest of the disk is divided into logical volumes equalling the number of domains I need. This has worked pretty well for me so far, and I have been able to create over 50 domains on one system. Now, I haven't exaclty done much with 50 domains yet, but they all do at least boot.
-Andrew Theurer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 1 line · Eric S. Johansson
Every virtual machine must have effectively two partitions. The first being a root partition containing all of the system executables and configuration files as well as the usual /var, /tmp, etc. The second being storage for your application/user.
This is one approach. Not necessarily a perfect solution.
Quoted 1 line
Obviously, this seems like a terrible waste of space but given the current dogs breakfast known as /etc, I'm not sure that is another solution. I have a few ideas on how to fix this that may or may not pan out but not the hands (rsi).
There are really two other solutions that I know of. Either some sort of content-addressable storage based file system (like Plan9's Venti) which would provide an optimum storage scenario (although at a performance/complexity cost) or some sort of Copy-On-Write filesystem or block device.
LVM snapshots has been suggested a COW mechanism. The most appealing to me is something like UnionFS (http://www.fsl.cs.sunysb.edu/project-unionfs.html) however it's rather unstable and I don't think FiST is going in the kernel anytime soon. UnionFS does COW on a file-access level. You have one read-only mount that's your root and if a file is changed, the read-only version is copied over to a read/write partition and that's used as the working copy.
A fantastic project for someone would be a from-scratch simplistic union-fs clone that could actually be integrated into the kernel. Linux used to have such a filesystem (IFS) but it became unmaintained and eventually removed from the kernel.
Regards,
Signature · 10 lines
Anthony Liguori [email protected] ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 5 lines
There are really two other solutions that I know of. Either some sort of content-addressable storage based file system (like Plan9's Venti) which would provide an optimum storage scenario (although at a performance/complexity cost) or some sort of Copy-On-Write filesystem or block device.
Someone in Cambridge was working on a CoW NFS server at one stage. I'm not sure what happened to it (although in any case, you wouldn't want it for IO intensive filesystems).
Quoted 1 line
LVM snapshots has been suggested a COW mechanism.
I think LVM snapshots have proved not to be as well suited as people would like.
I'm currently working on a shared-memory based filesystem for Xen virtual machines. It should (eventually) give very decent IO performance. At some stage, it would be nice to add filesystem-level functionality too.
Cheers,
Mark
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click