From nobody Mon Nov 29 13:36:15 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 A554B18B969D for ; Mon, 29 Nov 2021 13:36:53 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 4J2mbn0c1xz4vPg for ; Mon, 29 Nov 2021 13:36:53 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-lj1-x233.google.com with SMTP id i63so34500102lji.3 for ; Mon, 29 Nov 2021 05:36:53 -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=8zifyYdhe7helAKXXLxiFO9llKh8KvPwdfxuS/eaxFg=; b=DHJB3QxaZQXUWeOnvWDAkgFLcG7erRiEPi1eOgLP/+iBYMQf0vFCIRib7juOfKncj6 izBEtnM+ZjygkiC8ziYqa3/4REpjxc5dm5XiB21XQKlMery84DrWLyVE8jXyJeLH8wVy AljcHiRdMEXMxetZ0nMUap/sio+pwCHveQXyUuLIEc5+zJiUEeU2F6IxQjVQLDXxVF15 ddAak5U5y9AEfTkNO8/xnZ5MKQ43J7d1p5NRtJ3DTb7p6Tc8VD8S3n79UQQbzLSEmzk3 2DhuDxEbY17Z/N/nADKyX75GFC8nw/1pMO4koBPMGD3eRv82kFOTGLQdNxn4wMVgP3a9 J0UQ== 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=8zifyYdhe7helAKXXLxiFO9llKh8KvPwdfxuS/eaxFg=; b=yqZCLfp1nf7GjCp6mTBBFUoRFG3ScuebdtMlpVl4w10MV57TZptt7Ug5GBmYMvKD9F QfV2MoNVhEzgLeBUq7oasvMAuwdY4do9gW5HV+nrQiHWOcToDIf04bljM2S8tmrocdR8 dNZji3SFEaBsncy58wBl+bIilusLxwj9z95oGsz+MYNeJHLY9e0CfXN7s3nu78WKfTA1 KFYdkjX2ok+n+VOsJ7mqr9lGkZHgLZJD7w3xlpOSM+prpEmDTtZfeBQma95hpcDSPy3W DiL5et89xDdk/3mpsNuq5g6pACQCEger+hPpWVDt5EOW7KJ26aZhjS6ElKeQNB8PjENs IEiw== X-Gm-Message-State: AOAM530mGTmq5YDpTLMMYwzqrAKvZbTbDonC6JzaExawwShcPwjrOywk YaP5MdcJM+MX+fZ3E8mwlLjmiZtmGRFllnDc9eMD7p1jQXM= X-Google-Smtp-Source: ABdhPJzG3bejSNg42gPI2WU58WHiBW4aj4kR7DBaO7tL1go/gnpB86Vb6NbEmz/I79+MyVnwDXOpWR7Ljqyz+m3qGnY= X-Received: by 2002:a2e:8991:: with SMTP id c17mr47198305lji.361.1638193011533; Mon, 29 Nov 2021 05:36:51 -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> <72dece5eb5f449aeb4680023cbb125c3@beckhoff.com> In-Reply-To: From: Mario Marietto Date: Mon, 29 Nov 2021 14:36:15 +0100 Message-ID: Subject: Re: Bhyve CD-ROM To: =?UTF-8?Q?Corvin_K=C3=B6hne?= Cc: Freebsd Virtualization Content-Type: multipart/alternative; boundary="00000000000086ab9d05d1ed88c7" X-Rspamd-Queue-Id: 4J2mbn0c1xz4vPg X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=DHJB3Qxa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::233 as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [1.27 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-0.12)[-0.121]; NEURAL_SPAM_MEDIUM(0.39)[0.392]; NEURAL_SPAM_SHORT(1.00)[0.998]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; HTTP_TO_IP(1.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::233:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N --00000000000086ab9d05d1ed88c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello FreeBSD virtualization ML. I'm testing Windows 11 with bhyve and I've found some annoying problems that prevent me from completing some tasks that I'm working on. It seems that bhyve and or Windows 11 does not support virtio-blk and virtio-9p,but it supports virtio-net. It sounds strange because at least one virtio device (virtio-net) is working. I don't understand why bhyve won't accept the disk if I use virtio-blk,in fact it gives the error "inaccessible boot device" as shown here : https://ibb.co/MgxQGwF ; but it works with ahci-hd,even if it can't load the correct RedHat Virt-IO SCSI driver,as shown here : https://ibb.co/MPDPRqS ; windows 11 can't load even the driver for the default VGA graphic card. and it seems to don't even support virtio-9p,since when windows 11 is launched,I don't see the folder "mnt" mounted on the root folder of Windows 11. Below you can see which bhyve parameters I've used : bhyve -S -c 4 -m 8G -w -H \ -s 0,hostbridge \ -s 1,ahci-cd,/home/marietto/Downloads/virtio/virtio-win-0.1.208.iso \ ----> -s 2,ahci-hd,/mnt/da0p1/Backups/OS/bhyve/Windows/win11.img \ -s 3,fbuf,tcp=3D0.0.0.0:5900,w=3D1440,h=3D900,wait \ -s 8,virtio-net,tap0 \ ----> -s 9,virtio-9p,sharename=3D/mnt \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ vm0 Can I fix some of the problems explained ? thanks. Il giorno lun 29 nov 2021 alle ore 09:12 Mario Marietto < marietto2008@gmail.com> ha scritto: > a different solution could be to remove the first sector from the iso > file,so that it won't boot anymore :) or to pass a physic disk with the > files that you need stored inside :) > > Il giorno lun 29 nov 2021 alle ore 08:46 Corvin K=C3=B6hne < > C.Koehne@beckhoff.com> ha scritto: > >> pci slot 9:0: unknown device "virtio-9p" >> >> >> >> Looks like bhyve has no virtio-9p emulation. I guess it=E2=80=99s an old= er bhyve >> version than yours. >> >> >> >> >> >> Best regards >> >> Corvin >> >> >> >> Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans >> Beckhoff >> Registered office: Verl, Germany | Register court: Guetersloh HRA 7075 >> >> *From:* Mario Marietto >> *Sent:* Monday, November 29, 2021 8:09 AM >> *To:* Corvin K=C3=B6hne >> *Cc:* Sysadmin Lists ; Freebsd >> Virtualization >> *Subject:* Re: Bhyve CD-ROM >> >> >> >> *CAUTION:* External Email!! >> >> >> >> i would like to investigate why virtio-9p does not work for him. for me >> it worked until some time ago. >> >> >> >> Il lun 29 nov 2021, 07:31 Corvin K=C3=B6hne ha >> scritto: >> >> Hi, >> >> the bootorder is determined by pci slot order. Just add your disk before >> your cd-rom: >> >> bhyve -c 1 -m 512M -w -H \ >> -s 0,hostbridge \ >> -s 3,virtio-blk,/dev/zvol/zroot/bhyve_vms/debianvm \ >> -s 4,ahci-cd,/media/Debian-11.1.0-amd64-DVD-1.iso \ >> -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D800,h=3D600,wait \ >> -s 31,lpc \ >> -l com1,stdio \ >> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd debianvm >> >> >> Best regards >> Corvin >> >> Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans >> Beckhoff >> Registered office: Verl, Germany | Register court: Guetersloh HRA 7075 >> >> >> -----Original Message----- >> From: owner-freebsd-virtualization@freebsd.org < >> owner-freebsd-virtualization@freebsd.org> On Behalf Of Sysadmin Lists >> Sent: Monday, November 29, 2021 7:03 AM >> To: Mario Marietto >> Cc: Freebsd Virtualization >> Subject: Re: Bhyve CD-ROM >> >> CAUTION: External Email!! >> Thanks, Mario, but when I add this line, >> >> -s 9,virtio-9p,sharename=3D/media \ >> >> I get the following error message, >> >> pci slot 9:0: unknown device "virtio-9p" >> >> I read about shared folders earlier while looking for a solution and >> concluded FreeBSD doesn't support it (yet). >> >> > From: Mario Marietto >> > Sent: Sun Nov 28 23:14:39 CET 2021 >> > To: >> > Cc: Freebsd Virtualization >> > Subject: Re: Bhyve CD-ROM >> > >> > >> > if the cd is not bootable,you can attach it like this : >> > >> > -s 1,ahci-cd,/home/marietto/Downloads/virtio/virtio-win-0.1.208.iso \ >> > >> > or you can grab the files that you want when the os is loaded,declarin= g >> the >> > folder on the host os where are stored the files like this : >> > >> > -s 9,virtio-9p,sharename=3D/mnt \ >> >> -- >> Sent with >> https://nospamproxywebp.beckhoff.com/enqsig/link?id=3DBCAAAABGd7m3lfMOLO= Ihx3uNR_1Qav4Ffx8-jQB0torD82ts_G0AAADzTADPte9W9PqlaXgMPE2o-ss0dWvUhIbbKjdkx= meheoA-wpCZVABIpqOsBmtP82ENzCYFfqq0R8x3KKhL9msTlK-C4cXe143E0KmLsrixsp9XeTqF= jocjPJXL5HbZJPF6VJ1mhDjDjS0GT2hn0 >> Secure and private email >> >> > > -- > Mario. > --=20 Mario. --00000000000086ab9d05d1ed88c7--