Syntax
image {
file-path;
bus-type [ide | virtio];
driver-cache {
default-cache;
directsync;
none;
unsafe;
writeback;
writethrough;
}
image-type [qcow2 | raw];
}
Hierarchy Level
[edit virtual-network-functions]
Description
Specify the VNF image source file. VNF image is
virtual hard disk, which contains the bootable file-system for the
VNF.
Options
file-path |
Path of the image source
file
|
image-type |
Format of the image. Default value is qcow2.
|
bus-type |
Type of the system bus. Default value is virtio.
|
driver-cache |
Type of the driver cache mode. Default mode is default-cache
-
default-cache—Default mode when you do not specify any driver
cache mode.
-
directsync—Enables the hypervisor to interact with the disk image
file or block device with both O_DSYNC and
O_DIRECT semantics. The hypervisor reports
that the writes are completed only when the data is committed to
the storage device, and when it is also desirable to bypass the
host page cache.
-
none—Enables the hypervisor to interact with the disk image file
or block device with O_DIRECT semantics. The
hypervisor bypasses the host page cache and I/O happens directly
between the hypervisor user space buffers and the storage
device.
y.
-
unsafe—Ignores all flush commands from the guests. Using this
mode implies that the user has accepted the trade-off of
performance over risk of data loss in case of a host
failure.
-
writeback—Enables the hypervisor to interact with the disk image
file or block device with neither O_DSYNC nor
O_DIRECT semantics. The hypervisor uses the
host page cache and reports the writes to the guest as completed
when the writes are in the host page cache.
-
writethrough—Enables the hypervisor to interact with the disk
image file or block device with O_DSYNC
semantics. The hypervisor reports the writes as
completed only when the data is committed to the storage
device.
|
Required Privilege Level
routing—To view this statement in the
configuration.routing-control—To add this statement
to the configuration.
Release Information
Statement introduced in Junos OS Release
15.1X53-D45.