wilas / vbkick

Tool for building and maintaining VirtualBox VMs described as a code in a single definition file.
Other
8 stars 5 forks source link

Add example showing custom partitioning #45

Closed gregelin closed 10 years ago

gregelin commented 10 years ago

US FISMA compliance calls for separate partitions for directories /tmp, /var, /var/log/, /var/log/audit, /home are on separate partitions.

See http://www.govready.org/cce/ssg/group/disk_partitioning/ for details.

wilas commented 10 years ago

Here is available simple kickstart file for CentOS6 with requested partitioning: http://wilas.pl/ks/centos-6.5-x86_64-noX-partitioning.cfg

To use above link you will need update your CentOS definition with e.g.: boot_cmd_sequence=("<Tab> text ks=http://wilas.pl/ks/centos-6.5-x86_64-noX-partitioning.cfg<Enter>") you may want as well disable a local webserver by adding to definition file: webserver_disabled=1

Please note that ks in RHEL6 derivatives doesn't support https.

Provided kickstart file is very limited - provides just a good partitioning for 10GB disks, for bigger disk, only /home partition will be extended. The size of swap (512MB) is as well fixed, what may not be necessary wanted for e.g. 8GB RAM machine.

Please note that I have limited time and resources :) and I'm not able to provide support for all possible configurations for all OSes :) Anyway I believe that many people may benefit from having good partitioning example for ks, so that I will try one day in June/July provide a better example which includes LVM (maybe RAID, LUKS as well) and %pre block to detect a size and number of disks.

gregelin commented 10 years ago

Thank you. Will try tonight. What books are on your Amazon wish list?

Greg Elin P: 917-304-3488 E: gregelin@gitmachines.com

Sent from my iPhone

On May 28, 2014, at 7:32 PM, Kamil Wilas notifications@github.com wrote:

Here is available simple kickstart file for CentOS6 with requested partitioning: http://wilas.pl/ks/centos-6.5-x86_64-noX-partitioning.cfg

To use above link you will need update your CentOS definition with e.g.: boot_cmd_sequence=(" text ks=http://wilas.pl/ks/centos-6.5-x86_64-noX-partitioning.cfg") you may want as well disable a local webserver by adding to definition file: webserver_disabled=1

Please note that ks in RHEL6 derivatives doesn't support https.

Provided kickstart file is very limited - provides just a good partitioning for 10GB disks, for bigger disk, only /home partition will be extended. The size of swap (512MB) is as well fixed, what may not be necessary wanted for e.g. 8GB RAM machine.

Please note that I have limited time and resources :) and I'm not able to provide support for all possible configurations for all OSes :) Anyway I believe that many people may benefit from having good partitioning example for ks, so that I will try one day in June/July provide a better example which includes LVM (maybe RAID, LUKS as well) and %pre block to detect a size and number of disks.

— Reply to this email directly or view it on GitHub.

wilas commented 10 years ago

At the moment I don't have Amazon wish list, so no worries :-) I'm glad that you are happy to test vbkick on Mac OS X and help me with the documentation for this project.

BTW. Here is the result:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       4.0G  1.2G  2.6G  31% /
tmpfs           246M     0  246M   0% /dev/shm
/dev/sda1       248M   57M  179M  25% /boot
/dev/sda9       1.4G   35M  1.3G   3% /home
/dev/sda8       248M   11M  226M   5% /tmp
/dev/sda3       2.0G  229M  1.7G  12% /var
/dev/sda5      1008M   35M  923M   4% /var/log
/dev/sda6       504M   17M  462M   4% /var/log/audit
gregelin commented 10 years ago

That is just terrific! Thanks!

Greg Elin P: 917-304-3488 E: gregelin@gitmachines.com

Sent from my iPhone

On May 28, 2014, at 7:55 PM, Kamil Wilas notifications@github.com wrote:

At the moment I don't have Amazon wish list, so no worries :-) I'm glad that you are happy to test vbkick on Mac OS X and help me with the documentation for this project.

BTW. Here is the result:

$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 4.0G 1.2G 2.6G 31% / tmpfs 246M 0 246M 0% /dev/shm /dev/sda1 248M 57M 179M 25% /boot /dev/sda9 1.4G 35M 1.3G 3% /home /dev/sda8 248M 11M 226M 5% /tmp /dev/sda3 2.0G 229M 1.7G 12% /var /dev/sda5 1008M 35M 923M 4% /var/log /dev/sda6 504M 17M 462M 4% /var/log/audit — Reply to this email directly or view it on GitHub.