Execute the following procedure to restore the VM(s) on the DSC SWe - vSP2000 Platform. After a successful VM restore, the Web UI is used to verify the slot status and to ensure all applications are running. 

Note

It is recommended that you perform the complete VM restore for the Routing and Management VM1 and VM2 before you restore the other Routing VMs.

Note

Before performing the following procedure, make sure the VM disk space and storage pools are in place. Refer to the procedures To create disk space and To create the VM storage pool on Create a Virtual Machine (VM) for the MA-RMS.

Workflow


Note

The following procedures use the DSC SWe as examples.

Restore the VM(s) on a VHE Host

This procedure provides instructions about restoring a VM(s) on a VHE Host using the configuration file from the initial install and a complete backup file.

Prerequisites
  • During the initial install, you are expected to save a copy of the install package, installation configuration and backup files.
Start
  1. Log onto a VHE Host or a Linux workstation on which you want to execute the restore.
  2. Enter the following command.

    Example
    ./dsc_swe_18_0_0_nb20190317_KVM.sh restore --config DSCSWe3.conf --backup DSCSWe3-slot1-bak-06-06-18-110824-Complete-DSCVM.18.0.tar.gz
    Example
    DSC SWe KVM Host Interaction
    ----------------------------
    /tmp/kvminstall.py --self-exe ../dsc_swe_18_0_0_nb20190317_KVM.sh --offset 1374 --qcow2 dsc_swe_18_0_0_nb20190317.qcow2 --host-set dsc_swe_host_extra.tgz --print-command restore --config DSCSWe3.conf --backup DSCSWe3-slot1-bak-06-06-18-110824-Complete-DSCVM.18.0.tar.gz
    Verify requisite files in the archive... 
    
    Processing hosts
    ----------------
    	Connected to caot-cloud1.sonusnet.com  libvirt 1005003 (lib 2000000)
    
    
    VM Installation on KVM host
    ---------------------------
    Install DSCSWe3-slot1 on host caot-cloud1.sonusnet.com.
    Install DSCSWe3-slot2 on host caot-cloud1.sonusnet.com.
    
    Continue with install of all listed VMs? (y/n):
    extracting QCOW2 dsc_swe_18_0_0_nb20190317.qcow2 to /tmp ...
    
    Installing VM DSCSWe3-slot1 on host caot-cloud1.sonusnet.com
    -----------------------------------------------------------
    Checking for VM DSCSWe3-slot1 on host caot-cloud1.sonusnet.com...
    libvirt: QEMU Driver error : Domain not found: no domain with matching name 'DSCSWe3-slot1'
    > issuing: ls /home/libvirt_images/DSCSWe3-slot1.img
    > issuing: ls /home/libvirt_images/DSCSWe3-slot1_configdrive.iso
    
    
    Process QCOW2 caot-cloud1.sonusnet.com DSCSWe3-slot1
    ---------------------------------------------------
    	Convert to raw image...
    > issuing: qemu-img convert -O raw /tmp/dsc_swe_18_0_0_nb20190317.qcow2 /home/libvirt_images/DSCSWe3-slot1.img
    	Resize the raw image to 65G...
    > issuing: qemu-img resize /home/libvirt_images/DSCSWe3-slot1.img +53G
    
    Generate VM Definition & Install caot-cloud1.sonusnet.com DSCSWe3-slot1
    ----------------------------------------------------------------------
    	Generate QEMU XML definition
    	Define VM
    	VM defined with UUID 7f5b9c06-7c66-498f-9ad5-7d3c0cd0c4fa
    	Set autostart (start VM on host boot).
    	using temporary space /tmp/dscLwO2jQ
    > issuing: genisoimage -V config-2 -graft-points -J -rock -o /tmp/dscLwO2jQ/DSCSWe3-slot1_configdrive.iso /tmp/dscLwO2jQ/iso
    I: -input-charset not specified, using utf-8 (detected in locale settings)
    Using VENDO000.JSO;1 for  /tmp/dscLwO2jQ/iso/openstack/latest/vendor_data2.json (vendor_data.json)
    Total translation table size: 0
    Total rockridge attributes bytes: 1369
    Total directory bytes: 6144
    Path table size(bytes): 52
    Max brk space used 1b000 382 extents written (0 MB)
    	removing temporary space /tmp/dscLwO2jQ
    
    Installing VM DSCSWe3-slot2 on host caot-cloud1.sonusnet.com
    -----------------------------------------------------------
    
    Checking for VM DSCSWe3-slot2 on host caot-cloud1.sonusnet.com...
    libvirt: QEMU Driver error : Domain not found: no domain with matching name 'DSCSWe3-slot2'
    > issuing: ls /home/libvirt_images/DSCSWe3-slot2.img
    > issuing: ls /home/libvirt_images/DSCSWe3-slot2_configdrive.iso
    
    Process QCOW2 caot-cloud1.sonusnet.com DSCSWe3-slot2
    ---------------------------------------------------
    	Convert to raw image...
    > issuing: qemu-img convert -O raw /tmp/dsc_swe_18_0_0_nb20190317.qcow2 /home/libvirt_images/DSCSWe3-slot2.img
    	Resize the raw image to 65G...
    > issuing: qemu-img resize /home/libvirt_images/DSCSWe3-slot2.img +53G
    
    Generate VM Definition & Install caot-cloud1.sonusnet.com DSCSWe3-slot2
    ----------------------------------------------------------------------
    	Generate QEMU XML definition
    	Define VM
    	VM defined with UUID 373b5273-9953-4107-84f2-54f228671a9c
    	Set autostart (start VM on host boot).
    	using temporary space /tmp/dsciwDusf
    > issuing: genisoimage -V config-2 -graft-points -J -rock -o /tmp/dsciwDusf/DSCSWe3-slot2_configdrive.iso /tmp/dsciwDusf/iso
    I: -input-charset not specified, using utf-8 (detected in locale settings)
    Using VENDO000.JSO;1 for  /tmp/dsciwDusf/iso/openstack/latest/vendor_data2.json (vendor_data.json)
    Total translation table size: 0
    Total rockridge attributes bytes: 1369
    Total directory bytes: 6144
    Path table size(bytes): 52
    Max brk space used 1b000
    382 extents written (0 MB)
    	removing temporary space /tmp/dsciwDusf
    removing extracted qcow2
    	Store config with VMs on hosts.
    	warning: existing DSCSWe3 config adding time
    
    Wrote configuration to file /tmp/DSC_DSCSWe3.20190317140434.conf
    
    Process VM startups
    -------------------
    System configuration file: /tmp/DSC_DSCSWe3.20190317140434.conf
    
    Store install log (/tmp/DSC_DSCSWe3.20190317140434.install_log) with VMs on hosts.

Check the Status of VM(s) on a VHE Host

Start
  1. Log onto a VHE Host or a Linux workstation for which you want to check VM(s) status.
  2. Enter the following command at the Linux prompt.

    ./dsc_swe_18_0_0_nb20190317_KVM.sh status --local --system samsvnf
    Example
    # ./dsc_swe_18_0_0_nb20190317_KVM.sh status --local --system samsvnf
    
    DSC Self-Extraction Utility 18_0_0_nb20190317
    -----------------------------------------------------
    Verify archive integrity... 
    
    Executing install script... 
    
    DSC SWe KVM Host Interaction
    ----------------------------
    Verify requisite files in the archive... 
    Processing hosts
    ----------------
    	Connected to caot-cloud1.sonusnet.com  libvirt 1005003 (lib 2000000)
    
    Installed DSC VMs
    -----------------
    		--+ Host caot-cloud1.sonusnet.com (6)
    			+-- samsvnf-slot3
    			+-- samsvnf-slot6
    			+-- samsvnf-slot2
    			+-- samsvnf-slot4
    			+-- samsvnf-slot1
    			+-- samsvnf-slot5
    complete.
  • No labels