<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Dear all:</div><div>I start a VM with MTU size 1450, and login VM to check the mtu size, but this setting didn't work. </div><div>The VM xml is like this:</div><div><div><interface type='bridge'></div><div>      <mac address='52:54:00:54:14:f8'/></div><div>      <source bridge='ovsbr1'/></div><div>      <virtualport type='openvswitch'></div><div>        <parameters interfaceid='a42e5b42-09db-4cfa-b198-d2ce62843378'/></div><div>      </virtualport></div><div>      <target dev='vnet0'/></div><div>      <model type='virtio'/></div><div>      <mtu size='1450'/></div><div>      <alias name='net0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div>    </interface></div></div><div><br></div><div>However, the actual mtu size of VM is still 1500, as following:</div><div><pre style="width: 1076.34px;">root@ubuntu-zhf:~# ip addr</pre><pre style="width: 1076.34px;">2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000</pre><pre style="width: 1076.34px;">    link/ether <span style="font-family: Arial; white-space: normal;">52:54:00:54:14:f8</span> brd ff:ff:ff:ff:ff:ff</pre></div><div>The MTU size of both ovs bridge and vnet are 1450 in my <span style="font-family: arial; white-space: pre-wrap;">hypervisor</span>:</div><div><div>root@ubuntu-191:~# ip addr show ovsbr1</div><div>16: ovsbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1</div><div>    link/ether 12:01:7b:5b:85:49 brd ff:ff:ff:ff:ff:ff</div><div>    inet6 fe80::1001:7bff:fe5b:8549/64 scope link </div><div>       valid_lft forever preferred_lft forever</div><div>root@ubuntu-191:~# ip addr show vnet0</div><div>22: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000</div><div>    link/ether fe:54:00:54:14:f8 brd ff:ff:ff:ff:ff:ff</div><div>    inet6 fe80::fc54:ff:fe54:14f8/64 scope link </div><div>       valid_lft forever preferred_lft forever</div></div><div><br></div><div><br></div><div>I use ovs to create vxlan networks and add VMs to the ovs bridge. Because of the limitations of vxlan, I need to set the mtu of vm to 1450.</div><div>How to set the MTU of VM?  <span style="font-family: arial; white-space: pre-wrap;">Thanks.</span></div><div><pre style="width: 1076.34px;">Below some information about my hypervisor:<br></pre><pre style="width: 1076.34px;">root@ubuntu-192:~# virsh -V
Virsh command line tool of libvirt 3.4.0
See web site at http://libvirt.org/

Compiled with support for:
 Hypervisors: QEMU/KVM LXC UML OpenVZ VMware VirtualBox Test
 Networking: Remote Network Bridging Interface udev Nwfilter VirtualPort
 Storage: Dir Filesystem SCSI Multipath iSCSI LVM
 Miscellaneous: Daemon Nodedev SELinux Secrets Debug Modular</pre><pre style="width: 1076.34px;">root@ubuntu-192:~# qemu-x86_64 --version
qemu-x86_64 version 2.9.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers<br></pre><pre style="width: 1076.34px;">root@ubuntu-192:~# uname -a
Linux ubuntu-192 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</pre></div></div>