[OmniOS-discuss] KVM and SMF
Tobias Oetiker
tobi at oetiker.ch
Wed Nov 5 20:41:56 UTC 2014
Hi Johan,
habe a look at
https://github.com/hadfl/kvmadm
cheers
tobi
Today 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
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch tobi at oetiker.ch +41 62 775 9902
More information about the OmniOS-discuss
mailing list