title: How to add the VLAN information using virt-install to VM xml file?
body: <p>I'm trying to automate virtual machine creation but I'm having troubles adding the VLAN tag to the xml file via virt-install.</p>
  
  <pre><code>sudo virt-install --name hosp10 --memory 16384 --vcpus 4 \
    --disk /var/lib/libvirt/images/cloud-full.qcow2,format=qcow2,cache=none,target=vda \
    --boot kernel=/var/lib/libvirt/images/full.vmlinuz,initrd=/var/lib/libvirt/images/full.initrd,kernel_args="root=/dev/vda" \
    --network bridge=br-mgmt,model=virtio,virtualport_type=openvswitch,mac=XX:XX:XX:XX:XX:XX
  </code></pre>
  
  <p>I'm looking to add to --network something like vlan_id=100 but seems such option doesn't exist. Is there a way to have xml generated like the following?</p>
  
  <pre><code>&lt;interface type="bridge"&gt;
        &lt;source bridge="ovs-internal"/&gt;
        &lt;target dev='ext01'/&gt;
        &lt;vlan&gt;
          &lt;tag id='100'/&gt;
        &lt;/vlan&gt;
        &lt;model type="virtio"/&gt;
        &lt;virtualport type="openvswitch"/&gt;
        &lt;mac address='vv:vv:vv:vv:vv:vv' /&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>