Re: [OmniOS-discuss] KVM within a child zone

2014-12-25 Thread Jim Klimov
23 декабря 2014 г. 1:51:53 CET, Michael Mounteney gat...@landcroft.co.uk пишет: Has anyone done this? The main obstacle in my own investigation is that the zonecfg command add device / set match=/dev/net/vnick0 ; end is ignored so I can't network the VM. Michael.

Re: [OmniOS-discuss] KVM within a child zone

2014-12-25 Thread Michael Mounteney
On Thu, 25 Dec 2014 11:18:01 +0100 Jim Klimov jimkli...@cos.ru wrote: Are ypu sure tuere is no typo? i.e. vnick0 vs. vnic0 ? Quite sure, Jim. My choice of name, whimsical as it might be. Michael. ___ OmniOS-discuss mailing list

Re: [OmniOS-discuss] KVM within a child zone

2014-12-24 Thread Jorge Schrauwen
Well I actually suggested Dominik's kvmadm so they are identical not similar :D kvmadm can certainly do that, lots of features have been added over the last few months and It's pretty solid now. Dominik also has an amazing response time if you open a feature request. Regards Jorge On

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Jorge Schrauwen
IIRC setting the zone to exclusive netstack works to include the /dev/net/vnicX device: --- set ip-type=exclusive add net set physical=zleonov0 end --- -(~)-[.]-{ ls -l /dev/net }-(root@leonov)- total 0 crw-rw-rw- 1 root sys 263, 1010 Dec 20

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Michael Mounteney
On Tue, 23 Dec 2014 09:01:16 +0100 Jorge Schrauwen sjorge...@blackdot.be wrote: IIRC setting the zone to exclusive netstack works to include the /dev/net/vnicX device: That gets it a bit closer but I still need the real interface (e1000g1) for vnc and sshing in etc. and I can't give that to

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Jorge Schrauwen
Well just use a socket for vnc, then you can spawn socat in the gz to explose the socket over tcp :) This deals with a serial port as a socket... https://blackdot.be/2013/07/qemu-kvm-monitor-and-serial-console-over-sockets-with-minicom/ But: socat unix-listen:/vms/leonov/run/vnc.sock

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Lauri Tirkkonen
On Tue, Dec 23 2014 19:28:47 +1000, Michael Mounteney wrote: That gets it a bit closer but I still need the real interface (e1000g1) for vnc and sshing in etc. and I can't give that to the zone exclusively. You can create a vnic over your physical interface (with dladm(1M)) and then give that

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Natxo Asenjo
On Tue, Dec 23, 2014 at 10:44 AM, Lauri Tirkkonen loth...@iki.fi wrote: On Tue, Dec 23 2014 19:28:47 +1000, Michael Mounteney wrote: That gets it a bit closer but I still need the real interface (e1000g1) for vnc and sshing in etc. and I can't give that to the zone exclusively. You can

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Michael Mounteney
On Tue, 23 Dec 2014 10:56:30 +0100 Natxo Asenjo natxo.ase...@gmail.com wrote: Thanks to you and everyone else for their help. I hope I'm not polluting the list with newbie noise but hopefully this will stay on record and help out someone else later. My knowledge of vnics, sockets etc. is thin,

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Michael Mounteney
Brilliant, with a bit more fiddling I've got it so that the KVM instances can be started within the child zone, AND shut down cleanly via the command echo system_powerdown | nc -U /var/run/KDE.monsock so the next step is to put them into a service so that they can be brought up and down within

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Dominik Hassler
Michael, you might wanna give kvmadm a try ( https://github.com/hadfl/kvmadm ). that'll help you putting your kvms under smf control. at least you should be able to extract all the infos from there... On 12/23/2014 09:14 PM, Michael Mounteney wrote: Brilliant, with a bit more fiddling I've

Re: [OmniOS-discuss] KVM within a child zone

2014-12-23 Thread Michael Mounteney
On Wed, 24 Dec 2014 00:00:03 +0100 Dominik Hassler hassl...@gmx.li wrote: Michael, you might wanna give kvmadm a try ( https://github.com/hadfl/kvmadm ). that'll help you putting your kvms under smf control. at least you should be able to extract all the infos from there... Thanks

[OmniOS-discuss] KVM within a child zone

2014-12-22 Thread Michael Mounteney
Has anyone done this? The main obstacle in my own investigation is that the zonecfg command add device / set match=/dev/net/vnick0 ; end is ignored so I can't network the VM. Michael. ___ OmniOS-discuss mailing list OmniOS-discuss@lists.omniti.com

Re: [OmniOS-discuss] KVM within a child zone

2014-12-22 Thread Warren Marts
KVM virtual machines on illumos each already run in a zone - with a specific minimal brand, and qemu-kvm as the zone's primary process. So you can apply global zone resources limits to arbitrate each vm. On Mon, Dec 22, 2014 at 5:51 PM, Michael Mounteney gat...@landcroft.co.uk wrote: Has anyone

Re: [OmniOS-discuss] KVM within a child zone

2014-12-22 Thread Bryan Horstmann-Allen
+-- | On 2014-12-22 19:34:52, Warren Marts wrote: | | KVM virtual machines on illumos each already run in a zone - with a | specific minimal brand, and qemu-kvm as the zone's primary process. So you | can apply global

Re: [OmniOS-discuss] KVM within a child zone

2014-12-22 Thread Theo Schlossnagle
This doesn't happen unless you explicit do that on illumos. You are describing the default behavior on SmartOS, qemu-kvm is just a process on illumos, you'd have to setup the minimal zone, etc. On Mon, Dec 22, 2014 at 9:34 PM, Warren Marts protonwrang...@gmail.com wrote: KVM virtual machines