特殊:Badtitle/NS100:KickstartCompatibility
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/KickstartCompatibility }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/af | • {{#if: UbuntuHelp:KickstartCompatibility|Afrikaans| [[::KickstartCompatibility/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ar | • {{#if: UbuntuHelp:KickstartCompatibility|العربية| [[::KickstartCompatibility/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/az | • {{#if: UbuntuHelp:KickstartCompatibility|azərbaycanca| [[::KickstartCompatibility/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/bcc | • {{#if: UbuntuHelp:KickstartCompatibility|جهلسری بلوچی| [[::KickstartCompatibility/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/bg | • {{#if: UbuntuHelp:KickstartCompatibility|български| [[::KickstartCompatibility/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/br | • {{#if: UbuntuHelp:KickstartCompatibility|brezhoneg| [[::KickstartCompatibility/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ca | • {{#if: UbuntuHelp:KickstartCompatibility|català| [[::KickstartCompatibility/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/cs | • {{#if: UbuntuHelp:KickstartCompatibility|čeština| [[::KickstartCompatibility/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/de | • {{#if: UbuntuHelp:KickstartCompatibility|Deutsch| [[::KickstartCompatibility/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/el | • {{#if: UbuntuHelp:KickstartCompatibility|Ελληνικά| [[::KickstartCompatibility/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/es | • {{#if: UbuntuHelp:KickstartCompatibility|español| [[::KickstartCompatibility/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/fa | • {{#if: UbuntuHelp:KickstartCompatibility|فارسی| [[::KickstartCompatibility/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/fi | • {{#if: UbuntuHelp:KickstartCompatibility|suomi| [[::KickstartCompatibility/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/fr | • {{#if: UbuntuHelp:KickstartCompatibility|français| [[::KickstartCompatibility/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/gu | • {{#if: UbuntuHelp:KickstartCompatibility|ગુજરાતી| [[::KickstartCompatibility/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/he | • {{#if: UbuntuHelp:KickstartCompatibility|עברית| [[::KickstartCompatibility/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/hu | • {{#if: UbuntuHelp:KickstartCompatibility|magyar| [[::KickstartCompatibility/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/id | • {{#if: UbuntuHelp:KickstartCompatibility|Bahasa Indonesia| [[::KickstartCompatibility/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/it | • {{#if: UbuntuHelp:KickstartCompatibility|italiano| [[::KickstartCompatibility/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ja | • {{#if: UbuntuHelp:KickstartCompatibility|日本語| [[::KickstartCompatibility/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ko | • {{#if: UbuntuHelp:KickstartCompatibility|한국어| [[::KickstartCompatibility/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ksh | • {{#if: UbuntuHelp:KickstartCompatibility|Ripoarisch| [[::KickstartCompatibility/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/mr | • {{#if: UbuntuHelp:KickstartCompatibility|मराठी| [[::KickstartCompatibility/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ms | • {{#if: UbuntuHelp:KickstartCompatibility|Bahasa Melayu| [[::KickstartCompatibility/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/nl | • {{#if: UbuntuHelp:KickstartCompatibility|Nederlands| [[::KickstartCompatibility/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/no | • {{#if: UbuntuHelp:KickstartCompatibility|norsk| [[::KickstartCompatibility/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/oc | • {{#if: UbuntuHelp:KickstartCompatibility|occitan| [[::KickstartCompatibility/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/pl | • {{#if: UbuntuHelp:KickstartCompatibility|polski| [[::KickstartCompatibility/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/pt | • {{#if: UbuntuHelp:KickstartCompatibility|português| [[::KickstartCompatibility/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ro | • {{#if: UbuntuHelp:KickstartCompatibility|română| [[::KickstartCompatibility/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/ru | • {{#if: UbuntuHelp:KickstartCompatibility|русский| [[::KickstartCompatibility/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/si | • {{#if: UbuntuHelp:KickstartCompatibility|සිංහල| [[::KickstartCompatibility/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/sq | • {{#if: UbuntuHelp:KickstartCompatibility|shqip| [[::KickstartCompatibility/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/sr | • {{#if: UbuntuHelp:KickstartCompatibility|српски / srpski| [[::KickstartCompatibility/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/sv | • {{#if: UbuntuHelp:KickstartCompatibility|svenska| [[::KickstartCompatibility/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/th | • {{#if: UbuntuHelp:KickstartCompatibility|ไทย| [[::KickstartCompatibility/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/tr | • {{#if: UbuntuHelp:KickstartCompatibility|Türkçe| [[::KickstartCompatibility/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/vi | • {{#if: UbuntuHelp:KickstartCompatibility|Tiếng Việt| [[::KickstartCompatibility/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/yue | • {{#if: UbuntuHelp:KickstartCompatibility|粵語| [[::KickstartCompatibility/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/zh | • {{#if: UbuntuHelp:KickstartCompatibility|中文| [[::KickstartCompatibility/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/zh-hans | • {{#if: UbuntuHelp:KickstartCompatibility|中文(简体)| [[::KickstartCompatibility/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:KickstartCompatibility | UbuntuHelp:KickstartCompatibility | {{#if: | :}}KickstartCompatibility}}/zh-hant | • {{#if: UbuntuHelp:KickstartCompatibility|中文(繁體)| [[::KickstartCompatibility/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:KickstartCompatibility|:KickstartCompatibility|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :KickstartCompatibility/zh | | {{#ifexist: KickstartCompatibility/zh | | {{#ifeq: {{#titleparts:KickstartCompatibility|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:KickstartCompatibility|1|-1|}} | zh | | }}
Kickstart compatibility is available as of Hoary. Contact ColinWatson for help, requests for improvement, etc. For documentation, see:
Hoary installation manual
Breezy installation manual
Dapper installation manual (TODO link? see installation-guide-i386 package)
Edgy installation manual
Ubuntu Kickstart documentation
What are Kickstart Installations?
Many system administrators would prefer to use an automated installation method to install Ubuntu on their machines. The preseeding feature of debian-installer answers this need, and is available in Hoary. However, some people want to deploy networks including other GNU/Linux distributions. Red Hat's Kickstart tool is a popular system here. The goal of the Kickstart compatibility project is to allow Kickstart to be used as a layer on top of debian-installer preseeding.
Using Kickstart, a system administrator can create a single file containing the answers to all the questions that would normally be asked during a typical Ubuntu installation. Kickstart files can be kept on a single server system, and read by individual computers during the installation. This installation method can support the use of a single kickstart file to install Ubuntu on multiple machines, making it ideal for network and system administrators.
Kickstart lets you automate most of an Ubuntu installation, including:
- Language selection
- Mouse configuration
- Keyboard selection
- Boot loader installation
- Disk partitioning
- Network configuration
- NIS, LDAP, Kerberos, Hesiod, and Samba authentication
- Firewall configuration
- Custom package selection
- X Window System configuration
How Do You Perform a Kickstart Installation?
Kickstart installations can be performed using a local CD-ROM, a local hard drive, or via NFS, FTP, or HTTP.
To use kickstart, you must:
- Create a kickstart file. Ubuntu includes a graphical utility for creating kickstart files, in the package 'system-config-kickstart'.
- Create a boot disk with the kickstart file or make the kickstart file available on the network.
- Start the kickstart installation. You specify a kickstart installation with the boot parameter 'ks=', ie 'linux ks=http://path/to/ks.cfg'.
Status update
This section is retained for historical purposes. See the installation manual links at the top of this page for current information.
Added here because it took much searching to retrieve this information! This is from a mailing list post by ColinWatson:
At the moment, (Kickstart compatibility is) in the unhappy state where the source is the best documentation; I intend to rectify this before the Hoary release. All the same, the system-config-kickstart package is in Hoary and can generate working Kickstart files for at least some configurations. You boot the installer with a "ks=<whatever>" kernel argument, the same as with Red Hat. "ks=http://<server>/<path>", "ks=ftp://<server>/<path>", and "ks=nfs:<server>:/<path>" all work and are convenient, although you can also put the Kickstart file on a CD or a floppy or whatever if you want.
Things I know of that you should avoid for the time being:
- Firewalling support. Only 'firewall --disabled' works for now.
- NFS installation. You can retrieve the Kickstart file over NFS using 'ks=nfs:<server>:/<path>', but booting with plain 'ks' doesn't work, nor does retrieving the base system over nfs.
- RAID/LVM partitioning isn't handled. There are some other bugs and unimplemented bits in partition handling too.
- No support for non-default authentication methods like NIS, LDAP, krb5, Hesiod, or Samba.
- No support for bootloader passwords.
In general at the moment it's liable to fall over and leave a note in /var/log/syslog if you try to do something unsupported. I intend to make this more robust soon.
Bug reports about Kickstart support would definitely be appreciated, the sooner the better. If there are particular unimplemented features you really need, I'd like to know about those too so that I can bump them up my priority list.
Notes
Post install
- On most of the guides about kickstart they say that, when you're working outside the chroot environment, that the mount point of your new Ubuntu installation is on /mnt/sysimage, but in Ubuntu it's /target. So when you want to remove for example /etc/dhcp.conf you need to run the following command: rm /target/etc/dhcp.conf.
- The post install script runs right before the reboot in the installation.
- The output of the postinstall script is shown in tty4.
Links
- http://fedora.redhat.com/projects/config-tools/redhat-config-kickstart.html
- http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/ch-ksconfig.html
- http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/ch-kickstart2.html
- http://www.linuxdocs.org/HOWTOs/KickStart-HOWTO.html
- http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-kickstart2-options.html
(the above link includes LVM syntax which isn't implemented in Ubuntu yet)
Ideas
1. Maybe it would be possible to create near zero questions (apart from maybe some minimal hardware specifics) installer cds, to have specifics system needs tailored for certain organizations, uses, etc, specifically targetting special needs per usage domain: Almost automatic installer cd for libraries, schools, webhosting servers, router machines and other network appliances as some first examples. -- SivanGreen
This is the *whole point* of Kickstart and other similar automatic installation methods. "Ideas" shouldn't be requests for documentation. :-) Note that automatic installation scripts almost always need to be customised somewhat for the local environment. -- ColinWatson
2. At a later stage, maybe create a special software piece that would be shipped with Ubuntu (or be part of the launchpad infrastructure) to allow people to use a user-friendly interface (Web??) to create their specific Kickstart Ubuntu installer cd , which would set up their specific system needs as per their organization, the system could possibley be also used for storage of such "System Templates" so whenever a sysadmin has finished installing a master copy of his desried configuration, and finished all adding extra packages and functionalities, he could store it in a "repository" of some sort, later to be used in data emergency situations, new hardware that is introduced into the organization etc. People who are willing to store their "System Templates" could be a helping hand to other clients of this system as they would be able to take other's templates as a basing ground and build on it. --[SivanGreen
system-config-kickstart is a good start here, and sysadmins generally have their own arrangements for storing Kickstart files. It remains to be seen how derived distributions (which I assume you're referring to by the Launchpad comment) will handle this; I suspect Kickstart will not really be appropriate for them, since it makes assumptions directed at fully automatic installations. -- ColinWatson
3. Is it possible to make kickstart set up it's NIS-configuration post packet-installation? As for now it hangs forever at package-configuration when auth --enablenis is selected because it tries to update the NIS-server when installing packages which adds additional users/groups. Also is it possible to make the %POST-script actually run after package-installation, now it runs after base-system is installed, but before package-installation. This makes it impossible to set up autofs in the %POST-section because autofs-installation (after reboot) will halt if /etc/auto.master etc. already exist. -- Leitet
Feature Requests
Request from an Ubuntu reseller: We really need LVM functionality ASAP, (and to a lesser extent an option to create an unused parition). We want to install LVM by default on the machines we sell, but setting up our partitioning scheme each time is a hastle. Also, we want our customers to be able to reinstall without going through about 15 steps to do the partitioning during install. We have added a link to the link section that shows Red Hat kickstart LVM syntax. -- Michael Pardee (groovix.com)