{"id":107,"date":"2019-10-27T22:59:17","date_gmt":"2019-10-27T22:59:17","guid":{"rendered":"https:\/\/online.osba.nl\/blog\/?p=107"},"modified":"2019-10-27T22:59:17","modified_gmt":"2019-10-27T22:59:17","slug":"open-vswitch-on-proxmox","status":"publish","type":"post","link":"https:\/\/blog.osba.nl\/en\/2019\/10\/27\/open-vswitch-on-proxmox\/","title":{"rendered":"Open vSwitch on Proxmox"},"content":{"rendered":"\n<p>Since Open vSwitch (ovs) and Linux bridging <a href=\"https:\/\/pve.proxmox.com\/wiki\/Open_vSwitch#Overview\">can&#8217;t mix,<\/a> it is advised to switch to ovs before creating a whole lot of bridges.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install openvswitch-switch<\/pre>\n\n\n\n<p>In networking of the node, I deleted vmbr0 of type=linux bridge, and added a new bridge vmbr0 of type ovs  bridge. Proxmox likes to reboot after that, perhaps a restart of networking had been enough. Only restarting openvswitch-switch was not enough. <\/p>\n\n\n\n<p>A presentation on an Open vSwitch conference suggested to edit two files:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\/etc\/default\/lxc-net<ul><li>set USE_LXC_BRIDGE=&#8221;false&#8221;<\/li><\/ul><\/li><li>\/etc\/lxc\/default.conf<ul><li>set lxc.net.0.link = ovsbr1   ; would be vmbr0 in my case<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>The first is already set in \/etc\/default\/lxc. The file lxc-net does not exist (though it is referenced in the lxc file).<\/p>\n\n\n\n<p>The second file is almost empty, it has only the line &#8216;lxc.net.0.type = empty&#8217;. <\/p>\n\n\n\n<p>Adding a new container uses vmbr0 by default; now I don&#8217;t know whether that is because I named the new bridge the same as the old one, or because OVS is being used by default. <\/p>\n\n\n\n<p>Anyway: the container asked for a DHCP lease and received it from the router. <\/p>\n\n\n\n<p><\/p>\n<p class=\"wpf_wrapper\"><a class=\"print_link\" href=\"\" target=\"_blank\">Print this entry<\/a><\/p><!-- .wpf_wrapper -->","protected":false},"excerpt":{"rendered":"<p>Since Open vSwitch (ovs) and Linux bridging can&#8217;t mix, it is advised to switch to ovs before creating a whole lot of bridges. # apt install openvswitch-switch In networking of the node, I deleted vmbr0 of type=linux bridge, and added a new bridge vmbr0 of type ovs bridge. Proxmox likes to reboot after that, perhaps &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.osba.nl\/en\/2019\/10\/27\/open-vswitch-on-proxmox\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Open vSwitch on Proxmox&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"107","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[15,19,17],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-homeserver","category-open-vswitch","category-proxmox","en-US"],"_links":{"self":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":2,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts\/107\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}