From nobody Tue Nov 30 21:41:05 2021 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 AE52818B5CC4 for ; Tue, 30 Nov 2021 21:41:08 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 4J3bJ44Bvpz3kKn for ; Tue, 30 Nov 2021 21:41:08 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-qk1-x736.google.com with SMTP id i9so28518238qki.3 for ; Tue, 30 Nov 2021 13:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20210112.gappssmtp.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dtscQhFWvKpnfxIqxXFf574ZUqjHfp8qM7ZPUOPvfOs=; b=b1jwZO0jDbSMcQsisLKPMK4YiS/PLgh0OCsuX3X4PG/FSB8flWVXW4W8ju70+mjPU3 mKX8wYRqC6TnoSIXAjSv4G6nBh4Uy5nSt6s+PWuN8BHiyVKIRpxCoUBXPNIsa8FU7P2b 2DlUcb/GpI/bOxD6rC0WoFe6sRBcKwpXDkBqIaFo/Mk8kUiLSaSrUHf9ODpLBdZgJbbf bG0XWf3bYadrKV8GdAlPfzvf5VF9kaG6wRteFItyHAoBTOjxc4dq6mktCTcuyBHb1DtF qbMUo/b1d4HX/uHaHykdRcRMsy+DILamWiuDLy425SFdsDa5Pf+3FKOskR3pP7RrpyyT zCwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dtscQhFWvKpnfxIqxXFf574ZUqjHfp8qM7ZPUOPvfOs=; b=fuz/PW/JqXnhQ4qYOBzq2pRi78mFN2efQEPAsTqED2KwMspOIRkix9nKcDrnb9eQSV yEAvkO1lgaqjoDk1QNdpotYO411kHx7w5n1k1TmCIyEk/521bYi1B78D8QPZSyM+n7nr XCmMNJT7TDa3eEDBVl99JTcZT/qKIBKKTzHVrWcqDUnlVq9P/z5Vitnl6ec0tZB2B5mA dWEcpa/OMr22Hmv+aBv7UkTGKLSLpbfJSjNZqQrU4h08ad+pth96ibaI87HTOQg87K13 VtrFJ3ujajP39INoWwyytPI5YWPQlI1DC0D/T5fI4vhDGbebTqZAfGvPEUn/G3cky3M6 1KgQ== X-Gm-Message-State: AOAM5320Di15fm0QJevQw+Cdfw8G+imBi90YIzqzq+frMbGEPmyfcZHx ILsoqFKhBR/17D1PHJY/+9WraaJTXHWNMA== X-Google-Smtp-Source: ABdhPJy4NbZDPLBkNoqt0bggoMgkXM6wWhJNYT8DweYAMtTcXGNSm5eLmtvRcRtNlJ4XLv+3SbNF4w== X-Received: by 2002:a05:620a:1192:: with SMTP id b18mr2153896qkk.393.1638308468122; Tue, 30 Nov 2021 13:41:08 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id b11sm11546303qtx.85.2021.11.30.13.41.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Nov 2021 13:41:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: Bhyve CD-ROM From: Bakul Shah In-Reply-To: <951253309.258922.1638305495927@ichabod.co-bxl> Date: Tue, 30 Nov 2021 13:41:05 -0800 Cc: =?utf-8?Q?Corvin_K=C3=B6hne?= , Mario Marietto , Freebsd Virtualization Content-Transfer-Encoding: quoted-printable Message-Id: <1BF2D752-2F3F-497B-8932-3A0BFAF1BD9B@iitbombay.org> References: <1786593170.587714.1638135091567@ichabod.co-bxl> <711266519.635448.1638165807735@ichabod.co-bxl> <3e5cfc26e781421ba0244d5c78c3a4d4@beckhoff.com> <878258613.80307.1638218553852@ichabod.co-bxl> <724392928.94209.1638225100654@ichabod.co-bxl> <1b7acfc7b88a46bfbbb9f4b6444f3c2d@beckhoff.com> <951253309.258922.1638305495927@ichabod.co-bxl> To: sysadmin.lists@mailfence.com X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Rspamd-Queue-Id: 4J3bJ44Bvpz3kKn X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N FWIW, I had no trouble installing Debian 5.10.something in a VM. I am using 13.0-STABLE but this should also work on 13.0-RELEASE. When booting from a disk, I just remove the cdrom line from bhyve command line (as shown below). # cat debian/run bhyve -c 2 \ -s 0,hostbridge \ -s 5,nvme,debian.img \ -s 8,virtio-9p,sharename=3D/vm-share/debian \ -s 10,virtio-net,tap6,mac=3D58:9c:fc:XX:XX:XX \ -s 20,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l com1,/dev/nmdm6B \ -m 4G -H \ -s 11,fbuf,tcp=3D0.0.0.0:5909,wait \ debian exit -s 4,ahci-cd,debian.iso \ In the VM: $ uname -a Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 = GNU/Linux The share was mounted with # mount -t 9p -o trans=3Dvirtio,cache=3Dmmap,version=3D9p2000.L,rw = sharename /mnt # partx /dev/nvme0n1 NR START END SECTORS SIZE NAME UUID 1 2048 391167 389120 190M ESP ... 2 391168 132227071 131835904 62.9G root ... 3 132227072 134215679 1988608 971M swap ... I did a manually install as I wanted to play with xfs but otherwise it was just standard install, no other hacks. > On Nov 30, 2021, at 12:51 PM, Sysadmin Lists via = freebsd-virtualization wrote: >=20 > It boots fine without the ISO. The commands you listed were part of = the installation guide I followed. > If the expectation is that the device number sets the boot order, any = idea why it doesn't work for me? >=20 >> ---------------------------------------- >> From: Corvin K=C3=B6hne >> Sent: Tue Nov 30 07:25:50 CET 2021 >> To: Sysadmin Lists , Mario Marietto = >> Cc: Freebsd Virtualization >> Subject: RE: Bhyve CD-ROM >>=20 >>=20 >> Does your system boot without the ISO file? >> In order to boot Debian you have to move your bootloader: = https://blahg.josefsipek.net/?p=3D595 >>=20 >> This is not a Debian bug, but rather bhyve=E2=80=99s EFI support = being incomplete. The easiest way around this is to copy the Debian = binary into the standard location immediately after installation. In = other words: >>=20 >> # cd /boot/efi/EFI >> # mkdir BOOT >> # cp debian/grubx64.efi BOOT/bootx64.efi >=20 >=20 > --=20 > Sent with https://mailfence.com =20 > Secure and private email >=20