Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[NFX] How to check integrity of QCOW2 file for VNF



Article ID: KB34345 KB Last Updated: 23 May 2019Version: 1.0

Is there a way to check to ensure QCOW2 or ISO file is not corrupted, as a result of a power failure?


Had a power failure at the site, and want to ensure the QCOW2 or ISO files for the Virtual-Network-Functions (VNF) is proper, and in good integrity.

  1. To check the file integrity of QCOW2 files for your VNF, you will need to go into hypervisor.

  2. Once in hypervisor, use the following command to check for file integrity:

    qemu-img info <path to qcow2 file>
    qemu-img check <path to qcow2 file>

  3. If there are no errors after running these commands, the file integrity is intact.


jdm:/var/third-party# ssh hypervisor
Last login: Mon May  6 17:34:51 2019 from jdm

root@localhost:~# qemu-img info /var/third-party/media-vsrx-vmdisk-15.1X49-D100.6.qcow2
image: /var/third-party/media-vsrx-vmdisk-15.1X49-D100.6.qcow2
file format: qcow2
virtual size: 16G (17179869184 bytes)
disk size: 3.3G
cluster_size: 65536
Format specific information:
    compat: 0.10
    refcount bits: 16
root@localhost:~# qemu-img check /var/third-party/media-vsrx-vmdisk-15.1X49-D100.6.qcow2
No errors were found on the image.
53726/262144 = 20.49% allocated, 0.53% fragmented, 0.00% compressed clusters
Image end offset: 3522953216
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search