Chapter 8. Guest operating system installation procedures
virsh update-device Guest1 ~/Guest1.xml(substituting your guest's name and XML file), and select OK to continue past this step.
8.1. Installing Red Hat Enterprise Linux 5 as a para-virtualized guest
virt-manager, see Section 7.2, “Creating guests with virt-manager”.
--vncoption shows the graphical installation. The name of the guest in the example is rhel5PV, the disk image file is rhel5PV.dsk and a local mirror of the Red Hat Enterprise Linux 5 installation tree is ftp://10.1.1.1/trees/RHEL5-B2-Server-i386/. Replace those values with values accurate for your system and network.
# virt-install -n rhel5PV -r 500 \ -f /var/lib/libvirt/images/rhel5PV.dsk -s 3 --vnc -p \ -l ftp://10.1.1.1/trees/RHEL5-B2-Server-i386/
Procedure 8.1. Para-virtualized Red Hat Enterprise Linux guest installation procedure
- Select the language and click.
- Select the keyboard layout and click.
- Assign the guest's network address. Choose to use
DHCP(as shown below) or a static IP address:
- If you select DHCP the installation process will now attempt to acquire an IP address:
- If you chose a static IP address for your guest this prompt appears. Enter the details on the guest's networking configuration:
Select the language and click.
- Enter a valid IP address. Ensure the IP address you enter can reach the server with the installation tree.
- Enter a valid Subnet mask, default gateway and name server address.
- This is an example of a static IP address configuration:
- The installation process now retrieves the files it needs from the server:
Procedure 8.2. The graphical installation process
- Enter a valid registration code. If you have a valid Red Hat subscription key please enter in the
NoteIf you skip the registration step, confirm your Red Hat account details after the installation with the
rhn_registercommand requires root access.
- The installation prompts you to confirm erasure of all data on the storage you selected for the installation:Clickto continue.
- Review the storage configuration and partition layout. You can chose to select the advanced storage configuration if you want to use iSCSI for the guest's storage.Make your selections then click.
- Confirm the selected storage for the installation.Clickto continue.
- Configure networking and hostname settings. These settings are populated with the data entered earlier in the installation process. Change these settings if necessary.Clickto continue.
- Select the appropriate time zone for your environment.
- Enter the root password for the guest.Clickto continue.
- Select the software packages to install. Select the kernel-xen package in the System directory. The kernel-xen package is required for para-virtualization.button. You must install theClick.
- Dependencies and space requirements are calculated.
- After the installation dependencies and space requirements have been verified clickto start the actual installation.
- All of the selected software packages are installed automatically.
- After the installation has finished reboot your guest:
- The guest will not reboot, instead it will shutdown..
- Boot the guest. The guest's name was chosen when you used the
virt-installin Section 8.1, “Installing Red Hat Enterprise Linux 5 as a para-virtualized guest”. If you used the default example the name is rhel5PV.Use
virshto reboot the guest:
# virsh reboot rhel5PVAlternatively, open
virt-manager, select the name of your guest, click , then click .A VNC window displaying the guest's boot processes now opens.
- Booting the guest starts the First Boot configuration screen. This wizard prompts you for some basic configuration choices for your guest.
- Read and agree to the license agreement.Clickon the license agreement windows.
- Configure the firewall.Clickto continue.
- If you disable the firewall you will be prompted to confirm your choice. Clickto confirm and continue. It is not recommended to disable your firewall.
- Configure SELinux. It is strongly recommended you run SELinux in enforcing mode. You can choose to either run SELinux in permissive mode or completely disable it.Clickto continue.
- If you choose to disable SELinux this warning displays. Clickto disable SELinux.
kdump. The use of
kdumpis unsupported on para-virtualized guests.Clickto continue.
- Confirm time and date are set correctly for your guest. If you install a para-virtualized guest time and date should synchronize with the hypervisor.If the users sets the time or date during the installation it is ignored and the hypervisor's time is used.Clickto continue.
- Set up software updates. If you have a Red Hat account or want to trial one use the screen below to register your newly installed guest.Clickto continue.
- Confirm your choices for RHN.
- You may see an additional screen if you did not configure RHN access. If RHN access is not enabled, you will not receive software updates.Click thebutton.
- Create a non root user account. It is advised to create a non root user for normal usage and enhanced security. Enter the Username, Name and password.Click thebutton.
- If a sound device is detected and you require sound, calibrate it. Complete the process and click.
- You can install additional packages from a CD or another repository using this screen. It is often more efficient to not install any additional software at this point but add packages later using the
yumcommand or RHN. Click .
- The guest now configure any settings you changed and continues the boot process.
- The Red Hat Enterprise Linux 5 login screen displays. Log in using the username created in the previous steps.
- You have now successfully installed a para-virtualized Red Hat Enterprise Linux guest.