特殊:Badtitle/NS100:KickstartCompatibility:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的9个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/KickstartCompatibility}}
{{From|https://help.ubuntu.com/community/KickstartCompatibility}}
{{Languages|UbuntuHelp:KickstartCompatibility}}
{{Languages|UbuntuHelp:KickstartCompatibility}}
 
<<Include(Tag/ContentCleanup)>>
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png  Kickstart compatibility is available as of Hoary. Contact [http://wiki.ubuntu.com/ColinWatson ColinWatson] for help, requests for improvement, etc. For documentation, see:
<<Include(Tag/StyleCleanup)>>
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png  Kickstart compatibility is available as of Hoary. Contact [[UbuntuWiki:ColinWatson|ColinWatson]] for help, requests for improvement, etc.
[http://archive.ubuntu.com/ubuntu/dists/hoary/main/installer-i386/current/doc/manual/en/ch04s06.html#id2531034 Hoary installation manual] <br>
[http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/doc/manual/en/ch04s06.html#id2519042 Breezy installation manual] <br>
Dapper installation manual (TODO link? see installation-guide-i386 package) <br>
[http://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/automatic-install.html#kickstart Edgy installation manual]
 
== Ubuntu Kickstart documentation ==
== Ubuntu Kickstart documentation ==
=== What are Kickstart Installations? ===
=== 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.
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.
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:
Kickstart lets you automate most of an Ubuntu installation, including:
* Language selection
* Language selection
* Mouse configuration
* Mouse configuration
第29行: 第19行:
* Custom package selection
* Custom package selection
* X Window System configuration
* X Window System configuration
=== How Do You Perform a Kickstart Installation? ===
=== 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.
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:
To use kickstart, you must:
 
<ol><li>Create a kickstart file. Ubuntu includes a graphical utility for creating kickstart files, in the package 'system-config-kickstart'.
* Create a kickstart file. Ubuntu includes a graphical utility for creating kickstart files, in the package 'system-config-kickstart'.
</li><li>Create a boot disk with the kickstart file or make the kickstart file available on the network.
* Create a boot disk with the kickstart file or make the kickstart file available on the network.
</li><li>Start the kickstart installation.  You specify a kickstart installation with the boot parameter 'ks=', ie 'linux ks=http://path/to/ks.cfg'.</li></ol>
* Start the kickstart installation.  You specify a kickstart installation with the boot parameter 'ks=', ie 'linux ks=http://path/to/ks.cfg'.


==== Using a proxy / cache during the Kickstart ====
==== Using a proxy / cache during the Kickstart ====
For HTTP proxy during the initial installation, add the variable 'http_proxy=&#104;ttp://''proxyhost'':''port''' to the file ''isolinux/isolinux.cfg'' with the parameter ''append'' e.g.
For HTTP proxy during the initial installation, add the variable 'http_proxy=&#104;ttp://''proxyhost'':''port''' to the file ''isolinux/isolinux.cfg'' with the parameter ''append'' e.g.
<code><nowiki> append http_proxy="http://192.168.0.11:8080" ks=cdrom:/ks.cfg file=/cdrom/preseed/kubuntu.seed initrd=/install/initrd.gz quiet --</nowiki></code>
<code><nowiki> append http_proxy="http://192.168.0.11:8080" ks=cdrom:/ks.cfg file=/cdrom/preseed/kubuntu.seed initrd=/install/initrd.gz quiet --</nowiki></code>
=== Status update ===
=== Status update ===
'''This section is retained for historical purposes. See the installation manual links at the top of this page for current information.'''
'''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:
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.
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:
Things I know of that you should avoid for the time being:
* Firewalling support. Only 'firewall --disabled' works for now.
* 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.
* 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.
* 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 non-default authentication methods like NIS, LDAP, krb5, Hesiod, or Samba.
* No support for bootloader passwords.
* No support for bootloader passwords.
UPDATE: bootloader passwords appear to work with 7.10 in my testing
UPDATE: bootloader passwords appear to work with 7.10 in my testing
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.
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.
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 ===
=== Notes ===
==== Post install ====
==== 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''.
* 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 post install script runs right before the reboot in the installation.
* The output of the postinstall script is shown in tty4.
* The output of the postinstall script is shown in tty4.
From within the chroot environment, the CD is mounted in '''/cdrom'''
From within the chroot environment, the CD is mounted in '''/cdrom'''
=== Links ===
=== Links ===
* http://fedora.redhat.com/projects/config-tools/redhat-config-kickstart.html
* http://fedora.redhat.com/projects/config-tools/redhat-config-kickstart.html
第87行: 第55行:
* http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-kickstart2-options.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)
(the above link includes LVM syntax which isn't implemented in Ubuntu yet)
=== Ideas ===
=== 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. -- [[UbuntuWiki:SivanGreen|SivanGreen]]


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. -- [http://wiki.ubuntu.com/SivanGreen 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. -- [[UbuntuWiki:ColinWatson|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. --[[UbuntuHelp:[UbuntuWiki:SivanGreen|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. -- [http://wiki.ubuntu.com/ColinWatson 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. --[[http://wiki.ubuntu.com/SivanGreen 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. -- [http://wiki.ubuntu.com/ColinWatson ColinWatson]


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. -- [[UbuntuWiki:ColinWatson|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
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
 
4. It would help to make kickstart able to make use of existing web and ftp proxies.  According to Ubuntu's [[UbuntuHelp:AptGetHowto|Apt-Get|HowTo]], the line to add in ''apt.conf'' would be  ''Acquire::&#104;ttp::Proxy "&#104;ttp://yourproxyaddress:proxyport";'' -- [[UbuntuWiki:LarsNood__n|Lars|Noodén]]
4. It would help to make kickstart able to make use of existing web and ftp proxies.  According to Ubuntu's [https://help.ubuntu.com/community/AptGetHowto Apt-Get HowTo], the line to add in ''apt.conf'' would be  ''Acquire::&#104;ttp::Proxy "&#104;ttp://yourproxyaddress:proxyport";'' -- [https://wiki.ubuntu.com/LarsNood%c3%a9n Lars Noodén]


=== Feature Requests ===
=== 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)
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)
 
----
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
=== In reply to Michael Pardee ===
Hi mate, why don't you use a preseed file along the kickstart?
This way you can remove the lvms and vgs during the installation without having to do it manually, and you can set up new lvms as redhat does. ( gettons )
----
The Ubuntu installer should generate a kickstart file similar to the /root/anaconda-ks.cfg generated by Anaconda. This helps a lot when you have to reproduce complex disk setups. You simply install a box by hand and then use the generated kickstart file on all the others.
----
[[category:CategoryInstallation]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2010年5月19日 (三) 23:04的最新版本

{{#ifexist: :KickstartCompatibility/zh | | {{#ifexist: KickstartCompatibility/zh | | {{#ifeq: {{#titleparts:KickstartCompatibility|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:KickstartCompatibility|1|-1|}} | zh | | }}

<<Include(Tag/ContentCleanup)>> <<Include(Tag/StyleCleanup)>> IconsPage?action=AttachFile&do=get&target=IconWarning3.png Kickstart compatibility is available as of Hoary. Contact ColinWatson for help, requests for improvement, etc.

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:

  1. Create a kickstart file. Ubuntu includes a graphical utility for creating kickstart files, in the package 'system-config-kickstart'.
  2. Create a boot disk with the kickstart file or make the kickstart file available on the network.
  3. Start the kickstart installation. You specify a kickstart installation with the boot parameter 'ks=', ie 'linux ks=http://path/to/ks.cfg'.

Using a proxy / cache during the Kickstart

For HTTP proxy during the initial installation, add the variable 'http_proxy=http://proxyhost:port' to the file isolinux/isolinux.cfg with the parameter append e.g. append http_proxy="http://192.168.0.11:8080" ks=cdrom:/ks.cfg file=/cdrom/preseed/kubuntu.seed initrd=/install/initrd.gz quiet --

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.

UPDATE: bootloader passwords appear to work with 7.10 in my testing 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.

From within the chroot environment, the CD is mounted in /cdrom

Links

(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. --[[UbuntuHelp:[UbuntuWiki:SivanGreen|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 4. It would help to make kickstart able to make use of existing web and ftp proxies. According to Ubuntu's Apt-Get|HowTo, the line to add in apt.conf would be Acquire::http::Proxy "http://yourproxyaddress:proxyport"; -- Lars|Noodén

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)


In reply to Michael Pardee

Hi mate, why don't you use a preseed file along the kickstart? This way you can remove the lvms and vgs during the installation without having to do it manually, and you can set up new lvms as redhat does. ( gettons )


The Ubuntu installer should generate a kickstart file similar to the /root/anaconda-ks.cfg generated by Anaconda. This helps a lot when you have to reproduce complex disk setups. You simply install a box by hand and then use the generated kickstart file on all the others.