console type = "pty" target_port = "0"

disk volume_id = libvirt_volume.nxosv9k.id

<domain type='kvm'> <name>nxosv9k-test</name> <memory unit='GB'>4</memory> <vcpu>2</vcpu> <os> <type arch='x86_64' machine='pc-q35-2.9'>hvm</type> <boot dev='hd'/> </os> <devices> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <interface type='bridge'> <source bridge='br0'/> <model type='virtio'/> </interface> </devices> </domain> Save this as nxosv9k-plugin.xml and deploy with:

resource "libvirt_volume" "nxosv9k" name = "nxosv9k-7.0.3" source = "/path/to/nxosv9k-7.0.3.i7.4.qcow2" format = "qcow2"

network_interface network_name = "mgmt"