[OmniOS-discuss] KVM and SMF
Johan Kragsterman
johan.kragsterman at capvert.se
Wed Nov 5 20:09:10 UTC 2014
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
More information about the OmniOS-discuss
mailing list