From owner-freebsd-virtualization@freebsd.org Mon Oct 15 16:11:06 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D50810B79C7 for ; Mon, 15 Oct 2018 16:11:06 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CAD457A1FB for ; Mon, 15 Oct 2018 16:11:05 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: by mail-lf1-x12f.google.com with SMTP id o21-v6so14527089lfe.0 for ; Mon, 15 Oct 2018 09:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=6cQ+tclRbzB+Ta6XY9lxovlhUCdZdvHMP+VRN2G3jrA=; b=ZnJbVFYUE68UAXJU7gAl1oTbN8f0IUOBvFBCwfMDEUqV024MueeB7ohvZCTd4W1V52 Mb+NPCiz5GJTHHTJ7FwZxEPb0LECHsHhGQXdqXqT7vOSHLRn7LHwZ9WLOU6JvrAlgiZa 2OM8vOKUrMKRSjySTuMpVV++RZfAcdMogF+tbtV6KLufF0NkwdQlOppgoTf9hxP0LS/F QDU8YBNGdRwRMRbSJA2W5yvf7RWwrt8F/2jyfNAxR4Bh+y+oG+YlbjIaCo4KPlGaBOLB FdXEf5UQe7N/3jgH4UkQ00j8QI9F4v7eZqeeJ8e3c+Vfpga7tcyD5PHCyyhaU/ztd5sY bxZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=6cQ+tclRbzB+Ta6XY9lxovlhUCdZdvHMP+VRN2G3jrA=; b=aVvGGHQH71Wgh41HHkpGYmWGTqlZ22wnKmzqOgeulv0Gv1Gz1UN7wByGNEErZbJ36X NN54T0bsLo0OsKUCkDOqxvIycVozMIro+kMaFdYZqSkVJtTRBpjikXqj/oSwwDkfTKVD I7uLifG9pQuGIxUHiKmE3YnUcNZVy2vZPLVy0iaKWJOEMlLG2cRykt9MujLlAXXv5LYA D/0Sr3JniNJmbB7iCUVhANbiq3qFNedcmqAl+yEGPXGbjYSTYlXX3gu5s1m1YvcMZ7UE oMEj6mWa+NNiuPKKTRQsby6z5d+46znotwYM1ARo1SW5gCTkARoCARZ9LZqgcm0f8vMi EYgA== X-Gm-Message-State: ABuFfohqRyqk0Jx23aXZvHJCweA983n+pp4GiZQDo7aMRbfYz4Go6HRS fTi19iePRP8/zC6D8p/yc3OgFJ6wWRxAgEPMlC3RLeuo X-Google-Smtp-Source: ACcGV61QLzzZ+Tbadv9BgkQwkBwP4ei4xiDjGNrxLY8VGlGmWq/Dun6uUHt4ZR0llXyIZ9k2RQ3+cgWwTEbNAvbW9JQ= X-Received: by 2002:a19:4ed5:: with SMTP id u82-v6mr1087738lfk.77.1539619864169; Mon, 15 Oct 2018 09:11:04 -0700 (PDT) MIME-Version: 1.0 References: <02210D52-A45B-4E54-BCEE-EC61026B70C0@lists.zabbadoz.net> In-Reply-To: <02210D52-A45B-4E54-BCEE-EC61026B70C0@lists.zabbadoz.net> Reply-To: araujo@freebsd.org From: Marcelo Araujo Date: Tue, 16 Oct 2018 00:10:50 +0800 Message-ID: Subject: Re: bhyve on reboot loses tap(4) configuration To: bzeeb-lists@lists.zabbadoz.net Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 16:11:06 -0000 Em ter, 16 de out de 2018 =C3=A0s 00:06, Bjoern A. Zeeb < bzeeb-lists@lists.zabbadoz.net> escreveu: > Hi, > > I tried to use bhyve with the tap(4)/vtnet(4) solution as documented in > the handbook (tap needs autoopen). > However, I am using no bridge(4) interface but a =E2=80=9Cpoint-to-point= =E2=80=9D > configuration. > > Example: > guest configures vtnet0 to 192.0.2.2/24 > host configures tap0 to 192.0.2.1/24 > > When rebooting the guest inside the bhyve, it seems bhyve loses the > outside tap0 configuration. I assume that is because the tap0 interface > is closed and re-opened on the =E2=80=9Cwarm restart=E2=80=9D. > > Apart from using devd and possibly tracking tap interfaces to come up > and track things there, is there are better solution for not having to > reconfigure the host interface on every guest reboot? > Not sure if I understood well your case, but have you tried to set this sysctl: net.link.tap.up_on_open? Best, --=20 --=20 Marcelo Araujo (__)araujo@FreeBSD.org \\\'',)http://www.FreeBSD.org \/ \ ^ Power To Server. .\. /_)