The article explains the solution for the VMHost Software upgrade failure.
while initiating the vmhost software add on the device getting below error
user@router> request vmhost software add /var/tmp/junos-vmhost-install-mx-x86-64-21.2X33.7.tgz
Junos Validation begin. Procedure will take few minutes.
Required: 7864052092 bytes Available: 9091186688 bytes <<<<< Available is more than the required.
rcp: /junos/install/validate.build//junos.img.25687.tmp.gz: No space left on device <<<<< However, reports No Space left on the device
ERROR: Failed to copy JUNOS guest image in host <<<<<< The Error points to guest in Host. In VM Host machines, guest is Junos, Base OS is Host. So looks like there is storage issue on the Host.
warning: Host software installation has failed.
user@router>
<-- The below command suggests there is sufficient storage on the guest.
user@router> show system storage
Filesystem Size Used Avail Capacity Mounted on
/dev/gpt/junos 10.0G 4.8G 4.3G 53% /.mount
/dev/gpt/config 446M 6.9M 403M 2% /.mount/config
/dev/gpt/var 14G 4.5G 8.5G 35% /.mount/var
tmpfs 41G 208K 41G 0% /.mount/tmp
tmpfs 8.0G 44M 7.9G 1% /.mount/mfs
VM Host Software installation will be failed if there is no sufficient storage space available on Host OS.
Please verify the show vmhost resource-usage command and look for the jvg_S-jlvmjunos partition and its utilization.
If the utilization is higher (or at 100%), Please clean up the storage space in that partition.
Before clearing the storage/dev/mapper/jvg_S-jlvmjunos 32G 32G 0 100% /junosAfter clearting the storage:/dev/mapper/jvg_P-jlvmjunos 32G 5.2G 25G 18% /junos
What to clean Up:
Login to the RE shell as rootstart shell user rootvhclient -s cd /junosLook for the directories Backup.bBackup.p cd Backup.blsrm -rf <the files whic hare not required> repeat the same for the Backup.p as well.
<-- Before cleaning up
user@router> show vmhost resource-usage
Compute cluster: rainier-re-cc
Compute node: rainier-re-cn
CPU Usage
=========
05:43:18 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
05:43:18 all 1.53 0.00 2.78 0.02 0.00 0.00 0.00 66.33 0.00 29.34
05:43:18 0 4.55 0.00 7.61 0.08 0.00 0.03 0.00 0.00 0.00 87.74
05:43:18 1 4.60 0.00 7.67 0.06 0.00 0.00 0.00 0.00 0.00 87.67
05:43:18 2 0.01 0.00 0.60 0.00 0.00 0.00 0.00 99.24 0.00 0.15
05:43:18 3 0.00 0.00 0.26 0.00 0.00 0.00 0.00 99.58 0.00 0.16
05:43:18 4 0.00 0.00 0.26 0.00 0.00 0.00 0.00 99.58 0.00 0.16
05:43:18 5 0.00 0.00 0.26 0.00 0.00 0.00 0.00 99.58 0.00 0.16
Memory Usage
============
total used free shared buffers cache available
Mem: 63593 50454 11717 2 205 1216 12535
Swap: 0 0 0
Disk Usage
==========
Filesystem Size Used Avail Use% Mounted on
/dev/sdb3 2.0G 1.4G 430M 77% /.old
devtmpfs 31G 4.0K 31G 1% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 2.1M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 32G 0 32G 0% /.old/tmp
tmpfs 32G 0 32G 0% /var/volatile
/dev/mapper/jvg_S-jlvmspare 6.8M 45K 6.2M 1% /spare
/dev/mapper/jvg_S-jlvmvm 6.4G 6.1G 0 100% /vm
/dev/mapper/jvg_S-jlvmjunos 32G 32G 0 100% /junos <<<<<<<<<<<<<<<<<<<<<
/dev/mapper/jvg_S-jlvmrootrw 3.3G 144M 3.0G 5% /.old/tdev/.union/.s
unionfs 3.3G 144M 3.0G 5% /
tmpfs 32G 52K 32G 1% /tmp
<--- After cleaning up
01:43:05 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
01:43:05 all 1.55 0.00 2.72 0.02 0.00 0.00 0.00 66.40 0.00 29.30
01:43:05 0 4.52 0.00 7.47 0.08 0.00 0.02 0.00 0.00 0.00 87.92
01:43:05 1 4.55 0.00 7.51 0.06 0.00 0.00 0.00 0.00 0.00 87.87
01:43:05 2 0.04 0.00 0.55 0.00 0.00 0.00 0.00 99.41 0.00 0.01
01:43:05 3 0.06 0.00 0.27 0.00 0.00 0.00 0.00 99.66 0.00 0.01
01:43:05 4 0.06 0.00 0.27 0.00 0.00 0.00 0.00 99.66 0.00 0.01
01:43:05 5 0.06 0.00 0.27 0.00 0.00 0.00 0.00 99.67 0.00 0.01
Mem: 63593 50460 6581 2 213 6338 12490
/dev/sda3 2.0G 1.1G 740M 60% /.old
/dev/mapper/jvg_P-jlvmvm 6.4G 5.8G 212M 97% /vm
/dev/mapper/jvg_P-jlvmspare 6.8M 45K 6.2M 1% /spare
/dev/mapper/jvg_P-jlvmjunos 32G 5.2G 25G 18% /junos <<<<<<<<<<<<<<<<<<<
/dev/mapper/jvg_P-jlvmrootrw 3.3G 135M 3.0G 5% /.old/tdev/.union/.s
unionfs 3.3G 135M 3.0G 5% /
tmpfs 32G 8.0K 32G 1% /tmp