From owner-freebsd-virtualization@freebsd.org Wed May 13 15:06:01 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 40F3B2F8B06 for ; Wed, 13 May 2020 15:06:01 +0000 (UTC) (envelope-from brandon.helsley@hotmail.com) Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-oln040092009059.outbound.protection.outlook.com [40.92.9.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49MdKN1CKRz49J4 for ; Wed, 13 May 2020 15:05:59 +0000 (UTC) (envelope-from brandon.helsley@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fRZC4uNOzQuemJt2Jb+UaXC3tX4LdXrUZxGgseZ1KtcOY+6jF1nNIuGMWW59fV+Bk0WLs4uotQcdOA88U1vEeJLuJ0yrqr5WTu9WlBPyTJDwYq0fseM4e6+yxRG5nr+awFhfW/1NXIde5OOobZlopPkRASnADtQ4YYn3iKeKcVeHTIy+itdtefYZS+fTmJK1XiiGAjQ1l3FP8YvK1SwZ98IUVj1387xV/ZreRIz7QAgFawEvC1NXafn0DoyY2S8khMCpOMdDDqVrpzXs5ZWymVodSaP5nvdVqAVrc8GpdESvlBSfgEIU0KMKZR/n5wqwQFzNAokWxhpSyZ8Mx8lkkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=soVeAjfh+tonGHjVxHOgkzcS56NrSr2TINZrvVUSSuc=; b=eCc9Vv2JW4RfdiXDPKM5neV8enlCsA95JIM7/DOd7wdZTC19o8YGA+UW5hiwt/ofzjbKBBvu6DL4gPKBGnV8Iq2MuAK2EIwrE326KQy636clVZiNKll/ySy/bBwqZVFjRADgj7WS1T/jI63Z3mvxHySe9PUiZuSlX9EssApXg1bBJcYS/ceObXwXnS24KBXAPtidMotN8kSCke9FLc98PdcMLB2KLlQjdvwfspudpinOUVSGANGAjFx8bc89cmpCxjSJf0kk3rvKFf+AHRdxlQaa/mDruQnwnyrhWwB1uOIP8aWpA/qyU+U8ODGLxmItLiGibiwIhYzrVv6/95GxaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=soVeAjfh+tonGHjVxHOgkzcS56NrSr2TINZrvVUSSuc=; b=kNVegruY0gISabn4MI0Rfc707dSGflIoau7pMTGB1esPEERfOGF73Mo9Zse0+S+ba7x83XRlHuXlibGo2yHER7rSrF8tA9ttQqtGCNS7eBdp1U5xevEYKVNd/kXJOTduIS+frtQikKnoeFMJAotZsoozuZppc7Q6Ll351MQXIZjidxbS5fmV5Y6fbmRHK+8AWLD4scp7vQYhkQFIkTzV4U52/7lg436LnohwK/CApR0hFRFm3+b73UOBijQ/qJjzZWGGV8fNCj6x6d2K+5ho90bZOlbGyAbUPhu0ddz0t+ysyxsSg6TuXM/VPtS0InEQrCrwSGhSsr94OC/MqOJ+ZQ== Received: from BN3NAM04FT029.eop-NAM04.prod.protection.outlook.com (10.152.92.55) by BN3NAM04HT015.eop-NAM04.prod.protection.outlook.com (10.152.92.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27; Wed, 13 May 2020 15:05:58 +0000 Received: from CY4PR19MB1655.namprd19.prod.outlook.com (2a01:111:e400:7e4e::4c) by BN3NAM04FT029.mail.protection.outlook.com (2a01:111:e400:7e4e::148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Wed, 13 May 2020 15:05:58 +0000 Received: from CY4PR19MB1655.namprd19.prod.outlook.com ([fe80::387e:fe14:f955:101d]) by CY4PR19MB1655.namprd19.prod.outlook.com ([fe80::387e:fe14:f955:101d%12]) with mapi id 15.20.2979.033; Wed, 13 May 2020 15:05:58 +0000 From: Brandon helsley To: Aryeh Friedman CC: "freebsd-virtualization@freebsd.org" Subject: Re: Bhyve iso Thread-Topic: Bhyve iso Thread-Index: AQHWJ5e0Bk3xdS4wjUKby2aHFAt+bqii4gWAgAADZWKAAAX+gIAADzjpgAADkACAAyInxA== Date: Wed, 13 May 2020 15:05:58 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:E55310B4FF986817E1FF5BF22B9EF49C1500AC266FC507A8A59421D09A47804B; UpperCasedChecksum:6B6E5259D4888D18851037887F46BE0E3756E1580AC85E648F145C6988AF411D; SizeAsReceived:7352; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [0j9AMC/Pkzw3gEBIP8quIIUV4gADILLo] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: cb8c7cf3-dc8f-416a-a56a-08d7f74f24a5 x-ms-traffictypediagnostic: BN3NAM04HT015: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ajr+ujhuHXXM+6Ia8jwcJ6LhgH79A4C8/u9l3bEAlb3z9LgS0GjxpwlqpCuJrah0RvVryk92FrKXp30ptCB+Riil5HurUsyGwfYXN8DoLJIDeFp6HExte+ALu8D2ir0wV0VpkpvmqHECwUmmIxvevhsBT+LyjQEWCGjM59DcwHSqxUofxt5x9rt2L8Gc+u+dv/gvNFGtNNZbughEYRXteYxDEEao/g4ey4UjuzA9c2wmFkprFTiDvbrB9z0InBYY x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR19MB1655.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: El2JrbCXWFKt5YHzRNH6adjzoS7SfQYfQUKu1gQn1RabdUJzOtq7Ng46dXDRCiiAuG9tHNZhs0ANxnTuqiRFFwLe+GOH0aQUxqtCqa6iWCZKukxuYcpROJ1S3MdRtaz3teg1qITRXxAi4juGLL6Qmg== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: cb8c7cf3-dc8f-416a-a56a-08d7f74f24a5 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2020 15:05:58.4487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT015 X-Rspamd-Queue-Id: 49MdKN1CKRz49J4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=kNVegruY; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of brandon.helsley@hotmail.com designates 40.92.9.59 as permitted sender) smtp.mailfrom=brandon.helsley@hotmail.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)[+ip4:40.92.0.0/15]; FREEMAIL_FROM(0.00)[hotmail.com]; URI_COUNT_ODD(1.00)[19]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; ARC_ALLOW(-1.00)[i=1]; DWL_DNSWL_NONE(0.00)[hotmail.com.dwl.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[59.9.92.40.list.dnswl.org : 127.0.3.0]; HTTP_TO_IP(1.00)[]; IP_SCORE(0.00)[ipnet: 40.64.0.0/10(-3.73), asn: 8075(-3.25), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[59.9.92.40.rep.mailspike.net : 127.0.0.17] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: Wed, 13 May 2020 15:06:01 -0000 So a script is a list of commands? I looked at petite cloud and wasn't sure= what it is. Does it generate a script that is a list of commands? Sent from Outlook Mobile ________________________________ From: Aryeh Friedman Sent: Monday, May 11, 2020 9:13:12 AM To: Brandon helsley Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve iso On Mon, May 11, 2020 at 11:00 AM Brandon helsley > wrote: What does script mean? Refer to the man pages for each command. The 10,000 ft view of the script= though is the first call to bhyve does the install and the second one rest= arts the machine after the install. The way each iteration is done is bas= ically as follows: 1. Stop/destroy any existing running instances of the machine (Install only 1a. Create the file(s) needed to back the virtual hard drive(= s)) 2. Set up the networking needed connect the VM into the external LAN with a= valid/routable connection 3. Run bhyve 4. Do any additional book keeping needed to allow PetiteCloud (the program = that generated the script) to manage the VM instance from it's web interfac= e Sent from Outlook Mobile ________________________________ From: Aryeh Friedman > Sent: Monday, May 11, 2020 8:05:59 AM To: Brandon helsley > Cc: freebsd-virtualization@freebsd.org > Subject: Re: Bhyve iso 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 a= nything relevant. Here is an example script for install FreeBSD and then rebooting the VM aft= er 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=3Dadda5345720edee1 /usr/sbin/bhyve -c cores=3D4 -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=3D0.0.0.0:5906,w=3D800,h=3D600 -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=3Dadda5345720edee1 /usr/sbin/bhyve -c cores=3D4 -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= =3D0.0.0.0:5906,w=3D800,h=3D600 -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 > Subject: Re: Bhyve iso On Mon, May 11, 2020 at 9:26 AM Brandon helsley > wrote: In setting up bhyve today, or at least learning how, and I'm stuck at the p= art 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 th= is 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 -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org