Fedora Linux
11.3. Mirroring a Network Location
If you do not have discs or ISO images for a distribution, you can use
cobbler to create an installation server. The cobbler command can fetch the distribution over the network as part of the import process. Locate the distribution on the network. The location may be on the local network or reached at a remote site via FTP, HTTP, or rsync protocols. Note the URI, which will be in one of the following forms:
-
rsync://mirror.example.com/fedora/linux/releases/13/Fedora/arch/os
http://docs.fedoraproject.org/en-US/Fedora/13/html/Installation_Guide/sn-cobbler-mirror.html
This is an iframe, to view it upgrade your browser or enable iframe display.
11.4. Importing the Distribution
To offer a distribution through more than one installation method, perform additional
cobbler import tasks using a different name for each method. For best results, use the installation method as part of the name, so it appears in the client's boot menu. - To import the DVD disc or ISO distribution into
cobbler, run this command:cobbler import --path=/mnt/dvd --name=distro_nameFordistro_name, substitute a meaningful name for the distribution.To import a local or remote network distribution intocobbler, run this command. Replacenetwork_URIwith the URI you found in Section 11.3, “Mirroring a Network Location”, anddistro_nameas above:cobbler import --patch=network_URI--name=distro_nameImporting a Source
Whencobblerimports a distribution with the commands above, it copies all the files to the server's local storage, which may take some time.If you do not want to make local copies of the distribution because clients can already reach its location, use the--available-asoption.cobbler import --path=/mnt/dvd --name=distro_name--available-as=network_URIcobbler import --path=network_URI--name=distro_name--available-as=network_URIFornework_URI, substitute the appropriate network location of the distribution. This URI indicates how the server makes the distribution available to its clients. The examples above assume that yourcobblerserver reaches the mirror location at the same URI as the clients. If not, substitute an appropriate URI for the--pathoption. The following examples are URI locations that work if you have been following the procedures in this section, and your server's IP address is192.168.1.1:-
nfs://192.168.1.1:/mnt/dvd -
http://192.168.1.1:/distro
If necessary, replace192.168.1.1with the IP address for yourcobblerserver. -
- Run the command
cobbler syncto apply the changes. To check that yourcobblerserver is listening on the correct ports, use thenetstat -lpcommand.Firewall Considerations
Depending on your server's configuration, you may need to use thesystem-config-securitylevelcommand to permit access to some or all of these network services:- 67 or bootps, for the DHCP/BOOTP server
- 69 or tftp, for providing the PXE loader
- 80 or http, if the
cobblerserver is to provide HTTP installation service - 20 and 21 or ftp, if the
cobblerserver is to provide FTP installation service - 111 or sunrpc, if the
cobblerserver is to provide NFS installation service
-
http://docs.fedoraproject.org/en-US/Fedora/13/html/Installation_Guide/sn-cobbler-import.html
Don
No comments:
Post a Comment