Hello, Just curious if anyone knows if there is a way to punt someone that is logged into the the serial console of a domain (via virsh console)? I have tried killing the offending user''s virsh process, but that didn''t get me anywhere. Seems like it would be a nice feature to have, similar to functionality available with many LOMs and serial concentrators. On a related note, it doesn''t appear that "virsh console" and "xm console" know about each other. Even if someone is "virsh console"d to a domain, you can still "xm console" to the domain, things don''t quite work right though. --joe
On Tue, Aug 12, 2008 at 01:26:17PM -0700, Joseph Mocker wrote:> Just curious if anyone knows if there is a way to punt someone that is > logged into the the serial console of a domain (via virsh console)? > > I have tried killing the offending user''s virsh process, but that didn''t > get me anywhere.What version of Nevada? You may need to kill ''virt-console'' process not ''virsh'' if you''re on a more recent build.> On a related note, it doesn''t appear that "virsh console" and "xm > console" know about each other. Even if someone is "virsh console"d to a > domain, you can still "xm console" to the domain, things don''t quite > work right though.Don''t use xm console. This is unlikely to get fixed unless someone motivated is interested (it''s pretty easy). regards john
John Levon wrote:> On Tue, Aug 12, 2008 at 01:26:17PM -0700, Joseph Mocker wrote: > > >> Just curious if anyone knows if there is a way to punt someone that is >> logged into the the serial console of a domain (via virsh console)? >> >> I have tried killing the offending user''s virsh process, but that didn''t >> get me anywhere. >> > > What version of Nevada? You may need to kill ''virt-console'' process not > ''virsh'' if you''re on a more recent build. >Ha, I didn''t notice the virt-console processes earlier. Killing it seems to work. I''m running build 94, btw.> > Don''t use xm console. This is unlikely to get fixed unless someone > motivated is interested (it''s pretty easy). >I briefly looked at the xen pages on opensolaris.org to find out how to download and compile the source, but information seemed a little sparse. Do you have any pointers? Thanks! --joe
On Wed, Aug 13, 2008 at 10:54:01AM -0700, Joseph Mocker wrote:> >Don''t use xm console. This is unlikely to get fixed unless someone > >motivated is interested (it''s pretty easy). > > > I briefly looked at the xen pages on opensolaris.org to find out how to > download and compile the source, but information seemed a little sparse.It is indeed rather sparse. I believe this has been discussed on the mailing list before. Basically, you''ll need to download xvm-src from here: http://dlc.sun.com/osol/on/downloads/b95/ (or b96 when it''s out). If you unpack that and read sunos.hg/README, you should be able to build the sources. This will generate packages which you can then install on your system to test. If you have a look at console.c in libvirt.hg/patches/libvirt you can see the virt-console implementation. You''ll want to replicate the code that does the file locking on the console inside of xen.hg/tools/console/client.c If you get stuck, do ask - it''s easiest to join #solaris-xen on freenode though regards john