Hello all, I''d like to plug in mu UPS and use ups monitoring software on dom0. I''m trying to use NUT. http://www.networkupstools.org/ So, I plug the UPS into dom0 serial port and change the permissions. # ls -l /dev/ttyS0 crw-rw---- 1 root nut 4, 64 2006-06-01 09:55 /dev/ttyS0 But I''m running into problems. I''ve seen in my boot log "Xen virtual console successfully installed as ttyS0" Can someone please explain this to me? Thanks. Chris. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Chris, On Thu, 2006-01-06 at 12:41 +0200, Chris Fanning wrote:> So, I plug the UPS into dom0 serial port and change the permissions. > > # ls -l /dev/ttyS0 > crw-rw---- 1 root nut 4, 64 2006-06-01 09:55 /dev/ttyS0 > > But I''m running into problems. > I''ve seen in my boot log > > "Xen virtual console successfully installed as ttyS0" > > Can someone please explain this to me?Did you figure this one out? I''m having the same problem, and even though I believe I''ve disabled the xen console, I still can''t get the UPS to attach to ttyS0 in dom0. Actually, ttyS0 doesn''t even exist - I''m clued out. I''ve googled for this, but surprisingly I''ve found next to nothing. My google skills in this case may be out to lunch. Anyway, if you have your UPS attached to ttyS0, I''d really appreciate it knowing how you did it. Regards, Ranbir -- Kanwar Ranbir Sandhu Linux 2.6.16-1.2111_FC4 i686 GNU/Linux 10:00:01 up 3:29, 2 users, load average: 0.23, 0.07, 0.06 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Ranbir,> Did you figure this one out?No. I didn''t. :( I''m plugging the ups into another box I have on the same network. But this is a poor cheat. I would very much like to know how you go. Thanks. Chris. On 6/10/06, Kanwar Ranbir Sandhu <m3freak@rogers.com> wrote:> Hi Chris, > > On Thu, 2006-01-06 at 12:41 +0200, Chris Fanning wrote: > > So, I plug the UPS into dom0 serial port and change the permissions. > > > > # ls -l /dev/ttyS0 > > crw-rw---- 1 root nut 4, 64 2006-06-01 09:55 /dev/ttyS0 > > > > But I''m running into problems. > > I''ve seen in my boot log > > > > "Xen virtual console successfully installed as ttyS0" > > > > Can someone please explain this to me? > > Did you figure this one out? I''m having the same problem, and even > though I believe I''ve disabled the xen console, I still can''t get the > UPS to attach to ttyS0 in dom0. Actually, ttyS0 doesn''t even exist - > I''m clued out. > > I''ve googled for this, but surprisingly I''ve found next to nothing. My > google skills in this case may be out to lunch. > > Anyway, if you have your UPS attached to ttyS0, I''d really appreciate it > knowing how you did it. > > Regards, > > Ranbir > > -- > Kanwar Ranbir Sandhu > Linux 2.6.16-1.2111_FC4 i686 GNU/Linux > 10:00:01 up 3:29, 2 users, load average: 0.23, 0.07, 0.06 > > >-- .''''`. Use Debian : :'' : `. `'' `- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jun 10, 2006 at 10:03:05AM -0400, Kanwar Ranbir Sandhu wrote:> On Thu, 2006-01-06 at 12:41 +0200, Chris Fanning wrote: > > So, I plug the UPS into dom0 serial port and change the permissions. > > > > # ls -l /dev/ttyS0 > > crw-rw---- 1 root nut 4, 64 2006-06-01 09:55 /dev/ttyS0 > > > > But I''m running into problems. > > I''ve seen in my boot log > > > > "Xen virtual console successfully installed as ttyS0" > > > > Can someone please explain this to me? > > Did you figure this one out? I''m having the same problem, and even > though I believe I''ve disabled the xen console, I still can''t get the > UPS to attach to ttyS0 in dom0. Actually, ttyS0 doesn''t even exist - > I''m clued out.module /<kernel> xencons=tty will free up ttyS0 for use as a real serial port. When you reboot, you''ll have a real ttyS0 again, and your dom0 kernel''s dmesg should have proper mention of serial port things ("ttyS0: blahblah irq=4 blah io=0x3f8" etc). Don''t ask me why Xen likes to hijack ttyS0 by default, because I don''t know. - Matt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, 2006-11-06 at 15:39 +1000, Matt Palmer wrote:> module /<kernel> xencons=tty > > will free up ttyS0 for use as a real serial port. When you reboot, you''ll > have a real ttyS0 again, and your dom0 kernel''s dmesg should have proper > mention of serial port things ("ttyS0: blahblah irq=4 blah io=0x3f8" etc).Thanks, but sadly, I''ve already tried that and it doesn''t work. Here''s what I have: title Xen (2.6.16-xen3_86.1_rhel4.1) root (hd0,0) kernel /xen.gz module /vmlinuz-2.6-xen ro root=/dev/vg00/root vga=791 xencons=tty module /initrd-2.6-xen.img And this is the error I get: WARNING: Failed to register Xen virtual console driver as ''tty1'' I''ve also tried passing ''xencons=off'', which successfully disables the xen console, but I still don''t get control of ttyS0. Here are the combos in grub.conf I''ve tried: title Xen (2.6.16-xen3_86.1_rhel4.1) root (hd0,0) kernel /xen.gz console=vga module /vmlinuz-2.6-xen ro root=/dev/vg00/root vga=791 xencons=tty console=tty module /initrd-2.6-xen.img title Xen (2.6.16-xen3_86.1_rhel4.1) root (hd0,0) kernel /xen.gz module /vmlinuz-2.6-xen ro root=/dev/vg00/root vga=791 xencons=off module /initrd-2.6-xen.img None of those have worked. It''s why I said I''m thoroughly confused because I''m pretty sure I''m doing it right. Me = sad.> Don''t ask me why Xen likes to hijack ttyS0 by default, because I don''t know.I wish it were off by default and had to be enabled specifically, but that''s just me. I wonder what the magic incantation is. Regards, Ranbir -- Kanwar Ranbir Sandhu Linux 2.6.16-1.2111_FC4 i686 GNU/Linux 17:57:14 up 11:26, 3 users, load average: 0.00, 0.03, 0.15 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I wish it were off by default and had to be enabled specifically, but > that''s just me. > > I wonder what the magic incantation is.Well, this may or may not help, but I can get a serial console within Linux by doing this: title Xen 3.0 / XenLinux 2.6 (root=/dev/sda2) root (hd0,1) # /dev/sda2 kernel /boot/xen-3.0.gz dom0_mem=524288 com1=115200,8n1 module /boot/vmlinuz-2.6-xen0 root=/dev/sda2 ro console=ttyS0 The ''com1'' line (I think) tells Xen to put its output onto that serial port, which I''m assuming then gets passed on to the Linux kernel. At any rate, that gets boot messages from both Xen and Linux sent over the serial port, so I''d guess that if you removed the ''console'' option Linux output wouldn''t go over the serial port, possibly making ttyS0 available within Linux itself. Xen messages will probably still go over the serial port though, which may or may not confuse your UPS. Unless this is where the ''xencons'' option fits in. Of course I''m just guessing, I seem to recall that in the kernel config I couldn''t enable the option for the standard 16550 serial port driver. Cheers, Adam. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Jun 12, 2006 at 06:03:09PM -0400, Kanwar Ranbir Sandhu wrote:> On Sun, 2006-11-06 at 15:39 +1000, Matt Palmer wrote: > > module /<kernel> xencons=tty > > > > will free up ttyS0 for use as a real serial port. When you reboot, you''ll > > have a real ttyS0 again, and your dom0 kernel''s dmesg should have proper > > mention of serial port things ("ttyS0: blahblah irq=4 blah io=0x3f8" etc). > > Thanks, but sadly, I''ve already tried that and it doesn''t work. Here''s > what I have: > > title Xen (2.6.16-xen3_86.1_rhel4.1) > root (hd0,0) > kernel /xen.gz > module /vmlinuz-2.6-xen ro root=/dev/vg00/root vga=791 > xencons=tty > module /initrd-2.6-xen.img > > And this is the error I get: > > WARNING: Failed to register Xen virtual console driver as ''tty1''That''s... strange. Let me show you what I''ve got: title XenoLinux 3.0 (kernel #{kernel_version}) root (hd0,0) kernel /xen.gz dom0_mem=256M console=vga module #{kernel} xencons=tty #{KERNEL_CMDLINE} module /boot/initrd.img-#{kernel_version} So it looks roughly like one of your configurations. All I can say is that what I''ve got there works for me -- I can access the serial port in the dom0, and I can also forward that serial port into the domU when I need to. - Matt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users