SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Title




VYATTA, INC.   |   Vyatta System


Installation and Upgrade Guide




                                                             Vyatta
                                                         Suite 200
                                              1301 Shoreway Road
                                                Belmont, CA 94002
                                                        vyatta.com
                                                     650 413 7200
                                   1 888 VYATTA 1 (US and Canada)
Copyright   COPYRIGHT
            Copyright © 2005–2009 Vyatta, Inc. All rights reserved.
            Vyatta reserves the right to make changes to software, hardware, and documentation without notice. For the most
            recent version of documentation, visit the Vyatta web site at vyatta.com.

            PROPRIETARY NOTICES
            Vyatta is a registered trademark of Vyatta, Inc.
            VMware, VMware ESX, and VMware server are trademarks of VMware, Inc.
            All other trademarks are the property of their respective owners.
            ISSUE DATE: February 2009
            DOCUMENT REVISION. VC5 v01
            RELEASED WITH: VC5.0.2
            PART NO. A0-0124-10-0000
Contents


Welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1


Chapter 1 Deploying the Vyatta System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Deployment Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

You’ll Need a LiveCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Running from LiveCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Running from Hard Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Running from USB Memory Stick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Running from Compact Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Running as a Virtual Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Testing Your Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14


Chapter 2 Upgrading Vyatta Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Upgrading from LiveCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Upgrading from the Package Repositories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
iv




Installation and Upgrade Guide   VC5 v01   Vyatta
1




Welcome




      Thank you for choosing the Vyatta system.



This Guide
      This document is intended to:
      •   Describe the various deployment options for the Vyatta software
      •   Provide detailed procedures for upgrading your Vyatta software



Additional Resources
      More information about the Vyatta system is available in the Vyatta technical library, and on
      www.vyatta.com and www.vyatta.org.
      Full product documentation is provided in the Vyatta technical library. To see what
      documentation is available for your release, see the Guide to Vyatta Documentation. This
      guide is posted with every release of Vyatta software and provides a great starting point for
      finding what you need.
2




Chapter 1: Deploying the Vyatta System




      The Vyatta system supports a number of flexible deployment options. This chapter describes
      each option so that you can determine the best option for your needs and environment and
      explains how to deploy in each case.
      This chapter presents the following topics:
      •   Deployment Options
      •   You’ll Need a LiveCD
      •   Running from LiveCD
      •   Running from Hard Disk
      •   Running from USB Memory Stick
      •   Running from Compact Flash
      •   Running as a Virtual Machine
      •   Testing Your Installation
Vyatta System Installation and Upgrade Guide                                            Deployment Options       3



Deployment Options
               The Vyatta system can be deployed in a number of different ways.

               Table 1-1

                Option            What it is                                      Best for

                LiveCD            No installation is required, but you must       Evaluation and
                                  use a floppy disk to save configuration         test scenarios
                                  changes.

                Persistent        Hard disk, compact Flash, USB key. The          Permanent
                Device            system is installed to the persistent device    deployments and
                                  from a LiveCD. Installation is quite quick,     lab trials
                                  though longer than using LiveCD directly.
                                  Configuration is stored on the device.

                Virtual           The system is installed onto a VMware or        Permanent
                machine           Xen-based virtual machine from a LiveCD.        deployments and
                                  Installation is as for a persistent device.     lab trials
                                  This option allows multiple systems to be
                                  installed on a single physical device, and
                                  still leaves the operating system available
                                  for other uses.




You’ll Need a LiveCD
               For any deployment option except a virtual machine installation you’ll need to create a LiveCD.
               The LiveCD runs the Vyatta software on a RAM disk on the host machine. The system uses the
               RAM disk for writeable sections of the file system, and the floppy drive or a TFTP server for
               saving configuration files.
               The LiveCD can run on a machine with an existing operating system without disturbing or
               changing the previously installed operating system. While you are running the system from a
               LiveCD, you will not be able to access other applications or programs on your machine.
               You can download the software image directly from the Vyatta web site and create your own
               CD. If you are burning a CD from downloaded software, make sure you burn the software onto
               the CD as an ISO image (not as a file).
               NOTE See the documentation for your CD burning utility for information on how to burn an ISO
               image.




Installation and Upgrade Guide                   VC5 v01                                               Vyatta
Vyatta System Installation and Upgrade Guide                                           Running from LiveCD       4



Running from LiveCD

 Try it       Create the LiveCD
               Create the LiveCD from one of the ISO images available at http://www.vyatta.com.
               Burn the ISO image onto a CD-ROM using your favorite CD-burning software. The CD must
               be a bootable ISO image: don’t just copy files onto the CD.

 Try it       Get ready
               •   Make sure the BIOS of the host machine is configured to boot from CD-ROM.

               Boot from LiveCD
               Begin with your system powered down.
               1   With the system still powered down, connect a VGA monitor and keyboard to the host.
               2   Insert the Vyatta LiveCD into the CD drive and close the drive.
               3   Power up the system.
                   NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA
                   that does not exist on the IDE device. This is expected behavior.

                   After the startup messages complete, the login prompt appears:
                   vyatta login:

               At this point, your system is running. Go to the section “Testing Your Installation” on page 12
               to confirm that you can access the system from your network.




Installation and Upgrade Guide                      VC5 v01                                            Vyatta
Vyatta System Installation and Upgrade Guide                                               Running from Hard Disk         5



Running from Hard Disk
               To run from hard disk, you must install to the hard disk from a LiveCD. The software image on
               the LiveCD includes an installation script for installing the Vyatta system software onto the
               persistent device.

 Try it       Get ready
               •   Create the LiveCD.
               •   Make sure your BIOS is configured to boot from the CD-ROM.
               •   To install the operating system and Vyatta system software, you need a minimum of 450
                   MB of free space on your hard drive for a root partition.
                   NOTE A minimum of 2 GB of free space is recommended for a production installation.

               •   You will need to know the device name (for example, /dev/sda) onto which the software is
                   to be installed.
                   NOTE The installation process will reformat the specified partition so it is critical to specify the
                   correct partition. For systems dedicated to Vyatta, the system selected defaults can be used.

               Install onto hard disk
               Begin with your system powered down.
               1   With the system still powered down, connect a VGA monitor and keyboard to the host.
               2   Insert the Vyatta LiveCD into the CD drive and close the drive.
               3   Power up the system.
                   NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA
                   that does not exist on the IDE device. This is expected behavior.

                   After the startup messages complete, the login prompt appears:
                   vyatta login:

               4   Log on to the system as root with the password vyatta.
               5   At the system command prompt enter the following:
                   install-system

                   The installer launches. The installer is an interactive install script that prompts you for some
                   basic information and confirmation during the install.




