From nobody Mon Jun 17 12:23:22 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W2pw235zbz5NnSP for ; Mon, 17 Jun 2024 12:24:02 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W2pw21BRBz4j6j for ; Mon, 17 Jun 2024 12:24:02 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-25837a78858so1976052fac.2 for ; Mon, 17 Jun 2024 05:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718627040; x=1719231840; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r/3BlzoYvmJwtqnEcbflcSebNKuBXzkROq5Zi0CkPIk=; b=GXGcA1q4EpQzaE0Xzyuy77ThWwQspMdzXIWVgrzpZUTA/m6Noc1s+UDL0stFsM9bk9 WhQAt6Vy5sitczRgIhxMMabzpiDEC7Gs/CJkwutkc1C7FXxJkW8iNtx/dtq+2pW4Aah5 Hf4p9rVFkum60ZfEAtKmTf9hIKWXquP8DKxbihrJEW9HlWACxsN7K6Te1KS4BkH+Mrc0 wZcooypaEntdMS2wNtdtFzuLQaplnBNZFmZfoJIIasCo+1lRGi7XdTTjGPKQ8lwTWsYg XB8s+wwY5ZdXhLd2Bo0OrLMdT0dxndgPQ+14nPgTxmEn+YtaafObLrYFZW7JeNFxzzwz Yoxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718627040; x=1719231840; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r/3BlzoYvmJwtqnEcbflcSebNKuBXzkROq5Zi0CkPIk=; b=laAGWRp99AYLuEiWwbSZ11qskZzVVXgrP1e0WCqCN9puROoQgRgcUBo9s0VPA5NBsZ 8BjbwoKOjrvud34gPFwFj1X3n3580I+g7DDp+Gwmjd14AI8urs0g6IuvQwGA0Uu3QDqY 6IZGhOYgsMQW8ziah1Of877ABQCsi5I+AUD1rYkmxIPAyH/KJBmfJ8jtCA95eFq+o+h7 K6hoFl6WTu8Kit/k5hmdyU9RjHq8li5I2JTWM2IkvCppatBXHaYsiSbjj5046Z2P/TRa 7ivqPmCuPVX0GcpieqitcnBcTPDCZ9saXlkJT7XPXaoRkHSOfd9Y9FK0cRfszxIcTMH1 Rtlw== X-Gm-Message-State: AOJu0YygHW0i6nadWnDZj6REwAwr0H1axYBx97Y1SbgreRBQPoMdzU36 ginQJgpEX9lvGUQx401XXFSfQ8O/o7Bx8TDkdQ6kREWWKkh8sVj0z3qNsuHT6sO0i0CyuebQ5Tb EIjVUzHYllMsJVhdUF1dB34mbYg0EKa+5g11tyg== X-Google-Smtp-Source: AGHT+IHokv9dwEuqVyIwBjQXT8oJNOOXt8kA/2GdJ1Gnke7TUQ3JBEeKLBmF8sM7Bvb1hWuUGwtNbBdZ6ojsE8bfS90= X-Received: by 2002:a05:6870:b69e:b0:254:bd24:de8c with SMTP id 586e51a60fabf-2584287de5emr9899738fac.5.1718627040089; Mon, 17 Jun 2024 05:24:00 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Odhiambo Washington Date: Mon, 17 Jun 2024 15:23:22 +0300 Message-ID: Subject: Re: How to launch a bhyve vm as normal user,without being root To: Mario Marietto Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000039e17f061b150adb" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US] X-Rspamd-Queue-Id: 4W2pw21BRBz4j6j --00000000000039e17f061b150adb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 17, 2024 at 2:19=E2=80=AFPM Mario Marietto wrote: > Hello. > > someone of you has been able to launch a bhyve vm as user using doas ? > > I'm trying but without success. First of all I created my doas.conf : > > > nano /usr/local/etc/doas.conf > > permit nopass :marietto cmd bhyve > permit nopass :marietto cmd vm-create > > permit nopass marietto as root cmd bhyve --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --00000000000039e17f061b150adb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Jun 17, 2024 at 2:19=E2=80=AF= PM Mario Marietto <marietto200= 8@gmail.com> wrote:
=20 =20 =20 =20 =20

Hello.

someone of you has been able to launch a bhyve vm as user using doas ?

I'm trying but without success. First of all I created my doas.conf= :


nano /usr/local/etc/doas.conf

permit nopass :marietto cmd bhyve
permit nopass :marietto cmd vm-create

permit nopass marietto as root cmd= bhyve

-- <= br>
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 320= 0 0004/+254 7 2274 3223
=C2= =A0In=C2=A0an Internet failure c= ase, the #1 suspect is a constant: DNS.
"Oh, the cruft.",= =C2=A0egrep -v '^$|^.*#'=C2= =A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]<= /div>
--00000000000039e17f061b150adb--