From owner-freebsd-virtualization@freebsd.org Mon May 11 14:06:13 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A5C82E295A for ; Mon, 11 May 2020 14:06:13 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49LN5J1Hykz4byD for ; Mon, 11 May 2020 14:06:12 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-il1-x12f.google.com with SMTP id q10so8554815ile.0 for ; Mon, 11 May 2020 07:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=km2yXoce90IIEuUw8qW5KbipeHcP0ziNr7lTlYmrSxY=; b=KzlWnNDHPI/zl2yytjR+/RIUiekebdPEnUbN7HDwp5/ymY3ya0RLMxmfYObxzNAJBc W9+4o+nnckh2OGn5AXo5pwMWVji6Sa3ytbxFPsTEOJSANoQwaY9RFX7QBJGF96f+VxY/ KtYBu5LaAOyPD5v5zIaaa4vHSA5WcU5CMidmMvI5Mh/qZYhBOeWSpq1xqLk7humkWtrf QKQo8DKhlimMfHbhuLUBmjnmOy/5WqSVqb/Jkj9XE1zV4jUL8v3jf1Lx/n93NUPJJ/D6 pevvj/tQI0JN863hopL3aRYMFnq2kMIhvX1unUEy92JtvzwCAoOmHNUBIAz5eI2T8Qec ohQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=km2yXoce90IIEuUw8qW5KbipeHcP0ziNr7lTlYmrSxY=; b=HA/Ne/IaySthQE3VbyimZrXRAmq66FaP3lb98Qbfpx3PokfQUQ947mJrUHp1gzLpOz 66QbWt3Sn31fucWAzygfbVKz6t0ME+Kh5xZyXeDU0UH1FCElg8WPXylqaalMefPpwfC2 shaXiQbHisWYoMtfGD4cBGAzyIbYKhukXEslgZ1D3B4IJLJ44CpleVNr2VKGoDLCnv8B 6fTQ9pNotRqlJ5Kckek92u/b6mMjBiaOcmIHf/mHCtk0gbG6wtm1YfEEfRzDRGfMl0Ht r1sAETzH2GS+mti/POv9IG3QbU5d8GaCwM36Is3240CbPZ0AcavKNE5/7tFwGWCuyym6 8aUA== X-Gm-Message-State: AGi0Pub5v2k2uOoPFDn77+0bFt3clpySguo04pnfyw+Qi1WAJQWRwzYq 6knxG6G4xoTTdWYWMqSVl4MG8XEby4KzENpPlNPy6RvENg4= X-Google-Smtp-Source: APiQypIkBZLD3AISenV62aYyhXg/Q0XujLYOwkudC8ecsGS1vVtaqbWBnIBhQYpYnE4JaKf7NcJnmN+DlKKNjUq7E68= X-Received: by 2002:a92:5e16:: with SMTP id s22mr16960313ilb.81.1589205970901; Mon, 11 May 2020 07:06:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aryeh Friedman Date: Mon, 11 May 2020 10:05:59 -0400 Message-ID: Subject: Re: Bhyve iso To: Brandon helsley Cc: "freebsd-virtualization@freebsd.org" X-Rspamd-Queue-Id: 49LN5J1Hykz4byD X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=KzlWnNDH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::12f as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-8.71), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[f.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; HTTP_TO_IP(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2020 14:06:13 -0000 On Mon, May 11, 2020 at 9:45 AM Brandon helsley wrote: > What is option for adding another drive? Ahci is under -s but I don't see > anything relevant. > Here is an example script for install FreeBSD and then rebooting the VM after the install: #!/bin/sh # # Generated by PetiteCloud 0.2.6 # truncate -s 750G /vms/pri/dfdebf870cff2e43 ifconfig tap6 destroy ifconfig tap6 create ifconfig tap6 up sleep 5 ifconfig bridge0 addm tap6 up bhyvectl --destroy --vm=adda5345720edee1 /usr/sbin/bhyve -c cores=4 -m 8192 -AI -H -P -w -g 0 -s 0:0,hostbridge -s 1,virtio-net,tap6 -s 2,ahci-hd,/vms/pri/dfdebf870cff2e43 -s 3,ahci-cd,/vms/cds/FreeBSD-12.1-RELEASE-amd64-dvd1.iso -s 29,fbuf,tcp= 0.0.0.0:5906,w=800,h=600 -s 30,xhci,tablet -s 31,lpc -l com1,stdio -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd adda5345720edee1 echo $!>/var/run/petitecloud/adda5345720edee1 sleep 10 ifconfig tap6 destroy ifconfig tap6 create ifconfig tap6 up sleep 5 ifconfig bridge0 addm tap6 up bhyvectl --destroy --vm=adda5345720edee1 /usr/sbin/bhyve -c cores=4 -m 8192 -AI -H -P -w -g 0 -s 0:0,hostbridge -s 1,virtio-net,tap6 -s 2,ahci-hd,/vms/pri/dfdebf870cff2e43 -s 29,fbuf,tcp= 0.0.0.0:5906,w=800,h=600 -s 30,xhci,tablet -s 31,lpc -l com1,/dev/nmdm6B -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd adda5345720edee1&>/dev/null echo $!>/var/run/petitecloud/adda5345720edee1 sleep 10 > > Sent from Outlook Mobile > ------------------------------ > *From:* Aryeh Friedman > *Sent:* Monday, May 11, 2020 7:32:23 AM > *To:* Brandon helsley > *Cc:* freebsd-virtualization@freebsd.org < > freebsd-virtualization@freebsd.org> > *Subject:* Re: Bhyve iso > > > > On Mon, May 11, 2020 at 9:26 AM Brandon helsley < > brandon.helsley@hotmail.com> wrote: > > In setting up bhyve today, or at least learning how, and I'm stuck at the > part after I create with truncate the device map image. I'm supposed to put > an iso with the devicemap.img and then boot from grub. How do I complete > this last step with the iso? Could someone please help? > > > See man page for bhyve but basically what you do is you add an other drive > like you do the disks but instead of saying the block device is AHCI-HD or > VirtIOBlk you say it is AHCI-CD. > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org