---
name: "vnconfig"
section: "8"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/vnconfig"
---

# vnconfig(8)

configure vnode disks

## NAME

**vnconfig** – configure vnode disks

## SYNOPSIS

**vnconfig** \[**-v**\]\[ **-k** \| **-K** *rounds* \[**-S** *saltfile*\]\] \[**-t** *disktype*\] \[*vnd\_dev*\] *image*

**vnconfig** **-l** \[*vnd\_dev*\]

**vnconfig** **-u** \[**-v**\] *vnd\_dev*

## DESCRIPTION

The **vnconfig** command configures vnode pseudo disk devices. It will associate (or disassociate) the special file *vnd\_dev* with the regular file *image*, allowing the latter to be accessed as though it were a disk. If *vnd\_dev* is not specified, an unused one will be allocated and the name printed to *stdout*.

The options are as follows:

- **-K** *rounds*

  Associate an encryption key with the device. All data will be encrypted using the Blowfish cipher before it is written to the disk. The user is asked for both a passphrase and the name of a salt file. The salt file can also be specified on the command line using the **-S** option. The passphrase and salt are combined according to PKCS #5 PBKDF2 for the specified number of rounds to generate the actual key used. *rounds* is a number between 1000 and INT\_MAX. DO NOT LOSE THE SALT FILE.

- **-k**

  Associate an encryption key with the device. The user is asked for the encryption key. All data will be encrypted using the Blowfish cipher before it is written to the disk.

- **-l**

  List the vnd devices and indicate which ones are in use. If a specific *vnd\_dev* is given, then only that one will be described.

- **-S** *saltfile*

  When **-K** is used, specify the *saltfile*.

- **-t** *disktype*

  Specify a *disktype* entry from the [disktab(5)](/disktab/5.md) database. The *vnd\_dev* will have the sector size, sectors per track, and tracks per cylinder values of the specified *disktype*. The defaults are 512-byte sectors, 100 sectors per track and 1 track per cylinder.

- **-u**

  Unconfigure a *vnd\_dev*.

- **-v**

  Print messages to stderr describing actions taken.

## FILES

- */dev/{,r}vnd\**

  ## EXAMPLES

Configure a CD-ROM or DVD image file as vnode disk vnd0 and mount the ISO 9660 file system contained in it:

```
# vnconfig vnd0 /tmp/diskimage
# mount -t cd9660 /dev/vnd0c /mnt
```

Configure an encrypted image file as vnode disk vnd0 and mount the FFS file system contained in the ‘a’ partition of the disklabel. Same as above, but now configure the vnode using PKCS #5 PBKDF2 and a salt file with 20000 rounds:

```
# vnconfig -K 20000 vnd0 /tmp/cryptimg
Encryption key:
Salt file: /tmp/cryptsalt
# mount /dev/vnd0a /mnt
```

## SEE ALSO

[vnd(4)](/vnd/4.md), [disktab(5)](/disktab/5.md), [fstab(5)](/fstab/5.md), [mount(8)](/mount/8.md), [swapon(8)](/swapon/8.md), [umount(8)](/umount/8.md)

## HISTORY

The **vnconfig** command first appeared in OpenBSD 4.2.
