try to name the dependency 'pfsense' instead of 'kvm/pfsense'. i don't think that '/' is an allowed character for property names...
it would also help if you attach the manifest you are trying to import. as lauri mentioned before: you can set all the properties directly with svccfg, no need to fiddle around with the manifests. On 11/06/2014 04:07 PM, Johan Kragsterman wrote: > Here I am Again as a follow up... > > > > -----"OmniOS-discuss" <[email protected]> skrev: ----- > Till: Lauri Tirkkonen <[email protected]> > Från: Johan Kragsterman > Sänt av: "OmniOS-discuss" > Datum: 2014-11-06 15:22 > Kopia: [email protected] > Ärende: [OmniOS-discuss] Ang: Re: Ang: Re: Ang: Re: Ang: Re: Ang: Re: KVM > and SMF > > Hi! > > -----Lauri Tirkkonen <[email protected]> skrev: ----- > Till: Johan Kragsterman <[email protected]> > Från: Lauri Tirkkonen <[email protected]> > Datum: 2014-11-06 14:31 > Kopia: Jorge Schrauwen <[email protected]>, > [email protected] > Ärende: Re: Ang: Re: Ang: Re: [OmniOS-discuss] Ang: Re: Ang: Re: KVM and SMF > > On Thu, Nov 06 2014 14:27:20 +0100, Johan Kragsterman wrote: >> That is not parsable... >> >> root@omni:/mainpool/nfs/Backup/KVM# svccfg import pfkvm.xml >> pfkvm.xml:13: parser error : xmlParseEntityRef: no name >> <exec_method type='method' exec='/usr/bin/vmpfsense.sh &' >> name='start' timeout >> ^ >> svccfg: couldn't parse document >> root@omni:/mainpool/nfs/Backup/KVM# > > Then I guess you need to escape it ("&"). It's easier to set with > svccfg anyways. > > > > > > > That did the trick! Thanks! I bet it is many others that have been struggling > with this as well... > > > And as well: > > I've been looking at svccfg(1M) but can't say I can figure out what to do to > get the service to demonize... > > Would be nice to learn... > > > Regards Johan > > > > > > > My kvm/pfsense is of coarse a firewall and router, and I wanted it to start > before other VM's, så the other VM's could get a route directly when they > start. > > So I set a dependency for my kvm/edu for kvm/pfsense, but that wasn't as easy > as I thought it would. It failed with this msg: > > > root@omni:/mainpool/nfs/Backup/KVM# svccfg import edukvm.xml > svccfg: Service svc:/kvm/edu has property group with invalid name > "kvm/pfsense" or type "dependency". > svccfg: Import of edukvm.xml failed. Progress: > svccfg: Service "kvm/edu": not reached. > svccfg: Instance "default": not reached. > svccfg: Import of edukvm.xml failed. > > > For me this seems to be something like the kvm/pfsense service is not > properly placed. Like other smf services who has their directories in: > /lib/svc/manifest and in /var/svc/manifest, like "application" "device" > "milestone" "network" "platform" "site" "system". > > Could that be the case? Someone knows something about this, and what could be > done? Like creating a directory for kvm? Or putting the service under an > already existing directory? > > What do OmniTI do for managing this? > > > Regards Johan > > > >
0xF9ECC6A5.asc
Description: application/pgp-keys
_______________________________________________ OmniOS-discuss mailing list [email protected] http://lists.omniti.com/mailman/listinfo/omnios-discuss
