This section describes how to install a DSC Kernel-based Virtual Machine (VM) on a MA-RMS server to function as the DSC SWe or vSP2000.
Workflow
Step | Action |
---|---|
1 | Complete the Prerequisites. |
2 | Execute the configuration file and install the VM. Refer to Configure the VM. |
3 | Configure and Initialize the DSC SWe - vSP2000. This section covers the licensing, initial configuration, and commissioning of the DSC SWe - vSP2000 VM. |
4 | Create a Backup of a VM (on MA-RMS). |
5 | Update Host Backup Directories after DSC SWe - vSP2000 VM Creation. |
Prerequisites
Before you begin, complete the following steps:
Download and transfer the software files to the MA-RMS, refer to Download and Transfer Software Files to the MA-RMS.
- Verify the VLAN configurations, refer to Verify the VHE Host Configuration.
Check the python argparse module is installed using the following code:
# yum install -y python-argparse
Gather the information for the green boxes in the following table. This information is needed in subsequent procedures.
Parameters Value Examples Host Root User Password Host SSH admin User secadm Host SSH admin password SYSTEM_NAME2 "DSCSWe3" is used in the examples
Slot ID/VM ID VM Name and Guest Hostname
LOGICAL_VOLUMES2 Automatically created based on system name. For example, DSCSWe3. MOUNT_POINT2 Automatically created based on system name. For example, DSCSWe3. VM_STORAGE_POOL_NAME2 Automatically created based on system name. For example, DSCSWe3. VM Management IP Address 1 VM Management IP Address 2
VM Shared IP Address 1 Management Gateway dataoam for vSP2000
Management Netmask dataoam for vSP2000
1 For the initial configuration, the hostname in the VM is preconfigured as <SYSTEM_NAME>-slot<VM id>. The option to change the hostname is provided later within this guide
2The following naming conventions are recommended for the procedures in this section:
- For the SYSTEM_NAME, use an uppercase format.
In the following procedures, "DSCSWe3" is used for system name. This system name is then used for the configuration filename, for example, "DSCSWe3.conf". - For the VM_STORAGE_POOL_NAME, MOUNT_POINT, and LOGICAL_VOLUMES, use SYSTEM_NAME as well.
- For the SYSTEM_NAME, use an uppercase format.
Configure the VM
Use the following procedures to install and configure the VM on the VHE hosts.
About this Task
The VM configuration file is placed in each VHE Host's install directory. The file is executed from a Linux workstation and contains the required hostnames and all VMs to be installed. To run on each VHE Host, a configuration file for each host is used.
The procedures in this section based on the DSC SWe and are using dsc_swe_19_0_0_nb20200721_KVM.sh as an example installation file.
Execute the VM Configuration File
Use this procedure to create the host configuration file, <SYSTEM_NAME>. conf. In this procedure the "DSCSWe3.conf" example system name is used. Complete this procedure once per VHE host.
Prerequisites
- You have downloaded the dsc_swe_configure_on_rms.sh configuration file for your release.
Start
Log onto a VHE host or a Linux workstation.
Run the dsc_swe_configure_on_rms.sh script.
Example#su – Enter root password cd /root/dsc_swe_install ./dsc_swe_configure_on_rms.sh Your install script is ./dsc_swe_19_0_0_nb20200721_KVM.sh
Create the configuration file and resize the file system with the steps below.
Use the information previously gathered in the System Information table to create the config file.
Enter DSC SWe system name: Enter VM ids to be created (space separated, ex: 1 2): Enter mgmt IP address 1: Enter mgmt IP address 2 if applicable (press Enter to skip): Enter shared IP address if applicable (press Enter to skip): Enter Gateway IP: Enter Netmask IP: Is this a DSC SWe-C20 install? (Y/N): Memory Size (RAM) in GB [5]:
ExampleEnter DSC SWe system name: DSCSWe3 Enter VM ids to be created (space separated, ex: 1 2): 1 (For HOST0 enter: 1 and for HOST1 enter: 2) Enter mgmt IP address 1: 172.29.20.215 Enter mgmt IP address 2 if applicable (press Enter to skip): Enter shared IP address if applicable (press Enter to skip): 172.29.20.217 Enter Gateway IP: 172.29.20.193 Enter Netmask IP: 255.255.254.0 Is this a DSC SWe-C20 install? (Y/N):Y Memory Size (RAM) in GB [5]:
Check the size of logical volume and get the device driver name to use by executing the following command.
# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg00-lvol0 48G 3.1G 43G 7% / tmpfs 63G 0 63G 0% /dev/shm /dev/sda1 485M 75M 385M 17% /boot /dev/mapper/vg00-lvol3 969M 1.4M 917M 1% /home /dev/mapper/vg00-lvol5 20G 5.8G 13G 32% /storage /dev/mapper/vg00-lvol1 965M 2.5M 913M 1% /tmp /dev/mapper/vg00-lvol2 1.9G 521M 1.3G 29% /var /dev/mapper/vg00-lvol4 16G 705M 14G 5% /var/ccm /storage/iso/VHEL0010.iso 4.4G 4.4G 0 100% /var/vault /dev/mapper/vg00-lvol6 29G 5.5G 22G 20% /storage/backups /dev/mapper/vg00-<SYSTEM_NAME> 64G 52G 61G 1% /storage/<SYSTEM_NAME>
Resize the file system to match the VM definition by inserting the following commands:
# lvextend -L 128G /dev/mapper/vg00-<SYSTEM_NAME> # /sbin/resize2fs /dev/mapper/vg00-<SYSTEM_NAME>
- Check to make the new files system size is correct.
# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg00-lvol0 48G 3.1G 43G 7% / tmpfs 63G 0 63G 0% /dev/shm /dev/sda1 485M 75M 385M 17% /boot /dev/mapper/vg00-lvol3 969M 1.4M 917M 1% /home /dev/mapper/vg00-lvol5 20G 5.8G 13G 32% /storage /dev/mapper/vg00-lvol1 965M 2.5M 913M 1% /tmp /dev/mapper/vg00-lvol2 1.9G 521M 1.3G 29% /var /dev/mapper/vg00-lvol4 16G 705M 14G 5% /var/ccm /storage/iso/VHEL0010.iso 4.4G 4.4G 0 100% /var/vault /dev/mapper/vg00-lvol6 29G 5.5G 22G 20% /storage/backups /dev/mapper/vg00-<SYSTEM_NAME> 126G 52G 116G 1% /storage/<SYSTEM_NAME>
The response to this prompt selects the virtual interface bridging based on the host server type. Enter Y for vSP2000 on C20 RMS (GBRY41LB/LJ) servers or N for deployments on GBRY41LA/LH servers, and then press ENTER.
Is this a DSC SWe-C20 install? (Y/N):
Confirm that the vSP2K VM is not running using the following command.
virsh list --all
ExampleId Name State ---------------------------------------------------- 1 msh6sst0-dm1 running
- Repeat this procedure on the second host.
- Continue to the next procedure Install a VM on a VHE Host.
Install the VM on a VHE Host
Prerequisites
- You have created the host configuration files, <SYSTEM_NAME>. conf, for each VHE host.
Start
- Log onto a VHE Host or a Linux workstation.
Run the installation script to create the VMs on the VHE host.
./dsc_swe_<release>_nb<date>_KVM.sh install --config <SYSTEM_NAME>.conf
Example# ./dsc_swe_19_0_0_nb20200721_KVM.sh install --config DSCSWe3.conf DSC Self-Extraction Utility 19_0_0_nb20200721 ----------------------------------------------------- Verify archive integrity... Executing install script... DSC SWe VHE Host Interaction ---------------------------- Verify requisite files in the archive... Processing hosts ---------------- Connected to caot-cloud1.sonusnet.com libvirt 1005003 (lib 2000000) VM Installation on VHE host --------------------------- Install DSCSWe3-slot2 on host caot-cloud1.sonusnet.com. Continue with install of all listed VMs? (y/n):
Enter y and press ENTER.
Exampleextracting QCOW2 dsc_swe_19_0_0_nb20200721.qcow2 to /tmp ...
ExampleGenerate VM Definition & Install caot-cloud1.sonusnet.com DSCSWe3-slot2 ---------------------------------------------------------------------- Generate QEMU XML definition Define VM VM defined with UUID 31aa3384-c157-418e-bf66-627966833a55 Set autostart (start VM on host boot). using temporary space /tmp/dscu7JE9o > issuing: genisoimage -V config-2 -graft-points -J -rock -o /tmp/dscu7JE9o/DSCSWe3-slot2_configdrive.iso /tmp/dscu7JE9o/iso I: -input-charset not specified, using utf-8 (detected in locale settings) Using VENDO000.JSO;1 for /tmp/dscu7JE9o/iso/openstack/latest/vendor_data2.json (vendor_data.json) Total translation table size: 0 Total rockridge attributes bytes: 1238 Total directory bytes: 6144 Path table size(bytes): 52 Max brk space used 1b000 192 extents written (0 MB) removing temporary space /tmp/dscu7JE9o removing extracted qcow2 Store config with VMs on hosts. Wrote configuration to file /tmp/DSC_DSCSWe3.conf > issuing: ls /home/libvirt_images/DSC_DSCSWe3.conf Replacing host caot-cloud1.sonusnet.com copy of DSC_DSCSWe3.conf. Process VM startups ------------------- System configuration file: /tmp/DSC_DSCSWe3.conf Store install log (/tmp/DSC_DSCSWe3.install_log) with VMs on hosts. complete.
Verify the VMs are created.
virsh list --all
Example# virsh list --all Id Name State ---------------------------------------------------- 1 DSCSWe3-slot2 running
- Verify that a copy of the config file (in this example, DSCSWe3.conf) is saved under /root, so it can be included in the RMS host backup
Verify the /etc/fstab file is updated by the install script with an entry that allows the created VM and its storage mount point to survive server reboots/restarts.
# vi /etc/fstab # /etc/fstab # Created by anaconda on Wed Dec 5 13:49:47 2018 # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info /dev/mapper/vg00-lvol0 / ext4 defaults 1 2 UUID=a042ebb7-5d5e-4bee-ab98-e26fd0aea690 /boot ext3 defaults 1 2 /dev/mapper/vg00-lvol3 /home ext4 defaults,nodev 1 2 /dev/mapper/vg00-lvol5 /storage ext4 defaults 1 2 /dev/mapper/vg00-lvol1 /tmp ext4 defaults,nodev,nosuid,noexec 1 2 /dev/mapper/vg00-lvol2 /var ext4 defaults 1 2 /dev/mapper/vg00-lvol4 /var/ccm ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /storage/iso/VHEL0010.iso /var/vault iso9660 loop,owner,ro,nodev 0 0 /dev/mapper/vg00-lvol6 /storage/backups ext4 defaults 1 2 /dev/mapper/vg00-dscswe3 /storage/dscswe3 ext4 defaults 1 2 /tmp /var/tmp none bind 0 0
- Repeat the this procedure on the second host.
Update Host Backup Directories after DSC SWe - vSP2000 VM Creation
Once the VM has been created, there are updates needed to ensure the proper backups of the host OS will be available. Use the following procedure to configure backup inclusion and exclusion of the appropriate directories.
Refer to Virtual Hosting Environment Administration Guide (630-02720-01) for more information.
Start
- Login to the host server and promote yourself to root user.
- Edit the host <SYSTEM_NAME>.conf file in the root directory. Typically the file name matches <SYSTEM_NAME>.conf
At the bottom of the file add the following entries:
SWMGMT_BACKUP_INCLUDE_DIR[10]=/opt/ribbon/dsc_io SWMGMT_BACKUP_EXCLUDE_DIR[20]=/storage/<SYSTEM_NAME> SWMGMT_BACKUP_EXCLUDE_DIR[21]=/root/dsc_swe_install SWMGMT_BACKUP_EXCLUDE_DIR[22]=/root/tmp
Save the file
Run the command:
updateconfig -f <SYSTEM_NAME>.conf -c OS
Log off.