I have several DomU guests I create manually when booting my Dom0. This is tedious. I could without a doubt script a few lines to automate this.
But I came across articles that mention a certain directory where Xen can symlink configs and then autostart them. On Linux this is supposed to be
So I symlinked a single config of a DomU guest in this directory:
And lo and behold...
...nothing happens when I reboot my server.
So I keep searching the www and happen to come across more articles, some of which tell me that this is handled by a certain config file. In Linux this file is supposed to be:
I can not find(1) such a file anywhere on my system. Neither can I find any file that would include any string starting with "XENDOMAINS_" to begin with.
(With
In addition I feel like a lot of the FreeBSD Xen documentation is scarce and somewhat outdated, although still relevant. The handbook does not go very deep on Xen, which is fine I guess. The Xen project itself also does not focus a lot on BSD. I usually find most of what I need after a while. Some documents go very deep on how hypervisors work or similar technical details, but this seems like such a basic feature, and it's basically not documented at all it seems.
TL;DR: Is there a Xen native way on FreeBSD to autostart DomU guests when booting the hypervisor? Or do I in fact have to script this myself? Or am I using the existing mechanism wrong?
But I came across articles that mention a certain directory where Xen can symlink configs and then autostart them. On Linux this is supposed to be
/etc/xen/auto so of course I directly went to /usr/local/etc on my FreeBSD server and of course there it is: /usr/local/etc/xen/auto. Cool!So I symlinked a single config of a DomU guest in this directory:
ln -s /xen/conf/myguest.cfg /usr/local/etc/xen/auto/And lo and behold...
...nothing happens when I reboot my server.
So I keep searching the www and happen to come across more articles, some of which tell me that this is handled by a certain config file. In Linux this file is supposed to be:
/etc/default/xendomains and it's supposed to configure some sorts of global variables for Xen in general it seems. Them being XENDOMAINS_SAVE=/var/lib/xen/save; XENDOMAINS_RESTORE=true; XENDOMAINS_AUTO=/etc/xen/auto. This file is missing on FreeBSD it seems.I can not find(1) such a file anywhere on my system. Neither can I find any file that would include any string starting with "XENDOMAINS_" to begin with.
(With
find / -xdev -type f -print0 | xargs -0 grep -H "XENDOMAINS_*" e.g.)In addition I feel like a lot of the FreeBSD Xen documentation is scarce and somewhat outdated, although still relevant. The handbook does not go very deep on Xen, which is fine I guess. The Xen project itself also does not focus a lot on BSD. I usually find most of what I need after a while. Some documents go very deep on how hypervisors work or similar technical details, but this seems like such a basic feature, and it's basically not documented at all it seems.
TL;DR: Is there a Xen native way on FreeBSD to autostart DomU guests when booting the hypervisor? Or do I in fact have to script this myself? Or am I using the existing mechanism wrong?