{"action":"created","issue":{"url":"https://api.github.com/repos/pr1ntf/iohyve/issues/124","repository_url":"https://api.github.com/repos/pr1ntf/iohyve","labels_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/124/comments","events_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/124/events","html_url":"https://github.com/pr1ntf/iohyve/issues/124","id":145902371,"number":124,"title":"Handling use case when bridge0 is already there. ","user":{"login":"allenmchan","id":6182238,"avatar_url":"https://avatars.githubusercontent.com/u/6182238?v=3","gravatar_id":"","url":"https://api.github.com/users/allenmchan","html_url":"https://github.com/allenmchan","followers_url":"https://api.github.com/users/allenmchan/followers","following_url":"https://api.github.com/users/allenmchan/following{/other_user}","gists_url":"https://api.github.com/users/allenmchan/gists{/gist_id}","starred_url":"https://api.github.com/users/allenmchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenmchan/subscriptions","organizations_url":"https://api.github.com/users/allenmchan/orgs","repos_url":"https://api.github.com/users/allenmchan/repos","events_url":"https://api.github.com/users/allenmchan/events{/privacy}","received_events_url":"https://api.github.com/users/allenmchan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-05T06:35:57Z","updated_at":"2016-04-06T06:20:11Z","closed_at":null,"body":"I realize this is more of a question than an issue. \r\nI am running freenas 9.10 which is running freebsd 10.3 as a backend.\r\n\r\nI have jails running that created a bridge0 already.\r\nWhen using iohyve to install VMs, i get the error that bridge0 is already created.\r\n\r\nI have been googling but cannot find how i should proceed.\r\n\r\nThe debian VM is created with iohyve but there is no networking. \r\n\r\nWhat i have tried: \r\n1. I manually added the tap0 as a member of bridge0\r\n2. I have tried all variations of set net=[igb1|tap0|bridge0] and none would work\r\n* My tests are pinging from the freenas host to the ip assigned to ubuntu VM and the other way around\r\n\r\nHere is the ifconfig output\r\nigb0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO>\r\n\tether 00:25:90:4b:f9:c8\r\n\tnd6 options=9<PERFORMNUD,IFDISABLED>\r\n\tmedia: Ethernet autoselect (1000baseT <full-duplex>)\r\n\tstatus: active\r\n\r\nigb1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=400b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO>\r\n\tether 00:25:90:4b:f9:c9\r\n\tinet 192.168.0.106 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tinet 192.168.0.186 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tinet 192.168.0.187 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tinet 192.168.0.188 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tnd6 options=9<PERFORMNUD,IFDISABLED>\r\n\tmedia: Ethernet autoselect (1000baseT <full-duplex>)\r\n\tstatus: active\r\n\r\nlo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384\r\n\toptions=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>\r\n\tinet6 ::1 prefixlen 128\r\n\tinet6 fe80::1%lo0 prefixlen 64 scopeid 0x3\r\n\tinet 127.0.0.1 netmask 0xff000000\r\n\tnd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>\r\n\r\nbridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\tether 02:59:dc:8e:5f:00\r\n\tnd6 options=1<PERFORMNUD>\r\n\tid 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15\r\n\tmaxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200\r\n\troot id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0\r\n\tmember: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>\r\n\t        ifmaxaddr 0 port 6 priority 128 path cost 55\r\n\tmember: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>\r\n\t        ifmaxaddr 0 port 5 priority 128 path cost 2000\r\n\tmember: igb1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>\r\n\t        ifmaxaddr 0 port 2 priority 128 path cost 20000\r\n\r\nepair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=8<VLAN_MTU>\r\n\tether 02:ff:20:00:05:0a\r\n\tnd6 options=1<PERFORMNUD>\r\n\tmedia: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)\r\n\tstatus: active\r\n\r\ntap0: flags=8942<BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=80000<LINKSTATE>\r\n\tether 00:bd:ea:c8:f9:00\r\n\tnd6 options=9<PERFORMNUD,IFDISABLED>\r\n\tmedia: Ethernet autoselect\r\n\tstatus: active\r\n\tOpened by PID 12482"},"comment":{"url":"https://api.github.com/repos/pr1ntf/iohyve/issues/comments/206137818","html_url":"https://github.com/pr1ntf/iohyve/issues/124#issuecomment-206137818","issue_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/124","id":206137818,"user":{"login":"allenmchan","id":6182238,"avatar_url":"https://avatars.githubusercontent.com/u/6182238?v=3","gravatar_id":"","url":"https://api.github.com/users/allenmchan","html_url":"https://github.com/allenmchan","followers_url":"https://api.github.com/users/allenmchan/followers","following_url":"https://api.github.com/users/allenmchan/following{/other_user}","gists_url":"https://api.github.com/users/allenmchan/gists{/gist_id}","starred_url":"https://api.github.com/users/allenmchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenmchan/subscriptions","organizations_url":"https://api.github.com/users/allenmchan/orgs","repos_url":"https://api.github.com/users/allenmchan/repos","events_url":"https://api.github.com/users/allenmchan/events{/privacy}","received_events_url":"https://api.github.com/users/allenmchan/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T06:20:11Z","updated_at":"2016-04-06T06:20:11Z","body":"This is the output of ifconfig -v\r\n\r\n[root@freenas] ~# ifconfig -v\r\nigb0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO>\r\n\tether 00:25:90:4b:f9:c8\r\n\tnd6 options=9<PERFORMNUD,IFDISABLED>\r\n\tmedia: Ethernet autoselect (1000baseT <full-duplex>)\r\n\tstatus: active\r\nigb1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=400b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO>\r\n\tether 00:25:90:4b:f9:c9\r\n\tinet 192.168.0.106 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tinet 192.168.0.186 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tinet 192.168.0.187 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tinet 192.168.0.188 netmask 0xffffff00 broadcast 192.168.0.255\r\n\tnd6 options=9<PERFORMNUD,IFDISABLED>\r\n\tmedia: Ethernet autoselect (1000baseT <full-duplex>)\r\n\tstatus: active\r\nlo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384\r\n\toptions=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>\r\n\tinet6 ::1 prefixlen 128\r\n\tinet6 fe80::1%lo0 prefixlen 64 scopeid 0x3\r\n\tinet 127.0.0.1 netmask 0xff000000\r\n\tnd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>\r\n\tgroups: lo\r\nbridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\tether 02:59:dc:8e:5f:00\r\n\tnd6 options=1<PERFORMNUD>\r\n\tgroups: bridge\r\n\tid 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15\r\n\tmaxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200\r\n\troot id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0\r\n\tmember: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>\r\n\t        ifmaxaddr 0 port 6 priority 128 path cost 55\r\n\tmember: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>\r\n\t        ifmaxaddr 0 port 5 priority 128 path cost 2000\r\n\tmember: igb1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>\r\n\t        ifmaxaddr 0 port 2 priority 128 path cost 20000\r\nepair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=8<VLAN_MTU>\r\n\tether 02:ff:20:00:05:0a\r\n\tnd6 options=1<PERFORMNUD>\r\n\tmedia: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)\r\n\tstatus: active\r\n\tgroups: epair\r\ntap0: flags=8942<BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500\r\n\toptions=80000<LINKSTATE>\r\n\tether 00:bd:ea:c8:f9:00\r\n\tnd6 options=9<PERFORMNUD,IFDISABLED>\r\n\tmedia: Ethernet autoselect\r\n\tstatus: active\r\n\tgroups: tap\r\n\tOpened by PID 12482\r\n\r\n\r\n[root@freenas] ~# iohyve getall ubuntuguest\r\nGetting ubuntuguest props...\r\npersist      1\r\ntap          tap0\r\ncon          nmdm0\r\ninstall      no\r\nloader       grub-bhyve\r\nboot         0\r\nnet          igb1\r\nname         ubuntuguest\r\ndescription  Mon_Apr__4_20:26:13_PDT_2016\r\nos           debian\r\nsize         20G\r\nautogrub     \\n\r\nram          1024M\r\nbargs        -A_-H_-P\r\ncpu          2"}}