From owner-freebsd-virtualization@freebsd.org Wed Nov 4 15:36:17 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A8B1A26B86 for ; Wed, 4 Nov 2015 15:36:17 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C1A171094 for ; Wed, 4 Nov 2015 15:36:16 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: by lfbf136 with SMTP id f136so40701194lfb.0 for ; Wed, 04 Nov 2015 07:36:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=C5OP3qYyGvMRY4YXDFE1Do0ucgMNmpmZ3wRdq86ldZc=; b=hghMZVj12WZqJnLVxn4t17JlUSWJ0md9N+xBMf4gowx9lHlhJ3RQt3rsCBRwjpPP4r sw5YnqZ1rqZLId0gyIycq9YpfJg+PbZqREFx97i4d4228USdAqLmI18cosLENxJQKO0G XlUEtnoSdOk3vJEqRxXJ/eX78tlebITxzZG19ybJ9XCz2AVr6Jvi8xoipRP/rgpNwzP9 dO/X4ep7ZNeXCLEB5JvVqrQsUJuRJC+ZREpxeznl82ILKYYTh7Qqf58bTjZWVl4aF300 aLg9LFwMJWWZSfAesCLN3INTZ73+b9ry9sLuYiU3GXw5ayTzDwPfnCrxs4jpuE34fdev if+g== MIME-Version: 1.0 X-Received: by 10.25.162.5 with SMTP id l5mr446695lfe.70.1446651374902; Wed, 04 Nov 2015 07:36:14 -0800 (PST) Received: by 10.25.198.9 with HTTP; Wed, 4 Nov 2015 07:36:14 -0800 (PST) In-Reply-To: References: <20151103221930.GA50869@debnath.net> Date: Wed, 4 Nov 2015 08:36:14 -0700 Message-ID: Subject: Re: C bhyve administration tool From: Trent Thompson To: Shawn Debnath Cc: FreeBSD virtualization Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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, 04 Nov 2015 15:36:17 -0000 Going back to the original message in the thread, yes, I think the more the merrier. I created iohyve to solve a problem I had. I wanted to store my bhyve VM's in ZFS. Matt C. created vm-bhyve to solve the problem of storing VM's in a manager that didn't use ZFS. Matt and I have traded ideas back and forth even though we maintain different managers. I think that is the most important thing we need to focus on, working together to get bhyve at the same level as KVM and other hypervisors. Throw it up on Github so we can prod and poke at it. I don't know much about C, but I am always willing to learn. -Trent (@pr1ntf) On Wed, Nov 4, 2015 at 2:47 AM, Matt Churchyard via freebsd-virtualization < freebsd-virtualization@freebsd.org> wrote: > > Hello! > > > > Couple months ago I started writing a bhyve management tool in C for > > our startup, in preparation for migration to FreeBSD for our servers. > > The goal was to be able to create, drop, and auto-start/stop/restart > > VMs, individually or all at once, and provide a plugin infrastructure > > to expose some metrics / errors for reporting and aggregation. More > > importantly it would detect errors/failures, report them and attempt > > to restart the VM per assigned policy. > > > > The effort stalled due to some high priority work that crept in. > > However, I am planning on restarting soon and wanted to check if there > > was a need for something like this. I ran across Michael Dexter's > > vmrc, and although its shell based, it does provide quite a bit of > > features that we were looking for. There's also iohyve. And I heard > > Peter and Neel are working on something as well. If there is interest, > > this would be open sourced from the start. Or if there is an existing > > effort that addresses these problems, I would love to contribute to that > project. > > > > Thoughts, comments, concerns, please share. > > > > >vm-bhyve is most mature to this point IME, just don't use the ports > version. > > > Adam > > Thanks Adam :) > > I could do with updating the port. Unfortunately this is my first porting > experience so not exactly sure of the 'correct' channel to go through to > get things updated. It took 2 months for my original port request to be > addressed and I'm not sure re-opening that bug is the right way to do it. > > If anyone uses the port, the error that gets printed when running 'vm > init' can be completely ignored. It's just trying to load any existing > virtual switches from the switch configuration file, and complaining that > the switch configuration file doesn't exist. Apart from that and a few > newer features/tweaks, I don't think there's anything particularly > show-stopping about the current port/package if people prefer installing it > that way to downloading from GitHub. > > Of course it would still be interesting to see a "real" bhyve management > tool (possibly even an official one) written in C. > > Matt > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" >