1 2 | mount -o loop /Fedora-17-x86_64-DVD.iso /mnt/iso cobbler import --arch=x86_64 --path=/mnt/iso --name=Fedora17 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | cobbler distro report Name : Fedora17-x86_64 Architecture : x86_64 TFTP Boot Files : {} Breed : redhat Comment : Fetchable Files : {} Initrd : /var/www/cobbler/ks_mirror/Fedora17-x86_64/images/ pxeboot/initrd.img Kernel : /var/www/cobbler/ks_mirror/Fedora17-x86_64/images/ pxeboot/vmlinuz Kernel Options : {} Kernel Options (Post Install) : {} Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/ Fedora17-x86_64'} Management Classes : [] OS Version : generic26 Owners : ['admin'] Red Hat Management Key : <<inherit>> Red Hat Management Server : <<inherit>> Template Files : {} cobbler profile report Name : Fedora17-x86_64 TFTP Boot Files : {} Comment : DHCP Tag : default Distribution : Fedora17-x86_64 Enable gPXE? : 0 Enable PXE Menu? : 1 Fetchable Files : {} Kernel Options : {} Kernel Options (Post Install) : {} Kickstart : Kickstart Metadata : {} Management Classes : [] Management Parameters : <<inherit>> Name Servers : [] Name Servers Search Path : [] Owners : ['admin'] Parent Profile : Proxy : Red Hat Management Key : <<inherit>> Red Hat Management Server : <<inherit>> Repos : [] Server Override : <<inherit>> Template Files : {} Virt Auto Boot : 1 Virt Bridge : xenbr0 Virt CPUs : 1 Virt Disk Driver Type : raw Virt File Size(GB) : 5 Virt Path : Virt RAM (MB) : 512 Virt Type : qemu |
1 2 3 4 | cobbler repo add --arch=x86_64 --name=Flash-plugin \ --mirror=http://linuxdownload.adobe.com/linux/x86_64/ cobbler reposync cobbler repo report |
1 | cobbler profile edit --name=Fedora17-x86_64 --repos=Flash-plugin |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # System bootloader configuration bootloader --location=mbr # Partition clearing information clearpart --all --initlabel # Run the Setup Agent on first boot firstboot --disable # Activate X xconfig --startxonboot # Use network installation url --url=$tree # additional repostories get added here $yum_repo_stanza # Reboot after installation reboot # System keyboard keyboard us # System language lang en_US # System timezone timezone America/New_York # Root password rootpw --iscrypted $default_password_crypted # Install OS instead of upgrade install # Clear the Master Boot Record zerombr # Allow anaconda to partition the system as needed autopart %packages @base @base-x firefox flash-plugin $desktop_pkg_group %end %post # create a default user to log in X useradd desktop-user passwd -d desktop-user # adds the yum repositories to the installed system $yum_config_stanza # cobbler final steps $SNIPPET('kickstart_done') %end |
1 2 3 4 5 6 7 8 9 | cobbler profile add --name=Fedora17-xfce \ --ksmeta='desktop_pkg_group=@xfce-desktop' \ --kickstart=/var/lib/cobbler/kickstarts/example.ks \ --parent=Fedora17-x86_64 cobbler profile add --name=Fedora17-gnome \ --ksmeta='desktop_pkg_group=@gnome-desktop' \ --kickstart=/var/lib/cobbler/kickstarts/example.ks \ --parent=Fedora17-x86_64 cobbler profile report |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | cobbler profile getks --name=Fedora17-xfce # System bootloader configuration bootloader --location=mbr # Partition clearing information clearpart --all --initlabel # Run the Setup Agent on first boot firstboot --disable # Activate X xconfig --startxonboot # Use network installation url --url=http://192.168.122.1/cblr/links/Fedora17-x86_64 # additional repostories get added here repo --name=Flash-plugin --baseurl=http://192.168.122.1/cobbler/repo_mirror/Flash-plugin repo --name=source-1 --baseurl=http://192.168.122.1/cobbler/ks_mirror/Fedora17-x86_64 # Reboot after installation reboot # System keyboard keyboard us # System language lang en_US # System timezone timezone America/New_York # Root password rootpw --iscrypted $1$mF86/UHC$WvcIcX2t6crBz2onWxyac. # Install OS instead of upgrade install # Clear the Master Boot Record zerombr # Allow anaconda to partition the system as needed autopart %packages @base @base-x firefox flash-plugin @xfce-desktop %end %post # create a user we can use to log on X useradd desktop-user passwd -d desktop-user # adds the yum repositories to the installed system wget "http://192.168.122.1/cblr/svc/op/yum/profile/Fedora17-xfce" \ --output-document=/etc/yum.repos.d/cobbler-config.repo # cobbler final steps wget "http://192.168.122.1/cblr/svc/op/ks/profile/Fedora17-xfce" -O /root/cobbler.ks wget "http://192.168.122.1/cblr/svc/op/trig/mode/post/profile/Fedora17-xfce" -O /dev/null %end |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |