From owner-freebsd-virtualization@freebsd.org Sun Feb 4 20:52:12 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BED2EF0E5D for ; Sun, 4 Feb 2018 20:52:12 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DA1B71BD6 for ; Sun, 4 Feb 2018 20:52:11 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com ([82.113.183.179]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id w14KRjeD037645 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 4 Feb 2018 20:27:46 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host [82.113.183.179] claimed to be ultrabook.yoonka.com Subject: Re: Xen on FreeBSD 11.1 - Auto creating VMs on boot To: freebsd-virtualization@freebsd.org References: From: Grzegorz Junka Message-ID: <1f68b24a-8e05-3859-9427-ed784cb0d570@gjunka.com> Date: Sun, 4 Feb 2018 20:27:38 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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: Sun, 04 Feb 2018 20:52:12 -0000 On 02/02/2018 17:14, David Salvisberg wrote: > Hello, > > I recently switched from Debian as my Dom0 to FreeBSD to make use of ZFS > without having to rely on zfs-on-linux. The experience has been pretty good > so far, albeit a bit more limited compared to Debian obviously. > > One of the things I haven't been able to figure out is /etc/xen/auto or > rather /usr/local/etc/xen/auto in FreeBSDs case. It doesn't look like Xen > on FreeBSD ships with any of the configuration options for this feature, > possibly due to lack of support for save and restore. > > I don't really need save and restore but auto spawning VMs on boot would be > a nice thing to be able to do without having to write my own rc.d script or > something along those lines. > > Is there a way to make use of the auto creation feature on FreeBSD Xen or > is that feature just missing entirely due to the lack of save/restore > functionality? > > If there is no builtin way, I'd appreciate any recommendations for writing > my own scripts to make sure that they're only being run after Xen has been > fully initialized and is ready for xl create commands. > > Best Regards > > David Salvisberg > Hi David, Unfortunately I don't know the Xen part of the question, but writing your own starting script is quite easy and well documented. A quick google search returns this https://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/index.html Good luck GregJ