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

Johan Kragsterman johan.kragsterman at capvert.se
Thu Nov 6 15:07:10 UTC 2014


Here I am Again as a follow up...



-----"OmniOS-discuss" <omnios-discuss-bounces at lists.omniti.com> skrev: -----
Till: Lauri Tirkkonen <lotheac at iki.fi>
Från: Johan Kragsterman 
Sänt av: "OmniOS-discuss" 
Datum: 2014-11-06 15:22
Kopia: omnios-discuss at lists.omniti.com
Ärende: [OmniOS-discuss] Ang: Re: Ang: Re: Ang: Re: Ang: Re: Ang: Re: KVM	and SMF

Hi!

-----Lauri Tirkkonen <lotheac at iki.fi> skrev: -----
Till: Johan Kragsterman <johan.kragsterman at capvert.se>
Från: Lauri Tirkkonen <lotheac at iki.fi>
Datum: 2014-11-06 14:31
Kopia: Jorge Schrauwen <sjorge+ml at blackdot.be>, omnios-discuss at lists.omniti.com
Ä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 at 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 at 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 at 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




-- 
Lauri Tirkkonen | +358 50 5341376 | lotheac @ IRCnet



_______________________________________________
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