[OmniOS-discuss] Ang: Re: Ang: Re: KVM and SMF

Johan Kragsterman johan.kragsterman at capvert.se
Wed Nov 5 20:54:26 UTC 2014


Okay, thanks, Jorge!

I'll try it and see what happens...



-----Jorge Schrauwen <sjorge+ml at blackdot.be> skrev: -----
Till: Johan Kragsterman <johan.kragsterman at capvert.se>
Från: Jorge Schrauwen <sjorge+ml at blackdot.be>
Datum: 2014-11-05 21:27
Ärende: Re: Ang: Re: [OmniOS-discuss] KVM and SMF

I don't know. But from experience svccfg will do what is needed to 
import it.

But I know for a fact service names <> paths. base on I have a few 
services that do not have a corresponding directory.

Regards

Jorge



On 2014-11-05 21:25, Johan Kragsterman wrote:
> -----Jorge Schrauwen <jorge at blackdot.be> skrev: -----
> Till: Johan Kragsterman <johan.kragsterman at capvert.se>
> Från: Jorge Schrauwen <jorge at blackdot.be>
> Datum: 2014-11-05 21:11
> Ärende: Re: [OmniOS-discuss] KVM and SMF
> 
> You can import it using 'svccfg import mysmf.xml'.
> 
> ---
> ~ sjorge
> 
> 
> Hey, Jorge, I thought you were going to answer me...!
> 
> 
> Yeah, I know how I import it, but what I asked about was the naming:
> 
>  If I call it: service name='kvm/pfsense', where does it go, when I
> import it, since there is no "kvm" directory under /var/svc/manifest/
> or /lib/svc/manifest? Is smf creating a directory for it?
> 
> 
> 
> 
> 
> On 2014-11-05 21:09, Johan Kragsterman wrote:
>> Hi!
>> 
>> 
>> I'm on my way to try to get my KVM VM's under SMF control. Have been
>> looking at various exampel xml-files, and there is something I'm not
>> clear about, that I'd like to ask those who knows how to handle this.
>> 
>> The service name in this example looks like this: <service
>> name='kvm/pfsense'
>> 
>> But there is no directory for "kvm" under /var/svc/manifest/ or
>> /lib/svc/manifest, so where does it go? is svc creating a directory
>> when I import the file?
>> 
>> 
>> I'd used the example on the omnios wiki, just changed the service
>> name. It looks like this in my version:
>> 
>> 
>> <?xml version='1.0'?>
>> <!DOCTYPE service_bundle SYSTEM
>> '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
>> <service_bundle type='manifest' name='export'>
>> <service name='kvm/pfsense' type='service' version='0'>
>> <create_default_instance enabled='true'/>
>> <single_instance/>
>> <dependency name='network'
>> grouping='require_all'
>> restart_on='none'
>> type='service'>
>> <service_fmri value='svc:/milestone/network:default' />
>> </dependency>
>> <dependency name='filesystem'
>> grouping='require_all'
>> restart_on='none'
>> type='service'>
>> <service_fmri value='svc:/system/filesystem/local:default' />
>> </dependency>
>> <exec_method name='start'
>> type='method'
>> exec='/usr/bin/vmpfsense.sh'
>> timeout_seconds='60'/>
>> <exec_method name='stop'
>> type='method'
>> exec='/usr/bin/vmpfsense.sh'
>> timeout_seconds='60'/>
>> <exec_method name='stop'
>> type='method'
>> exec=':kill'
>> timeout_seconds='60'/>
>> <stability value='Unstable'/>
>> <template>
>> <common_name>
>> <loctext xml:lang='C'>KVM-pfsense</loctext>
>> <common_name>
>> <template>
>> </service>
>> </service_bundle>
>> 
>> 
>> 
>> 
>> What do you think, would that do?
>> 
>> 
>> 
>> 
>> Best regards from/Med vänliga hälsningar från
>> 
>> Johan Kragsterman
>> 
>> Capvert
>> 
>> _______________________________________________
>> OmniOS-discuss mailing list
>> OmniOS-discuss at lists.omniti.com
>> http://lists.omniti.com/mailman/listinfo/omnios-discuss





More information about the OmniOS-discuss mailing list