From nobody Wed Dec 01 14:10:27 2021 X-Original-To: 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 E57A718C1961 for ; Wed, 1 Dec 2021 14:11:05 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J41GK5VnPz4gYQ for ; Wed, 1 Dec 2021 14:11:05 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id n12so63298899lfe.1 for ; Wed, 01 Dec 2021 06:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZAtGY/tg8l41Tefh9wW6G8WoFnSPZf4lhmS99xgKoSc=; b=kz3yFtJzAwPvkz46DfWwZLgx/YaP1QXwRkcbzWBW2G1dVf7bh5++PI2Xsltmw+tBFI c/ui5pjN0emdUPiKFhumzn9iaPJTGh4RFNRfMSuL5Ccz2JgKsSFPjKTvWxnhnBecfjsh GQCkuS8Hw3hcLpuhzv7SKzcrXm74KoGG2XljxJp73wfaGbGreiqs4DqjcehYiq5chXoL 508rajzCy2GSLYor26la0NHR9H/yHbcXwTI8yoJHKf+ihQhr559DLJw1hv4yNlQN8WbM QBpKNb0OhJakEM2kwOwRsoJBnjHBWx4WuOw2T1VCj0R90fY9bYKHAJ7HZZIhbD29FwQD KjUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZAtGY/tg8l41Tefh9wW6G8WoFnSPZf4lhmS99xgKoSc=; b=IRYuFG4kyN9rkQFBId3IsNqh60xFwwJgiJh+riZQZKNPR3SokqjdfsYIWKuGxkKEwd r3B3O7MSuUC3mhP5DNuevEqnQXiYDT1ZfL1tXNDZY6WANFUFXrjUAlHNT3/KlnomNx2t WCxAj9tMDFfdZpNW8pJIeVV9uA6S2v0yKtw2n/G5UBZKav0b+uWlBUgAy+O6Pt3SYbn2 qpGMWcq9pRLCwELv3XLNFQW2EIYAKpz4A/U1hZBBcv8OnatzkbCxNqY+F0Rw57ij60ne x4YEDeuPAx/iwQ9dKYqApBRheVb5BVYTP7+q8sT454TuRfkGmkd7Yn0ebKFOyPFX5NDf QjJg== X-Gm-Message-State: AOAM532xmHeM1F9voW5AKz515XwlI1R5foz6EBMe/d6GO6FD+BJ5bB2X qERwkuH1UpIHIfIlOjFMeRd/XDGB1WBP0CoWXgE= X-Google-Smtp-Source: ABdhPJwEHsABHRRm3w9GfQuHcMJ5Ft+QyF5z1uKntinKVoBTXX3UJkLVIUBVUL1kELDGnZJGnlsuISEGaVb6kVk1/8k= X-Received: by 2002:ac2:4c4e:: with SMTP id o14mr6111689lfk.148.1638367864332; Wed, 01 Dec 2021 06:11:04 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <1786593170.587714.1638135091567@ichabod.co-bxl> <711266519.635448.1638165807735@ichabod.co-bxl> <3e5cfc26e781421ba0244d5c78c3a4d4@beckhoff.com> <878258613.80307.1638218553852@ichabod.co-bxl> <1556048440.260065.1638306076965@ichabod.co-bxl> <1056372565.291120.1638323893028@ichabod.co-bxl> In-Reply-To: <1056372565.291120.1638323893028@ichabod.co-bxl> From: Mario Marietto Date: Wed, 1 Dec 2021 15:10:27 +0100 Message-ID: Subject: Re: Bhyve CD-ROM To: Sysadmin Lists Cc: virtualization@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz>, =?UTF-8?Q?Corvin_K=C3=B6hne?= Content-Type: multipart/alternative; boundary="00000000000090a57a05d2163e48" X-Rspamd-Queue-Id: 4J41GK5VnPz4gYQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000090a57a05d2163e48 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable *This is the truth : * *YanVugenfirer * -s 9,virtio-9p,sharename=3D/mnt \ This is not the right device. The right device is virtio-fs. Not knowing bvyve, this probably should be -s 9,virtio-fs, unfortunately If I do : -s 9,virtio-fs,sharename=3D/mnt \ it does not work : so I suppose that bhyve does not support virtio-fs. Can someone confirm this ? Il giorno mer 1 dic 2021 alle ore 02:58 Sysadmin Lists < sysadmin.lists@mailfence.com> ha scritto: > I decided to jump down the rabbit hole, and it lead me to something even > easier. > I can create a memory disk from the ISO and pass the whole thing to Bhyve > as a virtio-blk device. > I can then mount the partition of the block device inside the guest to > access its contents: > > file -sL /media/Debian-11.1.0-amd64-DVD-1.iso > [...] ISO 9660 CD-ROM filesystem data [...] > mdconfig -at vnode /media/Debian-11.1.0-amd64-DVD-1.iso > bhyve -w -H \ > -s 0,hostbridge \ > -s 3,virtio-blk,/dev/zvol/zroot/bhyve_vms/debianvm \ > -s 4,virtio-blk,/dev/md0 \ > -s 5,virtio-net,tap0 \ > -s 29,fbuf,tcp=3D0.0.0.0:5914,w=3D800,h=3D600,wait \ > -s 31,lpc \ > -l com1,stdio \ > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd > debianvm > > And inside the guest vm: > > fdisk -l > # /dev/vdb1 ... Empty > # /dev/vdb2 ... EFI (FAT-12/16/32) > file -sL /dev/vdb1 > # [...] ISO 9660 CD-ROM filesystem data [...] > mount /dev/vdb1 /media/ > # [...] mounted read-only > ls /media/ > # [ rom contents ] > > Thanks for the tip. > > > ---------------------------------------- > > From: Sysadmin Lists via virtualization > > Sent: Tue Nov 30 22:01:17 CET 2021 > > To: , Miroslav Lachman <000.fbsd@quip.cz>, > Mario Marietto > > Cc: Corvin K=C3=B6hne > > Subject: Re: Bhyve CD-ROM > > > > > > That's a mighty-tempting looking rabbit hole you've got there .... > > > > > ---------------------------------------- > > > From: Miroslav Lachman <000.fbsd@quip.cz> > > > Sent: Tue Nov 30 13:27:32 CET 2021 > > > To: , Mario Marietto < > marietto2008@gmail.com> > > > Cc: Corvin K=C3=B6hne > > > Subject: Re: Bhyve CD-ROM > > > > > > If memory serves me right shorting the ISO (any disk device) by some > > > sectors can be done "on the fly" with gnop utility. > > > Something like gnop create -o ... > > > > > > Miroslav Lachman > > > -- > Sent with https://mailfence.com > Secure and private email > --=20 Mario. --00000000000090a57a05d2163e48--