Installation and Upgrade Guide                      VC5 v01                                                     Vyatta
Vyatta System Installation and Upgrade Guide                                           Running from Hard Disk        6


                   NOTE It’s a good idea to set the passwords for system users during this procedure. We don’t set
                   the password in this example so that our other examples can refer to the default passwords
                   without inconsistency.

                   The following example shows a sample install session.


                   Last login: Mon Oct 29 15:37:50 2007
                   Linux vyatta 2.6.20 #1 SMP Fri Sep 21 02:22:08 PDT 2007 i686
                   Welcome to Vyatta.
                   This system is open-source software. The exact distribution terms
                   for
                   each module comprising the full system are described in the
                   individual
                   files in /usr/share/doc/*/copyright.
                   vyatta:~# install-system
                   Welcome to the Vyatta install program. This script
                   will walk you through the process of installing the
                   Vyatta image to a local hard drive.

                   Would you like to continue? (Yes/No) [Yes]: <Enter>
                   Probing drives: OK
                   The Vyatta image will require a minimum 450MB root.
                   Would you like me to try to partition a drive automatically
                   or would you rather partition it manually with parted? If
                   you have already setup your partitions, you may skip this step.

                   Partition (Auto/Parted/Skip) [Auto]: <Enter>

                   I found the following drives on your system:
                    sda    1074MB



                   Install the image on? [sda] <Enter>

                   This will destroy all data on /dev/sda.
                   Continue? (Yes/No) [No]: Yes

                   How big of a root partition should I create? (450MB - 1074MB)
                   [1074]MB: 512
                   Creating filesystem on /dev/sda1: OK
                   Mounting /dev/sda1
                   Copying system image files to /dev/sda1:OK
                   I found the following configuration files
                   /opt/vyatta/etc/config/config.boot
                   Which one should I copy to sda?
                   [/opt/vyatta/etc/config/config.boot]: <Enter>




Installation and Upgrade Guide                    VC5 v01                                                  Vyatta
Vyatta System Installation and Upgrade Guide                                   Running from USB Memory Stick           7


                   Would you like to set passwords for system users (Yes/No) [Yes]: No

                   I need to install the GRUB boot loader.
                   I found the following drives on your system:
                    sda    1074MB

                   Which drive should GRUB modify the boot partition on? [sda]: <Enter>

                   Setting up grub: OK
                   Done!
                   vyatta:~#



                   NOTE If you have two disks in your system you will be asked if you would like to configure RAID-1
                   mirroring on them.

                   When system is installed to another drive with the install-system command, you are given
                   the option to set the root and vyatta adminstrator passwords. Only the new configuration
                   file on the installed device is changed, the original configuration is not modified. If you are
                   using a configuration file from another media, such as a floppy disk, the media should be
                   removed prior to rebooting the system; otherwise the original configuration file will be
                   used and the system will use the original passwords.
               6   Remove the CD from the drive and reboot. When the system starts, it will be running from
                   the local install and you will see the following:


                   Welcome to Vyatta - vyatta on tty1
                   vyatta login:



               At this point, your system is running. Go to the section “Testing Your Installation” on page 12
               to confirm that you can access the system from your network.



Running from USB Memory Stick
               To run from a USB memory stick, you must install to the USB device from a LiveCD. The
               software image on the LiveCD includes an installation script for installing the Vyatta system
               software onto the persistent device.




Installation and Upgrade Guide                     VC5 v01                                                  Vyatta
Vyatta System Installation and Upgrade Guide                                    Running from USB Memory Stick         8


               NOTE Not all hardware supports the ability to boot from USB device; check the BIOS of your your
               hardware to see if yours does.

               The procedure for installing to a USB device is similar to that for installing the software on a
               hard disk. The main difference is that, after installing the system onto the USB device, you must
               modify your system BIOS configuration so that it boots from the USB memory stick.

 Try it       Get ready
               •   Check the BIOS setup of your hardware to confirm that it supports the ability to boot from
                   a USB device.
               •   Create the LiveCD.
               •   Make sure your BIOS is configured to boot from the CD-ROM.
               •   To install the operating system and Vyatta system software, you need a minimum of 450
                   MB of free space on the USB stick for a root partition.
               NOTE A minimum of 2 GB of free space is recommended for a production installation.

               •   You will need to know the device name (for example, /dev/sdb) onto which the software is
                   to be installed.

               Install onto a USB device
               Begin with your system powered down.
               1   With the system still powered down, connect a VGA monitor and keyboard to the host.
               2   Insert the Vyatta LiveCD into the CD drive and close the drive.
               3   Power up the system.
                   NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA
                   that does not exist on the IDE device. This is expected behavior.

               4   After the startup messages complete, the login prompt appears:
                   vyatta login:

               5   Log on to the system as root with the password vyatta.
               6   Insert the USB memory stick into a USB port. The system will detect that the USB device
                   is installed and notify you.
               7   Record the name of the device as displayed in the system message (for example, /dev/sdb).
               8   At the system command prompt enter the following:
                   install-system

                   The installer launches. The installer is an interactive install script that prompts you for some
                   basic information and confirmation during the install.




Installation and Upgrade Guide                      VC5 v01                                                 Vyatta
Vyatta System Installation and Upgrade Guide                                     Running from Compact Flash         9


               9   Follow the prompts and specify the USB device name recorded above when required until
                   a system prompt displays.
               10 Remove the CD from its drive and reboot.

               11 During the boot sequence press the appropriate key sequence (for example, <F2>) to
                   interrupt the boot sequence and enter your system’s BIOS setup program.
               12 In the boot sequence menu arrange the boot devices such that the USB device name (for
                   example “USB HDD”) is first in the list so that the system will attempt to boot from it first.
               13 Save the settings and reboot the system. When the system restarts, it will be running from
                   the USB memory stick and you will see the following:


                   Welcome to Vyatta - vyatta on tty1
                   vyatta login:



               At this point, your system is running. Go to the section “Testing Your Installation” on page 12
               to confirm that you can access the system from your network.



Running from Compact Flash
               To run from a compact Flash, you must install to the Flash device from a LiveCD. The software
               image on the LiveCD includes an installation script for installing the Vyatta system software
               onto the persistent device.
               NOTE Not all hardware supports the ability to boot from compact Flash; check the BIOS of your your
               hardware to see if yours does.

               The procedure for installing to a Flash device is similar to that for installing the software on a
               hard disk. The main difference is that, after installing the system onto the Flash device, you
               must modify your system BIOS configuration so that it boots from the Flash.

 Try it       Get ready
               •   Check the BIOS setup of your hardware to confirm that it supports the ability to boot from
                   compact Flash.
               •   Create the LiveCD.
               •   Make sure your BIOS is configured to boot from the CD-ROM.
               •   To install the operating system and Vyatta system software, you need a minimum of 450
                   MB of free space on the Flash disk for a root partition.




Installation and Upgrade Guide                    VC5 v01                                                 Vyatta
Vyatta System Installation and Upgrade Guide                                           Running from Compact Flash     10


               NOTE A minimum of 2 GB of free space is recommended for a production installation.

               •   You will need to know the device name (for example, /dev/hda) onto which the software
                   is to be installed.

               Install onto a compact Flash
               Begin with your system powered down.
               1   With the system still powered down, connect a VGA monitor and keyboard to the host.
               2   Insert the Vyatta LiveCD into the CD drive and close the drive.
               3   Power up the system.
                   NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA
                   that does not exist on the IDE device. This is expected behavior.

               4   After the startup messages complete, the login prompt appears:
                   vyatta login:

               5   Log on to the system as root with the password vyatta.
               6   At the system command prompt enter the following:
                   install-system

                   The installer launches. The installer is an interactive install script that prompts you for some
                   basic information and confirmation during the install.
               7   Follow the prompts and specify the compact Flash device name recorded above when
                   required until a system prompt displays.
               8   Remove the CD from its drive and reboot.
               9   During the boot sequence press the appropriate key sequence (for example, <F2>) to
                   interrupt the boot sequence and enter your system’s BIOS setup program.
               10 In the boot sequence menu arrange the boot devices such that the compact Flash device
                   name (for example “IDE” or “SATA”) is first in the list so that the system will attempt to
                   boot from it first.
               11 Save the settings and reboot the system. When the system restarts, it will be running from
                   the compact Flash and you will see the following:


                   Welcome to Vyatta - vyatta on tty1
                   vyatta login:



               At this point, your system is running. Go to the section “Testing Your Installation” on page 12
               to confirm that you can access the system from your network.




Installation and Upgrade Guide                      VC5 v01                                                 Vyatta
Vyatta System Installation and Upgrade Guide                                     Running as a Virtual Machine      11



Running as a Virtual Machine
               The Vyatta System can be run in a virtual machine on a virtualization products such as VMware
               Server® and Xen®. These platforms provide a great deal of flexibility as to how the virtual
               machine is configured, especially with respect to memory and Ethernet interfaces. Multiple
               Vyatta Systems can be run simultaneously on a single hardware platform configured for
               multiple virtual machines.
               VMware Server can be downloaded free of charge from VMware at http://www.vmware.com.
               The Xen hypervisor can be downloaded free of charge from Xen at http://www.xen.org.
               NOTE Information about these products and how to use them is beyond the scope of this document.
               For that information, please consult the product documentation at the respective organizations’
               websites.

               The Vyatta System can be installed on either of these virtualization products from a LiveCD,
               just like a hard disk install. Vyatta also provides a pre-built virtual appliance for VMware at
               http://www.vyatta.com/downloads/.

 Try it       Install the VMware Virtual Appliance
               1   Navigate to the download area of the Vyatta web site.
                   http://www.vyatta.com/downloads/
               2   From the download options, choose to download the VMware Virtual Appliance.
                   Download the ZIP file to your local host, in the location where you are storing your
                   VMware virtual machines.
               3   Extract the ZIP file.
               4   Launch the VMware Server Console.
                   NOTE This procedure assumes you’re using VMware Server but it also works on other VMware
                   products, such as VMware ESX and VMware Workstation, though the steps may differ slightly.

               5   In the VMware Server Console, select Open Existing Virtual Machine.
               6   Click Browse... and navigate to the directory to which you extracted the Vyatta VMware
                   virtual appliance files. Select the VMX file and click Open.
               7   Start the virtual machine by selecting Power > Power On. This launches the Vyatta
                   VMware virtual appliance.
                   •    To interact with the Vyatta VMware virtual appliance, click the text screen.
                   •    To return control to your host operating system, press <Ctrl>-<Alt>.
                   •    To stop the Vyatta VMware virtual appliance, select Power > Power Off in the VMware
                        Server Console.




Installation and Upgrade Guide                     VC5 v01                                                Vyatta
Vyatta System Installation and Upgrade Guide                                          Testing Your Installation     12


               At this point, your system is running. Go to the section “Testing Your Installation” on page 12
               to confirm that you can access the system from your network.



Testing Your Installation
               The easiest and fastest way to confirm that the Vyatta System is working is to configure an
               Ethernet interface on the system and then ping the interface from another host on the network.

 Try it       Test the system
               1   Log on to the system as user vyatta with the password vyatta.
               2   At the command prompt, enter the commands shown in the example, substituting an IP
                   address on your existing subnet. In the example:
                   •   The subnet is 192.168.1.0/24
                   •   The IP address of the interface is 192.168.1.81
                   Make the appropriate substitutions for your network.


                   vyatta@vyatta:~$ configure
                   [edit]
                   root@vyatta# set interfaces ethernet eth0 address 192.168.1.81/24
                   [edit]
                   root@vyatta# commit
                   [edit]
                   root@vyatta# exit
                   exit
                   vyatta@vyatta:~$



               1   From another host on the same subnet, ping the interface to ensure that it is up.
               2   From a Linux or Windows command prompt, enter the following command (substituting
                   the IP address you assigned to the interface):
                   ping 192.168.1.81
               If the Vyatta system is reachable, you will see replies from it in response to the pings.
               If so, your system is installed and accessible on your network, and you are ready to review user
               interface options and configure the system.




Installation and Upgrade Guide                    VC5 v01                                                  Vyatta
13




Chapter 2: Upgrading Vyatta Software




      This chapter tells you how to upgrade Vyatta software that is installed on a persistent device
      (such as a hard disk). There are two ways to upgrade:
      •   Using the LiveCD
      •   Using package upgrade
      This chapter presents the following topics:
      •   Upgrading from LiveCD
      •   Upgrading from the Package Repositories
Vyatta System Installation and Upgrade Guide                          Determining the Method of Upgrade          14



Determining the Method of Upgrade

SYSTEMS OLDER THAN VC4.0
               There is no package upgrade from releases prior to VC4.0. You must install a fresh system using
               the procedure found below in Upgrading from LiveCD.
               Automatic migration of existing configurations to VC5.0.2 is not supported for system releases
               prior to VC4.0. Users must recreate the equivalent configuration manually.
               Before upgrading to VC5.0.2, save your existing configuration file for reference. Your
               configuration file is named "config.boot", and is located in the directory
               "/opt/vyatta/etc/config."


SYSTEMS RUNNING VC4.0 AND LATER
               The Vyatta system can be upgraded from any VC4.X release to VC5.0.2 using an ordinary
               package upgrade using the procedure found below in:Upgrading from the Package
               Repositories.



Upgrading from LiveCD
               Upgrading from LiveCD is just a matter of performing a new install of the standard Vyatta
               release from LiveCD, as described in the section “Running from Hard Disk” on page 5.
               Upgrading a hard disk install from LiveCD provides a “clean” install of the standard Vyatta
               release: your saved configuration file is preserved, but everything else is wiped clean. You
               should only upgrade from LiveCD if:
               •   You haven’t installed additional packages beyond the standard Vyatta release (or you don’t
                   care if you lose them), AND
               •   You have your configuration file saved on a floppy disk (or you don’t care if you lose your
                   configuration)



Upgrading from the Package Repositories
               Vyatta software can be updated using Vyatta’s online package archive system. Your system
               must be set up to connect to the Internet and access a DNS server.




Installation and Upgrade Guide                   VC5 v01                                                Vyatta
Vyatta System Installation and Upgrade Guide                      Upgrading from the Package Repositories        15


 Try it       Locate the Vyatta software repository
               If you want to be able to retrieve the latest updates of Vyatta software, you must inform the
               system of the location of the Vyatta software repository. Then you’ll be able to find out what
               software updates are available for your system.
               The Vyatta community software repository is available to the Vyatta community at
               http://packages.vyatta.com/vyatta. .

 Try it       Configure the Vyatta repository options
               Software update is configured in the system package configuration node. To use the automatic
               upgrade feature, the system must be configured to include following attributes:
               •   repository: A user-defined label for this software repository within the configuration.
                   (Multiple repositories can be configured.)
               •   components: Which components should be upgraded from this repository. Typically, the
                   main component is upgraded.
               •   distribution: The distribution or release to upgrade to. When possible, you will typically
                   want to upgrade to the stable distribution.
               •   url: The location of the Vyatta repository. This is http://packages.vyatta.com/vyatta for
                   Vyatta community users.
               You can view package configuration by using the show system package command in
               configuration mode, as shown in Example 2-1.


Example 2-1 Viewing the “system package” configuration node

Step                             Command

Show the contents of the             vyatta@R1# show system package
system package                        repository my-repository {
configuration node.                     components main
                                        distribution stable
                                        url http://packages.vyatta.com/vyatta
                                      }
                                     [edit]
                                     vyatta@R1#




 Try it       Download and install updates
               To download and install updates you must be logged in as root.
               The full-upgrade command is used to download and install updates from the repository
               specified in the system package configuration above.




Installation and Upgrade Guide                   VC5 v01                                                Vyatta
Vyatta System Installation and Upgrade Guide                        Upgrading from the Package Repositories            16


               Before upgrading, make sure your configuration is backed up somewhere external to the Vyatta
               system. Perform this procedure from an attached keyboard and monitor or using a serial
               console.
               If you have extra packages installed that aren’t in your new release, you can elect to keep them
               using the -k option to the full-upgrade command. If you choose to keep the extra packages,
               they are included in the package list when you issue the show version all command. Keep in
               mind that the extra packages could affect the behavior of your system.
               You may explicitly control which packages are retained during the upgrade process using
               full-upgrade -i. For more information on the full-upgrade command see the Vyatta Basic
               System Reference Guide.
               Log in as user root and enter the command as follows. If prompted for information, press
               <Enter> to accept the default values.

Example 2-2 Upgrading

Step                              Command

Perform the upgrade and           vyatta:~# full-upgrade -k
remove all packages that are      Reading package lists...
not part of the official release. Building dependency tree...
                                  Reading state information...
                                  0 upgraded, 0 newly installed, 0 to remove and 0 not
                                  upgraded.
                                  ...




               NOTE If you are upgrading from an older version of the full-upgrade command that does not contain
               the "-k" and "-i" options (e.g. VC4.0), you may need to use the full-upgrade command with no options.

               NOTE It is strongly recommended that you let the upgrade process proceed until completion as
               interrupting it may require manual intervention for a successive upgrade to complete successfully.

               Upgraded packages are listed on the screen as they are upgraded. Your configuration is
               automatically modified to reflect changes in command syntax between a VC4.0 release and
               VC5.0.2.


               NOTE If you are upgrading from an SSH or Telnet session, the session will be terminated. The
               upgrade will continue to completion and the system will automatically reboot. For additional control
               during the upgrade process, we recommend that you upgrade using a system console.




Installation and Upgrade Guide                     VC5 v01                                                  Vyatta
Vyatta System Installation and Upgrade Guide                        Upgrading from the Package Repositories          17


               NOTE NOTE: If the "set system syslog console" command is configured, prior to upgrade, configure,
               commit, and save the command:


                  set system syslog console facility all


               The above command restores default facility of the syslog command as seen pre-5.0.2 for the console
               method.




Installation and Upgrade Guide                       VC5 v01                                               Vyatta

Mais conteúdo relacionado

Mais procurados

Guide server virtualization_deployment
Guide server virtualization_deploymentGuide server virtualization_deployment
Guide server virtualization_deploymentabanggeh
 
VIA VAB-600 Springboard Linux BSP Development Guide
VIA VAB-600 Springboard Linux BSP Development GuideVIA VAB-600 Springboard Linux BSP Development Guide
VIA VAB-600 Springboard Linux BSP Development GuideGergely Imreh
 
Vmware admin interview questions
Vmware admin interview questionsVmware admin interview questions
Vmware admin interview questionsRitesh Rushiya
 
Es xi 07-create-virtual-machine
Es xi 07-create-virtual-machineEs xi 07-create-virtual-machine
Es xi 07-create-virtual-machinedzar123456
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answersvivaankumar
 
Silk Test Install Guide
Silk Test Install GuideSilk Test Install Guide
Silk Test Install Guideguestcdd1af
 
TechBook: Using EMC VNX Storage with VMware vSphere
TechBook: Using EMC VNX Storage with VMware vSphereTechBook: Using EMC VNX Storage with VMware vSphere
TechBook: Using EMC VNX Storage with VMware vSphereEMC
 
Lenovo Thinkpad X270 - “chiến binh đường phố"
Lenovo Thinkpad X270 - “chiến binh đường phố"Lenovo Thinkpad X270 - “chiến binh đường phố"
Lenovo Thinkpad X270 - “chiến binh đường phố"LAPTOP TRẦN PHÁT
 
DDoS Secure: VMware Virtual Edition Installation Guide
DDoS Secure: VMware Virtual Edition Installation GuideDDoS Secure: VMware Virtual Edition Installation Guide
DDoS Secure: VMware Virtual Edition Installation GuideJuniper Networks
 
Using EMC VNX storage with VMware vSphereTechBook
Using EMC VNX storage with VMware vSphereTechBookUsing EMC VNX storage with VMware vSphereTechBook
Using EMC VNX storage with VMware vSphereTechBookEMC
 
Vmserver2
Vmserver2Vmserver2
Vmserver2nkirve
 

Mais procurados (20)

Guide server virtualization_deployment
Guide server virtualization_deploymentGuide server virtualization_deployment
Guide server virtualization_deployment
 
VIA VAB-600 Springboard Linux BSP Development Guide
VIA VAB-600 Springboard Linux BSP Development GuideVIA VAB-600 Springboard Linux BSP Development Guide
VIA VAB-600 Springboard Linux BSP Development Guide
 
H61 m dgs
H61 m dgsH61 m dgs
H61 m dgs
 
Vmware admin interview questions
Vmware admin interview questionsVmware admin interview questions
Vmware admin interview questions
 
Readme[1]
Readme[1]Readme[1]
Readme[1]
 
Es xi 07-create-virtual-machine
Es xi 07-create-virtual-machineEs xi 07-create-virtual-machine
Es xi 07-create-virtual-machine
 
Dfs manual
Dfs manualDfs manual
Dfs manual
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answers
 
Vsp 41 config_max
Vsp 41 config_maxVsp 41 config_max
Vsp 41 config_max
 
Releasenotes
ReleasenotesReleasenotes
Releasenotes
 
Silk Test Install Guide
Silk Test Install GuideSilk Test Install Guide
Silk Test Install Guide
 
Lc ip manual
Lc ip manualLc ip manual
Lc ip manual
 
H61 m vs
H61 m vsH61 m vs
H61 m vs
 
TechBook: Using EMC VNX Storage with VMware vSphere
TechBook: Using EMC VNX Storage with VMware vSphereTechBook: Using EMC VNX Storage with VMware vSphere
TechBook: Using EMC VNX Storage with VMware vSphere
 
Lenovo Thinkpad X270 - “chiến binh đường phố"
Lenovo Thinkpad X270 - “chiến binh đường phố"Lenovo Thinkpad X270 - “chiến binh đường phố"
Lenovo Thinkpad X270 - “chiến binh đường phố"
 
DDoS Secure: VMware Virtual Edition Installation Guide
DDoS Secure: VMware Virtual Edition Installation GuideDDoS Secure: VMware Virtual Edition Installation Guide
DDoS Secure: VMware Virtual Edition Installation Guide
 
Using EMC VNX storage with VMware vSphereTechBook
Using EMC VNX storage with VMware vSphereTechBookUsing EMC VNX storage with VMware vSphereTechBook
Using EMC VNX storage with VMware vSphereTechBook
 
P21gv31
P21gv31P21gv31
P21gv31
 
Vmserver2
Vmserver2Vmserver2
Vmserver2
 
Vmware interview
Vmware interviewVmware interview
Vmware interview
 

Semelhante a Vyatta Installation and Upgrade Guide

Vista deployment using tivoli provisioning manager for os deployment redp4295
Vista deployment using tivoli provisioning manager for os deployment redp4295Vista deployment using tivoli provisioning manager for os deployment redp4295
Vista deployment using tivoli provisioning manager for os deployment redp4295Banking at Ho Chi Minh city
 
IBM X346 User guide
IBM X346 User guideIBM X346 User guide
IBM X346 User guidepgpclient01
 
My booklive manual
My booklive manualMy booklive manual
My booklive manualbb129207
 
The Unofficial VCAP / VCP VMware Study Guide
The Unofficial VCAP / VCP VMware Study GuideThe Unofficial VCAP / VCP VMware Study Guide
The Unofficial VCAP / VCP VMware Study GuideVeeam Software
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guidemmoreno123
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guideTallisCC
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guidemmoreno123
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guidemmoreno123
 
trends in marketingFlip4 mac wmv user guide
trends in marketingFlip4 mac wmv user guidetrends in marketingFlip4 mac wmv user guide
trends in marketingFlip4 mac wmv user guideDina Rosin
 
SONY-VIO VPCF 12 series laptop user guide
SONY-VIO VPCF 12 series laptop user guideSONY-VIO VPCF 12 series laptop user guide
SONY-VIO VPCF 12 series laptop user guidetayyabmubarikqu
 
MikroTik User Guide
MikroTik User GuideMikroTik User Guide
MikroTik User Guideseolangit4
 
Virtual Machines - Virtual Box
Virtual Machines  - Virtual BoxVirtual Machines  - Virtual Box
Virtual Machines - Virtual BoxLahiru Danushka
 
Install VMWare Tools CentOS 7
Install VMWare Tools CentOS 7Install VMWare Tools CentOS 7
Install VMWare Tools CentOS 7VCP Muthukrishna
 
Wind river linux_niosii_user_guide_r15_rev1
Wind river linux_niosii_user_guide_r15_rev1Wind river linux_niosii_user_guide_r15_rev1
Wind river linux_niosii_user_guide_r15_rev1Abhinay Yadav
 
Ausst technote v2_0
Ausst technote v2_0Ausst technote v2_0
Ausst technote v2_0ajay_mane22
 

Semelhante a Vyatta Installation and Upgrade Guide (20)

Vista deployment using tivoli provisioning manager for os deployment redp4295
Vista deployment using tivoli provisioning manager for os deployment redp4295Vista deployment using tivoli provisioning manager for os deployment redp4295
Vista deployment using tivoli provisioning manager for os deployment redp4295
 
IBM X346 User guide
IBM X346 User guideIBM X346 User guide
IBM X346 User guide
 
My booklive manual
My booklive manualMy booklive manual
My booklive manual
 
The Unofficial VCAP / VCP VMware Study Guide
The Unofficial VCAP / VCP VMware Study GuideThe Unofficial VCAP / VCP VMware Study Guide
The Unofficial VCAP / VCP VMware Study Guide
 
Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
 
Returnil 2010
Returnil 2010Returnil 2010
Returnil 2010
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guide
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guide
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guide
 
Flip4 mac wmv user guide
Flip4 mac wmv user guideFlip4 mac wmv user guide
Flip4 mac wmv user guide
 
trends in marketingFlip4 mac wmv user guide
trends in marketingFlip4 mac wmv user guidetrends in marketingFlip4 mac wmv user guide
trends in marketingFlip4 mac wmv user guide
 
Scientific Linux
Scientific LinuxScientific Linux
Scientific Linux
 
Flip4 Mac Wmv User Guide
Flip4 Mac Wmv User GuideFlip4 Mac Wmv User Guide
Flip4 Mac Wmv User Guide
 
SONY-VIO VPCF 12 series laptop user guide
SONY-VIO VPCF 12 series laptop user guideSONY-VIO VPCF 12 series laptop user guide
SONY-VIO VPCF 12 series laptop user guide
 
MikroTik User Guide
MikroTik User GuideMikroTik User Guide
MikroTik User Guide
 
Virtual Machines - Virtual Box
Virtual Machines  - Virtual BoxVirtual Machines  - Virtual Box
Virtual Machines - Virtual Box
 
Install VMWare Tools CentOS 7
Install VMWare Tools CentOS 7Install VMWare Tools CentOS 7
Install VMWare Tools CentOS 7
 
Wind river linux_niosii_user_guide_r15_rev1
Wind river linux_niosii_user_guide_r15_rev1Wind river linux_niosii_user_guide_r15_rev1
Wind river linux_niosii_user_guide_r15_rev1
 
Ausst technote v2_0
Ausst technote v2_0Ausst technote v2_0
Ausst technote v2_0
 

Último

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Último (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Vyatta Installation and Upgrade Guide

  • 1. Title VYATTA, INC. | Vyatta System Installation and Upgrade Guide Vyatta Suite 200 1301 Shoreway Road Belmont, CA 94002 vyatta.com 650 413 7200 1 888 VYATTA 1 (US and Canada)
  • 2. Copyright COPYRIGHT Copyright © 2005–2009 Vyatta, Inc. All rights reserved. Vyatta reserves the right to make changes to software, hardware, and documentation without notice. For the most recent version of documentation, visit the Vyatta web site at vyatta.com. PROPRIETARY NOTICES Vyatta is a registered trademark of Vyatta, Inc. VMware, VMware ESX, and VMware server are trademarks of VMware, Inc. All other trademarks are the property of their respective owners. ISSUE DATE: February 2009 DOCUMENT REVISION. VC5 v01 RELEASED WITH: VC5.0.2 PART NO. A0-0124-10-0000
  • 3. Contents Welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 1 Deploying the Vyatta System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Deployment Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 You’ll Need a LiveCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Running from LiveCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Running from Hard Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Running from USB Memory Stick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Running from Compact Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Running as a Virtual Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Testing Your Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Chapter 2 Upgrading Vyatta Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Upgrading from LiveCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Upgrading from the Package Repositories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
  • 4. iv Installation and Upgrade Guide VC5 v01 Vyatta
  • 5. 1 Welcome Thank you for choosing the Vyatta system. This Guide This document is intended to: • Describe the various deployment options for the Vyatta software • Provide detailed procedures for upgrading your Vyatta software Additional Resources More information about the Vyatta system is available in the Vyatta technical library, and on www.vyatta.com and www.vyatta.org. Full product documentation is provided in the Vyatta technical library. To see what documentation is available for your release, see the Guide to Vyatta Documentation. This guide is posted with every release of Vyatta software and provides a great starting point for finding what you need.
  • 6. 2 Chapter 1: Deploying the Vyatta System The Vyatta system supports a number of flexible deployment options. This chapter describes each option so that you can determine the best option for your needs and environment and explains how to deploy in each case. This chapter presents the following topics: • Deployment Options • You’ll Need a LiveCD • Running from LiveCD • Running from Hard Disk • Running from USB Memory Stick • Running from Compact Flash • Running as a Virtual Machine • Testing Your Installation
  • 7. Vyatta System Installation and Upgrade Guide Deployment Options 3 Deployment Options The Vyatta system can be deployed in a number of different ways. Table 1-1 Option What it is Best for LiveCD No installation is required, but you must Evaluation and use a floppy disk to save configuration test scenarios changes. Persistent Hard disk, compact Flash, USB key. The Permanent Device system is installed to the persistent device deployments and from a LiveCD. Installation is quite quick, lab trials though longer than using LiveCD directly. Configuration is stored on the device. Virtual The system is installed onto a VMware or Permanent machine Xen-based virtual machine from a LiveCD. deployments and Installation is as for a persistent device. lab trials This option allows multiple systems to be installed on a single physical device, and still leaves the operating system available for other uses. You’ll Need a LiveCD For any deployment option except a virtual machine installation you’ll need to create a LiveCD. The LiveCD runs the Vyatta software on a RAM disk on the host machine. The system uses the RAM disk for writeable sections of the file system, and the floppy drive or a TFTP server for saving configuration files. The LiveCD can run on a machine with an existing operating system without disturbing or changing the previously installed operating system. While you are running the system from a LiveCD, you will not be able to access other applications or programs on your machine. You can download the software image directly from the Vyatta web site and create your own CD. If you are burning a CD from downloaded software, make sure you burn the software onto the CD as an ISO image (not as a file). NOTE See the documentation for your CD burning utility for information on how to burn an ISO image. Installation and Upgrade Guide VC5 v01 Vyatta
  • 8. Vyatta System Installation and Upgrade Guide Running from LiveCD 4 Running from LiveCD  Try it Create the LiveCD Create the LiveCD from one of the ISO images available at http://www.vyatta.com. Burn the ISO image onto a CD-ROM using your favorite CD-burning software. The CD must be a bootable ISO image: don’t just copy files onto the CD.  Try it Get ready • Make sure the BIOS of the host machine is configured to boot from CD-ROM. Boot from LiveCD Begin with your system powered down. 1 With the system still powered down, connect a VGA monitor and keyboard to the host. 2 Insert the Vyatta LiveCD into the CD drive and close the drive. 3 Power up the system. NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA that does not exist on the IDE device. This is expected behavior. After the startup messages complete, the login prompt appears: vyatta login: At this point, your system is running. Go to the section “Testing Your Installation” on page 12 to confirm that you can access the system from your network. Installation and Upgrade Guide VC5 v01 Vyatta
  • 9. Vyatta System Installation and Upgrade Guide Running from Hard Disk 5 Running from Hard Disk To run from hard disk, you must install to the hard disk from a LiveCD. The software image on the LiveCD includes an installation script for installing the Vyatta system software onto the persistent device.  Try it Get ready • Create the LiveCD. • Make sure your BIOS is configured to boot from the CD-ROM. • To install the operating system and Vyatta system software, you need a minimum of 450 MB of free space on your hard drive for a root partition. NOTE A minimum of 2 GB of free space is recommended for a production installation. • You will need to know the device name (for example, /dev/sda) onto which the software is to be installed. NOTE The installation process will reformat the specified partition so it is critical to specify the correct partition. For systems dedicated to Vyatta, the system selected defaults can be used. Install onto hard disk Begin with your system powered down. 1 With the system still powered down, connect a VGA monitor and keyboard to the host. 2 Insert the Vyatta LiveCD into the CD drive and close the drive. 3 Power up the system. NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA that does not exist on the IDE device. This is expected behavior. After the startup messages complete, the login prompt appears: vyatta login: 4 Log on to the system as root with the password vyatta. 5 At the system command prompt enter the following: install-system The installer launches. The installer is an interactive install script that prompts you for some basic information and confirmation during the install. Installation and Upgrade Guide VC5 v01 Vyatta
  • 10. Vyatta System Installation and Upgrade Guide Running from Hard Disk 6 NOTE It’s a good idea to set the passwords for system users during this procedure. We don’t set the password in this example so that our other examples can refer to the default passwords without inconsistency. The following example shows a sample install session. Last login: Mon Oct 29 15:37:50 2007 Linux vyatta 2.6.20 #1 SMP Fri Sep 21 02:22:08 PDT 2007 i686 Welcome to Vyatta. This system is open-source software. The exact distribution terms for each module comprising the full system are described in the individual files in /usr/share/doc/*/copyright. vyatta:~# install-system Welcome to the Vyatta install program. This script will walk you through the process of installing the Vyatta image to a local hard drive. Would you like to continue? (Yes/No) [Yes]: <Enter> Probing drives: OK The Vyatta image will require a minimum 450MB root. Would you like me to try to partition a drive automatically or would you rather partition it manually with parted? If you have already setup your partitions, you may skip this step. Partition (Auto/Parted/Skip) [Auto]: <Enter> I found the following drives on your system: sda 1074MB Install the image on? [sda] <Enter> This will destroy all data on /dev/sda. Continue? (Yes/No) [No]: Yes How big of a root partition should I create? (450MB - 1074MB) [1074]MB: 512 Creating filesystem on /dev/sda1: OK Mounting /dev/sda1 Copying system image files to /dev/sda1:OK I found the following configuration files /opt/vyatta/etc/config/config.boot Which one should I copy to sda? [/opt/vyatta/etc/config/config.boot]: <Enter> Installation and Upgrade Guide VC5 v01 Vyatta
  • 11. Vyatta System Installation and Upgrade Guide Running from USB Memory Stick 7 Would you like to set passwords for system users (Yes/No) [Yes]: No I need to install the GRUB boot loader. I found the following drives on your system: sda 1074MB Which drive should GRUB modify the boot partition on? [sda]: <Enter> Setting up grub: OK Done! vyatta:~# NOTE If you have two disks in your system you will be asked if you would like to configure RAID-1 mirroring on them. When system is installed to another drive with the install-system command, you are given the option to set the root and vyatta adminstrator passwords. Only the new configuration file on the installed device is changed, the original configuration is not modified. If you are using a configuration file from another media, such as a floppy disk, the media should be removed prior to rebooting the system; otherwise the original configuration file will be used and the system will use the original passwords. 6 Remove the CD from the drive and reboot. When the system starts, it will be running from the local install and you will see the following: Welcome to Vyatta - vyatta on tty1 vyatta login: At this point, your system is running. Go to the section “Testing Your Installation” on page 12 to confirm that you can access the system from your network. Running from USB Memory Stick To run from a USB memory stick, you must install to the USB device from a LiveCD. The software image on the LiveCD includes an installation script for installing the Vyatta system software onto the persistent device. Installation and Upgrade Guide VC5 v01 Vyatta
  • 12. Vyatta System Installation and Upgrade Guide Running from USB Memory Stick 8 NOTE Not all hardware supports the ability to boot from USB device; check the BIOS of your your hardware to see if yours does. The procedure for installing to a USB device is similar to that for installing the software on a hard disk. The main difference is that, after installing the system onto the USB device, you must modify your system BIOS configuration so that it boots from the USB memory stick.  Try it Get ready • Check the BIOS setup of your hardware to confirm that it supports the ability to boot from a USB device. • Create the LiveCD. • Make sure your BIOS is configured to boot from the CD-ROM. • To install the operating system and Vyatta system software, you need a minimum of 450 MB of free space on the USB stick for a root partition. NOTE A minimum of 2 GB of free space is recommended for a production installation. • You will need to know the device name (for example, /dev/sdb) onto which the software is to be installed. Install onto a USB device Begin with your system powered down. 1 With the system still powered down, connect a VGA monitor and keyboard to the host. 2 Insert the Vyatta LiveCD into the CD drive and close the drive. 3 Power up the system. NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA that does not exist on the IDE device. This is expected behavior. 4 After the startup messages complete, the login prompt appears: vyatta login: 5 Log on to the system as root with the password vyatta. 6 Insert the USB memory stick into a USB port. The system will detect that the USB device is installed and notify you. 7 Record the name of the device as displayed in the system message (for example, /dev/sdb). 8 At the system command prompt enter the following: install-system The installer launches. The installer is an interactive install script that prompts you for some basic information and confirmation during the install. Installation and Upgrade Guide VC5 v01 Vyatta
  • 13. Vyatta System Installation and Upgrade Guide Running from Compact Flash 9 9 Follow the prompts and specify the USB device name recorded above when required until a system prompt displays. 10 Remove the CD from its drive and reboot. 11 During the boot sequence press the appropriate key sequence (for example, <F2>) to interrupt the boot sequence and enter your system’s BIOS setup program. 12 In the boot sequence menu arrange the boot devices such that the USB device name (for example “USB HDD”) is first in the list so that the system will attempt to boot from it first. 13 Save the settings and reboot the system. When the system restarts, it will be running from the USB memory stick and you will see the following: Welcome to Vyatta - vyatta on tty1 vyatta login: At this point, your system is running. Go to the section “Testing Your Installation” on page 12 to confirm that you can access the system from your network. Running from Compact Flash To run from a compact Flash, you must install to the Flash device from a LiveCD. The software image on the LiveCD includes an installation script for installing the Vyatta system software onto the persistent device. NOTE Not all hardware supports the ability to boot from compact Flash; check the BIOS of your your hardware to see if yours does. The procedure for installing to a Flash device is similar to that for installing the software on a hard disk. The main difference is that, after installing the system onto the Flash device, you must modify your system BIOS configuration so that it boots from the Flash.  Try it Get ready • Check the BIOS setup of your hardware to confirm that it supports the ability to boot from compact Flash. • Create the LiveCD. • Make sure your BIOS is configured to boot from the CD-ROM. • To install the operating system and Vyatta system software, you need a minimum of 450 MB of free space on the Flash disk for a root partition. Installation and Upgrade Guide VC5 v01 Vyatta
  • 14. Vyatta System Installation and Upgrade Guide Running from Compact Flash 10 NOTE A minimum of 2 GB of free space is recommended for a production installation. • You will need to know the device name (for example, /dev/hda) onto which the software is to be installed. Install onto a compact Flash Begin with your system powered down. 1 With the system still powered down, connect a VGA monitor and keyboard to the host. 2 Insert the Vyatta LiveCD into the CD drive and close the drive. 3 Power up the system. NOTE Systems with a Flash device may boot slowly from LiveCD, as the system looks for DMA that does not exist on the IDE device. This is expected behavior. 4 After the startup messages complete, the login prompt appears: vyatta login: 5 Log on to the system as root with the password vyatta. 6 At the system command prompt enter the following: install-system The installer launches. The installer is an interactive install script that prompts you for some basic information and confirmation during the install. 7 Follow the prompts and specify the compact Flash device name recorded above when required until a system prompt displays. 8 Remove the CD from its drive and reboot. 9 During the boot sequence press the appropriate key sequence (for example, <F2>) to interrupt the boot sequence and enter your system’s BIOS setup program. 10 In the boot sequence menu arrange the boot devices such that the compact Flash device name (for example “IDE” or “SATA”) is first in the list so that the system will attempt to boot from it first. 11 Save the settings and reboot the system. When the system restarts, it will be running from the compact Flash and you will see the following: Welcome to Vyatta - vyatta on tty1 vyatta login: At this point, your system is running. Go to the section “Testing Your Installation” on page 12 to confirm that you can access the system from your network. Installation and Upgrade Guide VC5 v01 Vyatta
  • 15. Vyatta System Installation and Upgrade Guide Running as a Virtual Machine 11 Running as a Virtual Machine The Vyatta System can be run in a virtual machine on a virtualization products such as VMware Server® and Xen®. These platforms provide a great deal of flexibility as to how the virtual machine is configured, especially with respect to memory and Ethernet interfaces. Multiple Vyatta Systems can be run simultaneously on a single hardware platform configured for multiple virtual machines. VMware Server can be downloaded free of charge from VMware at http://www.vmware.com. The Xen hypervisor can be downloaded free of charge from Xen at http://www.xen.org. NOTE Information about these products and how to use them is beyond the scope of this document. For that information, please consult the product documentation at the respective organizations’ websites. The Vyatta System can be installed on either of these virtualization products from a LiveCD, just like a hard disk install. Vyatta also provides a pre-built virtual appliance for VMware at http://www.vyatta.com/downloads/.  Try it Install the VMware Virtual Appliance 1 Navigate to the download area of the Vyatta web site. http://www.vyatta.com/downloads/ 2 From the download options, choose to download the VMware Virtual Appliance. Download the ZIP file to your local host, in the location where you are storing your VMware virtual machines. 3 Extract the ZIP file. 4 Launch the VMware Server Console. NOTE This procedure assumes you’re using VMware Server but it also works on other VMware products, such as VMware ESX and VMware Workstation, though the steps may differ slightly. 5 In the VMware Server Console, select Open Existing Virtual Machine. 6 Click Browse... and navigate to the directory to which you extracted the Vyatta VMware virtual appliance files. Select the VMX file and click Open. 7 Start the virtual machine by selecting Power > Power On. This launches the Vyatta VMware virtual appliance. • To interact with the Vyatta VMware virtual appliance, click the text screen. • To return control to your host operating system, press <Ctrl>-<Alt>. • To stop the Vyatta VMware virtual appliance, select Power > Power Off in the VMware Server Console. Installation and Upgrade Guide VC5 v01 Vyatta
  • 16. Vyatta System Installation and Upgrade Guide Testing Your Installation 12 At this point, your system is running. Go to the section “Testing Your Installation” on page 12 to confirm that you can access the system from your network. Testing Your Installation The easiest and fastest way to confirm that the Vyatta System is working is to configure an Ethernet interface on the system and then ping the interface from another host on the network.  Try it Test the system 1 Log on to the system as user vyatta with the password vyatta. 2 At the command prompt, enter the commands shown in the example, substituting an IP address on your existing subnet. In the example: • The subnet is 192.168.1.0/24 • The IP address of the interface is 192.168.1.81 Make the appropriate substitutions for your network. vyatta@vyatta:~$ configure [edit] root@vyatta# set interfaces ethernet eth0 address 192.168.1.81/24 [edit] root@vyatta# commit [edit] root@vyatta# exit exit vyatta@vyatta:~$ 1 From another host on the same subnet, ping the interface to ensure that it is up. 2 From a Linux or Windows command prompt, enter the following command (substituting the IP address you assigned to the interface): ping 192.168.1.81 If the Vyatta system is reachable, you will see replies from it in response to the pings. If so, your system is installed and accessible on your network, and you are ready to review user interface options and configure the system. Installation and Upgrade Guide VC5 v01 Vyatta
  • 17. 13 Chapter 2: Upgrading Vyatta Software This chapter tells you how to upgrade Vyatta software that is installed on a persistent device (such as a hard disk). There are two ways to upgrade: • Using the LiveCD • Using package upgrade This chapter presents the following topics: • Upgrading from LiveCD • Upgrading from the Package Repositories
  • 18. Vyatta System Installation and Upgrade Guide Determining the Method of Upgrade 14 Determining the Method of Upgrade SYSTEMS OLDER THAN VC4.0 There is no package upgrade from releases prior to VC4.0. You must install a fresh system using the procedure found below in Upgrading from LiveCD. Automatic migration of existing configurations to VC5.0.2 is not supported for system releases prior to VC4.0. Users must recreate the equivalent configuration manually. Before upgrading to VC5.0.2, save your existing configuration file for reference. Your configuration file is named "config.boot", and is located in the directory "/opt/vyatta/etc/config." SYSTEMS RUNNING VC4.0 AND LATER The Vyatta system can be upgraded from any VC4.X release to VC5.0.2 using an ordinary package upgrade using the procedure found below in:Upgrading from the Package Repositories. Upgrading from LiveCD Upgrading from LiveCD is just a matter of performing a new install of the standard Vyatta release from LiveCD, as described in the section “Running from Hard Disk” on page 5. Upgrading a hard disk install from LiveCD provides a “clean” install of the standard Vyatta release: your saved configuration file is preserved, but everything else is wiped clean. You should only upgrade from LiveCD if: • You haven’t installed additional packages beyond the standard Vyatta release (or you don’t care if you lose them), AND • You have your configuration file saved on a floppy disk (or you don’t care if you lose your configuration) Upgrading from the Package Repositories Vyatta software can be updated using Vyatta’s online package archive system. Your system must be set up to connect to the Internet and access a DNS server. Installation and Upgrade Guide VC5 v01 Vyatta
  • 19. Vyatta System Installation and Upgrade Guide Upgrading from the Package Repositories 15  Try it Locate the Vyatta software repository If you want to be able to retrieve the latest updates of Vyatta software, you must inform the system of the location of the Vyatta software repository. Then you’ll be able to find out what software updates are available for your system. The Vyatta community software repository is available to the Vyatta community at http://packages.vyatta.com/vyatta. .  Try it Configure the Vyatta repository options Software update is configured in the system package configuration node. To use the automatic upgrade feature, the system must be configured to include following attributes: • repository: A user-defined label for this software repository within the configuration. (Multiple repositories can be configured.) • components: Which components should be upgraded from this repository. Typically, the main component is upgraded. • distribution: The distribution or release to upgrade to. When possible, you will typically want to upgrade to the stable distribution. • url: The location of the Vyatta repository. This is http://packages.vyatta.com/vyatta for Vyatta community users. You can view package configuration by using the show system package command in configuration mode, as shown in Example 2-1. Example 2-1 Viewing the “system package” configuration node Step Command Show the contents of the vyatta@R1# show system package system package repository my-repository { configuration node. components main distribution stable url http://packages.vyatta.com/vyatta } [edit] vyatta@R1#  Try it Download and install updates To download and install updates you must be logged in as root. The full-upgrade command is used to download and install updates from the repository specified in the system package configuration above. Installation and Upgrade Guide VC5 v01 Vyatta
  • 20. Vyatta System Installation and Upgrade Guide Upgrading from the Package Repositories 16 Before upgrading, make sure your configuration is backed up somewhere external to the Vyatta system. Perform this procedure from an attached keyboard and monitor or using a serial console. If you have extra packages installed that aren’t in your new release, you can elect to keep them using the -k option to the full-upgrade command. If you choose to keep the extra packages, they are included in the package list when you issue the show version all command. Keep in mind that the extra packages could affect the behavior of your system. You may explicitly control which packages are retained during the upgrade process using full-upgrade -i. For more information on the full-upgrade command see the Vyatta Basic System Reference Guide. Log in as user root and enter the command as follows. If prompted for information, press <Enter> to accept the default values. Example 2-2 Upgrading Step Command Perform the upgrade and vyatta:~# full-upgrade -k remove all packages that are Reading package lists... not part of the official release. Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ... NOTE If you are upgrading from an older version of the full-upgrade command that does not contain the "-k" and "-i" options (e.g. VC4.0), you may need to use the full-upgrade command with no options. NOTE It is strongly recommended that you let the upgrade process proceed until completion as interrupting it may require manual intervention for a successive upgrade to complete successfully. Upgraded packages are listed on the screen as they are upgraded. Your configuration is automatically modified to reflect changes in command syntax between a VC4.0 release and VC5.0.2. NOTE If you are upgrading from an SSH or Telnet session, the session will be terminated. The upgrade will continue to completion and the system will automatically reboot. For additional control during the upgrade process, we recommend that you upgrade using a system console. Installation and Upgrade Guide VC5 v01 Vyatta
  • 21. Vyatta System Installation and Upgrade Guide Upgrading from the Package Repositories 17 NOTE NOTE: If the "set system syslog console" command is configured, prior to upgrade, configure, commit, and save the command: set system syslog console facility all The above command restores default facility of the syslog command as seen pre-5.0.2 for the console method. Installation and Upgrade Guide VC5 v01 Vyatta