Subject: Re: xen2 questions was: Xen 3.x with NetBSD 3.x x86-64/64-bits/amd64
To: None <port-xen@NetBSD.org>
From: Philip <subs@christiantena.net>
List: port-xen
Date: 03/25/2007 11:23:27
Alistair Crooks wrote:
> On Sat, Mar 24, 2007 at 05:23:19AM -0700, Philip wrote:
>   
>> I now have xen2 running on my old P3 and it seems to run well
>> I have
>> Dom0 = netbsd 3.1
>> DomU#1 = netbsd 3.1
>> DomU#2 = Debian sarge
>>
>> I can't figure out how to make DomU#1 and #2 startup automatically when 
>> the box is rebooted (and shut down automatically when necessary too).
>>
>> Can anyone advise how to do it?
>>     
>
> If you have pkgsrc/sysutils/xentools20 or pkgsrc/sysutils/xentools30
> installed (and, if not, why not?  :-)), then use the xendomains.sh rc
> script by putting
>
> 	xendomains="DomU#1 DomU#2"
>
> in your /etc/rc.conf file.
>
> Regards,
> Alistair
>   
Thanks, I got it working

the complete answer is this

1. install xentools20
2. cp /usr/pkg/share/examples/rc.d/xendomains /etc/rc.d/.
3. add the line xendomains="domU#1 domU#2" to /etc/rc.conf

thanks, Philip