From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 Received: by atuin.qyliss.net (Postfix, from userid 496) id BE4D754BD4; Thu, 14 Jan 2021 12:52:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 2665D54BA5; Thu, 14 Jan 2021 12:51:53 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 925EA54B88; Thu, 14 Jan 2021 12:51:50 +0000 (UTC) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by atuin.qyliss.net (Postfix) with ESMTPS id 2F0E154B86 for ; Thu, 14 Jan 2021 12:51:48 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D15831549; Thu, 14 Jan 2021 07:51:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 14 Jan 2021 07:51:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=0/3MD5GrBViCQtJ+Q+mRhBa/dr kwaObjO7O0sRuLW1w=; b=u2hl/irF/7Yk3vOj5eU6ceouwGVETs+CakUd30lvM/ PaJX+CXmfVrR22c0S9xQZsAMwSdG+UAbsPn3Y3WkseLLBtyxnq19lGYIkhIsSZrs FibsTNuiBoQlrmrz9Zi64zLprDKS3rQoYhvDEGJGi/CcASnCcGg7PwxMh0DkxPq4 +MGwk6//4y6Wfyc+DzovV/0n/ByLY3SMvLZdKJKBbrpFx4jybCtbFA5FRVRbsnaK 0BX4u+U9/+U1X5IeebPNqmBX46v3j00no+dA39R5ycUj4U4tKxq/mdOpYo2a0LDO KW931NIb5IrdQgnsgOIdEvmAvuJMmx2AC22RMAoKJ3sA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=0/3MD5 GrBViCQtJ+Q+mRhBa/drkwaObjO7O0sRuLW1w=; b=fZaYuMOG4K1mxURo0RIaOX 54XZ3CAy7EwuvbsfK1UTcX+pUYH3mOeoF6SXYKBFSiRxL9aty6nesuu0N+Seu+H/ qRtehaXSApK0yK5LL+SJ07/g6Z2AM8My4R5eiwCU+4poB6L8dqtnAKNlyURcij/R 8MfHp4skMm6Y0yN82IkcVMCKotiisdH3HR8vhzxM/9UijiR5RwY30H8oWY6WIbOG IqW4KelwtykJnLoPSHuRzZM5NsrCGOyyVSU9noqiuu0RtnBBh5XOMWlg9KW5zfoW SPKFPAzhummMx2kBOUNRgNnAfOjO3bvLy/jTcEluyyO6G+gi7F/hDnpAu/Uygzug == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrtddtgddulecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhffkfggtgesghdtreertd dttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheq necuggftrfgrthhtvghrnhepvdeuvdeivdehhfeikedtvddvhefgheffleevueeigffgtd ffffeujedujeejkeejnecukfhppeejledrvdefhedruddvuddrvdegheenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hish X-ME-Proxy: Received: from x220.qyliss.net (p4feb79f5.dip0.t-ipconnect.de [79.235.121.245]) by mail.messagingengine.com (Postfix) with ESMTPA id E9DC624005C; Thu, 14 Jan 2021 07:51:44 -0500 (EST) Received: by x220.qyliss.net (Postfix, from userid 1000) id 152A1932; Thu, 14 Jan 2021 12:51:44 +0000 (UTC) From: Alyssa Ross To: Thomas Leonard Subject: Re: New user getting started questions In-Reply-To: <87lfcvn1ln.fsf@alyssa.is> References: <87ble2czx6.fsf@alyssa.is> <87lfcvn1ln.fsf@alyssa.is> Date: Thu, 14 Jan 2021 12:51:42 +0000 Message-ID: <87bldrn0kh.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Message-ID-Hash: 3VXEKGJT5LDCUZBHMUMIFFSXTYIPRQRB X-Message-ID-Hash: 3VXEKGJT5LDCUZBHMUMIFFSXTYIPRQRB X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Michael Raskin <7c6f434c@mail.ru>, discuss@spectrum-os.org X-Mailman-Version: 3.3.1 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain >> >> OK, I tried like this: >> >> exec sudo "$mktuntap" -pvB 3 \ >> sudo -u "$USER" -C 4 \ >> "$crosvm" run \ >> -p init=/sbin/init \ >> -p "spectrumcmd=$(printf %s "$command" | base64 -w0)" \ >> --tap-fd 3 \ >> --seccomp-log-failures \ >> --root "$rootfs" \ >> --host_ip 10.0.0.1 \ >> --netmask 255.0.0.0 \ >> --mac c0:ff:ee:c0:ff:ee \ >> -m 4096 \ >> "$@" \ >> "$kernel" >> >> I got "sudo: you are not permitted to use the -C option", which I >> fixed by editing the sudoers file. Then it fails with: >> >> [ERROR:src/main.rs:1351] The architecture failed to build the vm: >> error creating devices: failed to set up virtio networking: failed to >> open tap device: failed to create tap interface: Operation not >> permitted (os error 1) >> >> Strace shows: >> >> openat(AT_FDCWD, "/dev/net/tun", O_RDWR|O_NONBLOCK|O_CLOEXEC) = 31 >> ioctl(31, TUNSETIFF, 0x7ffee7ede238) = -1 EPERM (Operation not permitted) >> >> Maybe it's just because my crosvm is too old? > > This is because if you specify --host_ip, --netmask, or --mac, crosvm > will try to create its own TAP device. If you omit all those arguments > I think it should work. Oh, whoops, I missed your reply about having worked this out already! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmAAPl4ACgkQ+dvtSFmy ccAd5Q/+MfrhkVF/h/e6FR50pwhkNiwg1F1Bi07iftf0phROtQCnmrpeDlpBqqcR /NxnmmKQXcs3rQuFYN6YV4Htw0/Eyqf31LPMYdhJWkt1a4wo8fZXL6wlNGPW5XtQ ITH+V6ElYOodstT9bv5a15Dc/Yb4sxtiRKiMXJ3rTrmDO5IkTRaRRoZSQx7iIJZh ZZBcE2oxOybtzjO8IYZGaEoDnLobocLmZzjDUvOaFkQoDySiiy8BDrOVZ8zql+uH iTAsJCakBcd9zUXs+1FWvaK0k7s+BnWMTJ3TUEvnoPrTlbMhC4+M+jxCHt46YCv2 3X+XuRlHKO7iEo+mJih7paK/oqFfJ/J2/GGnj4Djk/owtms5yJ7BTBVO3le6Bgkv /trNQXeCfSBvKIk7BvwZbmrzkTxUxyOSL7F2SI/t7XbfR/C4EQ66qCQeX6gz2j5s uCgrTKg98HGZoYYjKkKgnLrCtP7BVdLH3Fi9H6Jy8nJ8g+Xx3HxVstKLI4MWbrly 3lMuRqCcZNxcJ0r5RQRQ0lmZhRTM1Jsw2Vug8bH8E1Aq4GjGkchyHcnt85Wf2IzQ mJW3MnHcNHAiIOCGjleNrWARPKE2tpLmrj9UUx0zpvQ9aBS1WaR4zisC8CxO4ZMT lGAdXfF83UqpL/GTGpL6PFvbKXfgtz6YkrKwpffOcFwpm5r7l28= =gMr8 -----END PGP SIGNATURE----- --=-=-=--