What parts of the /usr subdirectory are usually shared in common practice without introducing any system instabilities? My intent is to share share-able parts of the /usr subdirectory among VM's of the same configuration to conserve virtual HD disk space.
Plan A is to:
- Install OS: I haven't found an option during the installation process to point a
/usrsubdirectory to a remote NFS share so all/usrsubdirectories will have to be installed for now on the local drive. Will have to resize VM hard drive later. - Configure network settings
- Configure
/etc/fstabpoint to individual remote/usrshares.
Plan B is to:
- Attach target new VMHD to baseline VM
- Manually copy
/subdirectories from a baseline VM to new VMHD andmkdir /dev /proc, etc. - Install grub 2 on new hard disk, (
grub-install /dev/sdbin my case) - Detach new VMHD from baseline machine and attach it to new VM
- Boot new VM, do Plan A 3 and 4.
Are these methods good? Is there a more proper, better or quicker way?
I did Plan B, the new machine booted to grub but keeps trying to find the baseline host's HD which is being referred to by its UUID. I removed all mention of the baseline host's UUID from /boot/grub/grub.cfg on the new machine but grub still keeps trying to find it. I don't know of any other configuration files that grub uses at boot time besides the grub.cfg file that refer to hard disks.