Installing the virtual machine environment
Virtual Machine Manager (virt-manager) Settings
This chapter provides the required (KVM) settings for installation of SUSE Linux Enterprise Just Enough Operating System (JeOS) 15 as the base for Uyuni. A kernel virtual machine (KVM) combined with Virtual Machine Manager (virt-manager) will be used as a sandbox for your first installation.
|
SUSE Virtualization Guide
For more information on virtualization, see: SUSE Linux Enterprise Virtualization Guide |
Enter the following settings when creating a new virtual machine using virt-manager. In the following table replace version with the actual product version string.
| KVM Settings | |
|---|---|
Installation Method |
Import Existing Disk Image |
OS: |
Linux |
Version: |
SLES_version_-JeOS-for-kvm-and-xen.x86_64-GM.qcow2 |
Memory: |
4096 MB |
CPU’s: |
2 |
Storage Format: |
.qcow2 24 GB (Default) JeOS Root Partition |
Virtual Disks: |
|
VirtIO Disk 2 |
101 GB for |
VirtIO Disk 3 |
50 GB for |
VirtIO Disk 4 |
4 GB for swap |
Name: |
test-setup |
Network |
Bridge br0 |
|
SUSE Virtualization Guide
For more information on virtualization, see: SUSE Linux Enterprise Virtualization Guide |
JeOS KVM Settings
Create three additional virtual disks required for the Uyuni storage partitions.
-
Create a new virtual machine using the downloaded JeOS KVM image and select Import existing disk image.
-
Configure RAM and number of CPUs (At least 4 GB RAM and 2 CPUs).
-
Name your KVM machine and select the Customize configuration before install check box.
-
Select the Add Hardware button and create three new virtual disks with the following specifications. These disks will be partitioned and mounted in Procedure: Preparing JeOS for Uyuni Installation.
VirtIO Storage Disks Name Sizing VirtIO Disk 2
spacewalk
101 GB
VirtIO Disk 3
pgsql
50 GB
VirtIO Disk 4
swap
4 GB
-
Click Begin Installation and your new VM will boot from the JeOS image.
Proceed through the basic JeOS installation prompts until you reach the command line.
|
Root Password
During the basic installation prompts you are asked to enter the root password. Select a strong password and then in the next message box Confirm root Password. |
Preparing JeOS for Uyuni
-
Log in as
root.
-
Uninstall the
sles-releasepackage:rpm -e --nodeps sles-release
-
Register Uyuni with SCC (for example, replace
<productnumber>with4and<architecture>withx86_64):SUSEConnect -e<EMAIL_ADDRESS> -r<SUSE_MANAGER_CODE> \ -p SUSE-Manager-Server/<productnumber>/<architecture>
-
Add Uyuni repositories:
SUSEConnect -p sle-module-basesystem/15.1/x86_64 SUSEConnect -p sle-module-python2/15.1/x86_64 SUSEConnect -p sle-module-server-applications/15.1/x86_64 SUSEConnect -p sle-module-web-scripting/15.1/x86_64 SUSEConnect -p sle-module-suse-manager-server/<productnumber>/x86_64
JeOS is configured to install only required packages. To get all features working you should allow to install also recommended packages. In /etc/zypp/zypp.confchange:solver.onlyRequires = true
To:
solver.onlyRequires = false
-
Install yast2-storage-ng with all required dependencies (approx. 40 packages, 30 MB when installed). This basic administration package is required for preparing storage partitions:
zypper in -t package yast2-storage-ng
-
Partition and mount the virtual disks at the following locations using YaST Partitioner (
yast2 disk).VirtIO Storage Disks Name Storage Size File System Type VirtIO Disk 2
/var/spacewalk101 GB
XFS
VirtIO Disk 3
/var/lib/pgsql50 GB
XFS
VirtIO Disk 4
swap4 GB
swap
-
Exit the partitioner and install the Uyuni pattern (approximately 730 packages, consuming 1.4 GB when installed):
zypper in pattern-suma_server
-
Reboot.
For proceeding with Uyuni setup, see SUSE Manager Setup.