||Home||Switchboard||Unix Administration||Red Hat||TCP/IP Networks||Neoliberalism||Toxic Managers|
|(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix|
|News||Administration||Recommended Books||Recommended Links||Kickstart||Installation||RHEL5 registration||Loopback filesystem|
|Oracle Linux||Installation of Red Hat from a USB drive||Modyfying ISO image||Networking||NTP configuration||LVM||Xinetd||Etc|
Anaconda is an install program used by the Fedora. RHEL, Oracle Linux and several other distributions. It is primarily written in Python, with some modules written in C.
In addition to supporting installation from local media (like a hard drive, CD/DVD, or USB key), Anaconda can also install from network sources like FTP, HTTP, or NFS. It also features an automated mechanism, called kickstart, which lets users perform scripted hands-off installations. With support for VNC server, an administrator has a powerful utility for remote server installation. This is especially important because unreliability of HP ILO 3 and Dell Drac 7.
This article will explore a couple methods that use the Anaconda installer remotely, monitoring the install progress in real time.
It has two stages. The first stage loads all the kernel modules so that the second stage can be mounted with access to the installation source. In the second stage, the python installer executes and the X Window install screens become visible (if it is a graphical install).
If this was a local installation, the user would start answering questions about the install source, timezone, keyboard, and more. For remote installs this information is provided before the second stage using Anaconda command line options.
These options can be specified using the GRUB boot loader and will depend on the network configuration and remote install type (interactive or kickstart).
GRUB is a powerful bootloader that can be used to boot Linux and other operating systems. You can pass options to anaconda via Grub. That permits you to configure networking and use VNC for installation among other things.
Initial network setup is handled by dracut. For detailed information consult
"Network" section of
dracut.kernel(7). The most common dracut network options are covered
below, along with some installer-specific options.
Parameter ip allows to configure one (or more) network interfaces. You can use multiple
ip arguments to
configure multiple interfaces, but if you do you must specify an interface for every
ip= argument, and you must specify which interface is the primary boot
Accepts a few different forms; the most common are:
ip=dhcpif network is required by
255.255.255.0) or prefix (e.g.
Technically all of the items are optional, so if you want to use dhcp but also set a hostname
you can do
nameserver Specify the address of a nameserver to use. May be used multiple times to specify sewveral DNS server but for instllation this is not needed. One is enough ;-)
ifname ifname=<interface>:<MAC> Assign the given interface name to the network device with the given MAC. May be used multiple times.
inst.text -- Force the installer to use a very limited text-based UI. Unless you’re using a kickstart this probably isn’t a good idea; you should use VNC instead.
inst.vnc -- Run the installer GUI in a VNC session. In other words enable VNC-based installation. You will need to connect to the machine using a VNC client application. You will need a VNC client application to interact with the installer. VNC sharing is enabled, so multiple clients may connect. A system installed with VNC will start in text mode (runlevel 3).
inst.vncpassword -- Set a password on the VNC server used by the installer.This will prevent someone from inadvertantly connecting to the VNC-based installation. Requires 'vnc' option to be specified as well.
inst.headless -- Specify that the machine being installed onto doesn’t have any display hardware, and that anaconda shouldn’t bother looking for it.
These options should still be accepted by the installer, but they’re deprecated and may be removed soon.
nameserverinstead. Note that
nameserverdoes not take comma-separated lists; just use multiple
Anaconda has build in the VNC installation method. When you use a RHEL 6 DVD to boot the system up, on the “boot:” prompt. Then you need to specify parameters for your VNC session. Two modes are possible:
prompt screen, you need to input the command with the following parameters:
boot: linux vnc ip=10.20.30.40 netmask=255.255.255.0 gateway=10.20.30.1 dns=10.20.30.2 ksdevice=eth0
You can also specify optional vncpassword parameter if you want to protect the session security. After the vnc server started, it will prompt you the listening address and port for connecting.
On your client system, windows system or linux system, install any type of the vnc viewer client
on your system. Open the vncviewer client and input the ipaddress and port in the vncviewer application,
click the ok to connect the anaconda installation vnc session.
vncconnect defaults to port 5500. If you are running a firewall, make sure the observing server allows access to this port. If vncconnect is not specified, anaconda will accept vncclient connections on its IP address.
Fire up vncviewer on your observing system using commend line and not the port on which it is listening
After that start installation from DVD
Boot the system being installed and wait for the boot menu to appear. In the menu; press the Tab
key to edit boot options. Append the following options to the command line:
Replace HOST with the IP address of the system running the listening VNC viewer, and PORT
with the port number that the VNC viewer is listening on. Press Enter to start the installation. The system initializes the installation program and startsthe necessary services. Once the initialization is finished. Anaconda attempts to connect to the IP address and port you provided in the previous step.
When the VNC connection is made, a VNC window will open on the observing system. Now you can interact with the remote install or, in the case of a remote kickstart, monitor the install progress.
This test verifies the vnc option vncconnect work as expected. See Anaconda_Boot_Options for more information.Setup
How to test
- Requires two systems able to communicate over the network, one to test the installation and a second to initiate the VNC client session
- Install a VNC client application. The package
vinagrecan be used.yum install /usr/bin/vncviewer
- Boot the installer with the command-line option to connect the client named <host>, and optionally use port <port> (added as a kernel option in boot selection screen):vnc vncconnect=<host>[:<port>]
- On another system that is accessible over the network, start a VNC client with reverse connections enabled. If using
tigervnc), use the following example. The command
vinagremay also be used.vncviewer -listen [port]
- Using the VNC client session, complete the installation as desired
- Anaconda starts and attempts to initiate a VNC connection on the specified
portRunning anaconda 15.31, the Fedora system installer - please wait. 09:16:44 Starting VNC... 09:16:45 The VNC server is now running. 09:16:45 You chose to connect to a listening vncviewer. This does not require a password to be set. If you set a password, it will be used in case the connection to the vncviewer is unsuccessful 09:16:45 Attempting to connect to vnc client on host 192.168.1.17... 09:16:45 Will try to connect again in 15 seconds... 09:17:00 Will try to connect again in 15 seconds...
- After starting the VNC client with reverse connections enabled, a successful VNC connection is established between the installing system, and your VNC client. Output similar to the following will be visible on the installing systems console.09:17:15 Connected! Press <enter> for a shell 09:17:15 Starting graphical installation.
- VNC works normally during installation (mouse, keyboard)
- Anaconda completes successfully
- The installed system boots into runlevel 3 (no graphical session)
Now that you have installed a VNC viewer application and selected a VNC mode for use in anaconda, you are ready to begin the installation.
31.3.1. Installation Example
The easiest way to perform an installation using VNC is to connect another computer directly to the network port on the target system. The laptop on a datacenter crash cart usually fills this role. If you are performing your installation this way, make sure you follow these steps:
1. Connect the laptop or other workstation to the target system using a crossover cable. If you are using regular patch cables, make sure you connect the two systems using a small hub or switch. Most recent Ethernet interfaces will automatically detect if they need to be crossover or not, so it may be possible to connect the two systems directly using a regular patch cable.
2. Configure the VNC viewer system to use a RFC 1918 address with no gateway. This private network connection will only be used for the purpose of installation. Configure the VNC viewer system to be 192.168.100.1/24. If that address is in use, just pick something else in the RFC 1918 address space that is available to you.
3. Start the installation on the target system.
1. Booting the installation DVD.
If booting the installation DVD, make sure vnc is passed as a boot parameter. To add the vnc parameter, you will need a console attached to the target system that allows you to interact with the boot process. Enter the following at the prompt:boot: linux vnc2. Boot over the network.
If the target system is configured with a static IP address, add the vnc command to the kickstart file. If the target system is using DHCP, add vncconnect=HOSTIP to the boot arguments for the target system. HOSTIP is the IP address or DNS host name of the VNC viewer system. Enter the following at the prompt:boot: linux vncconnect=HOSTIP4. When prompted for the network configuration on the target system, assign it an available RFC 1918 address in the same network you used for the VNC viewer system. For example, 192.168.100.2/24.
This IP address is only used during installation. You will have an opportunity to configure the final network settings, if any, later in the installer.
5. Once the installer indicates it is starting anaconda, you will be instructed to connect to the system using the VNC viewer. Connect to the viewer and follow the graphical installation mode instructions found in the product documentation.
Google matched content
How to use Kickstart (Anaconda's remote control) by Shannon Hughes Red Hat Magazine October 12th, 2006
RHEL 6 Remote Installation Using VNC ISPexperts.com.np
12.2. VNC Modes in Anaconda
CentOS 6 Netinstall URL and Screenshots Fusion Swift
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|You can use PayPal to to buy a cup of coffee for authors of this site|
Last modified: February, 05, 2020