Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Add a Virtio Virtual Interface to a vSRX VM with KVM

You can add additional virtio virtual interfaces to an existing vSRX VM with KVM.

To add additional virtio virtual interfaces to a vSRX VM using virt-manager:

  1. In virt-manager, double-click the vSRX VM and select View>Details. The vSRX Virtual Machine details dialog box appears.
  2. Click Add Hardware. The Add Hardware dialog box appears.
  3. Select Network from the left navigation panel.
  4. Select the host device or virtual network on which you want this new virtual interface from the Network source list.
  5. Select virtio from the Device model list and click Finish.
  6. From the vSRX console, reboot the vSRX instance.

    vsrx# request system reboot.

    vSRX reboots both Junos OS and the vSRX guest VM.

To add additional virtio virtual interfaces to a vSRX VM using virsh:

  1. Use the virsh attach-interface command on the host OS with the mandatory options listed in Table 1.

    Note:

    See the official virsh documentation for a complete description of available options.

    Table 1: virsh attach-interface Options

    Command Option

    Description

    --domain name

    Specify the name of the guest VM.

    --type

    Specify the host OS connection type as bridge or network.

    --source interface

    Specify the physical or logical interface on the host OS to associate with this vNIC.

    --target vnic

    Specify the name for the new vNIC.

    --model

    Specify the vNIC model.

    The following example creates a new virtio vNIC from the host OS virbr0 bridge.

  2. From the vSRX console, reboot the vSRX instance.

    vsrx# request system reboot.

    vSRX reboots both Junos OS and the VSRX guest VM.