Hi, How do i configure a serial console for a f10/x86_64/PV guest to work. /boot/grub/grub.conf: ... title Fedora (2.6.27.21-170.2.56.fc10.x86_64) root (hd0,0) kernel /vmlinuz-2.6.27.21-170.2.56.fc10.x86_64 ro root=/dev/rootvg/root_lv rhgb quiet console=ttyS0 initrd /initrd-2.6.27.21-170.2.56.fc10.x86_64.img ... The above dose not work. -- Regards, mantra - Instrument of Thought _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Apr 16, 2009 at 10:39 AM, mantra UNIX <unix.mantra@gmail.com> wrote:> Hi, > How do i configure a serial console for a f10/x86_64/PV guest to work. > > /boot/grub/grub.conf: > ... > title Fedora (2.6.27.21-170.2.56.fc10.x86_64) > root (hd0,0) > kernel /vmlinuz-2.6.27.21-170.2.56.fc10.x86_64 ro > root=/dev/rootvg/root_lv rhgb quiet console=ttyS0 > initrd /initrd-2.6.27.21-170.2.56.fc10.x86_64.imgTry hvc0 instead of ttyS0. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 16 Apr 2009, Fajar A. Nugraha wrote:> On Thu, Apr 16, 2009 at 10:39 AM, mantra UNIX <unix.mantra@gmail.com> wrote: >> Hi, >> How do i configure a serial console for a f10/x86_64/PV guest to work. >> >> /boot/grub/grub.conf: >> ... >> title Fedora (2.6.27.21-170.2.56.fc10.x86_64) >> root (hd0,0) >> kernel /vmlinuz-2.6.27.21-170.2.56.fc10.x86_64 ro >> root=/dev/rootvg/root_lv rhgb quiet console=ttyS0 >> initrd /initrd-2.6.27.21-170.2.56.fc10.x86_64.img > > Try hvc0 instead of ttyS0.I think that''s the hvm device... but it doesn''t really matter what the name is as long as it matches everywhere... e.g. boot parameters, /dev/, initab, and securetty on an old RH 7.2 guest I had to setup a bunch of stuff by hand... boot parameters: [root@bk4 /tmp/www.logs]# more /proc/cmdline root=/dev/sda1 ro console=xvc0 aoe_iflist=eth1 device entry: [root@bk4 /tmp/www.logs]# ls -ld /dev/xvc0 crw------- 1 root tty 204, 191 Apr 11 23:58 /dev/xvc0 and an inittab entry: [root@bk4 ~]# tail /etc/inittab # this is the xen3.2 syntax apparently...!? co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav and make sure that whatever you call this is in /etc/securetty if you want to be able to login as root! Now, all the above said, on a modern centOS PV guest, I didn''t have to do any of that. /dev/console simply works. [root@nineteen /home/farmers/farmersfresh]# more /proc/cmdline root=/dev/sda1 ro aoe_iflist=eth1 co:12345:respawn:/sbin/agetty 9600 console [root@nineteen /home/farmers/farmersfresh]# ls -l /dev/console crw--w---- 1 root tty 5, 1 Apr 12 09:51 /dev/console Obviously, your mileage may vary :) ... Unless of course you REALLY want to route the console for one specific guest out a physical serial port. I''m not sure how you''d do that. At times the XEN serial console has conflicted with the serial port drivers... I haven''t looked at that for a long time though :( -Tom _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
mantra UNIX wrote:> Hi, > How do i configure a serial console for a f10/x86_64/PV guest to work. > > /boot/grub/grub.conf: > ... > title Fedora (2.6.27.21-170.2.56.fc10.x86_64) > root (hd0,0) > kernel /vmlinuz-2.6.27.21-170.2.56.fc10.x86_64 ro > root=/dev/rootvg/root_lv rhgb quiet console=ttyS0 > initrd /initrd-2.6.27.21-170.2.56.fc10.x86_64.img > ... >Under my domU using RHEL, there are several steps: 1. In /boot/grub/grub.conf the kernel line has console=tty0 console=xvc0, i.e. kernel /boot/vmlinuz ... console=tty0 console=xvc0 When multiple consoles are specified, all get kernel messages but only the last one gets /dev/console messages, IIRC. 2. To allow login to the virtual serial console, /etc/inittab has co:2345:respawn:/sbin/agetty xcv0 9600 vt100-nav 3. add xvc0 to /etc/securetty Vu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Still the same, BTW i am running F10. On Thu, Apr 16, 2009 at 4:21 AM, Vu Pham <vu@sivell.com> wrote:> mantra UNIX wrote: > >> Hi, >> How do i configure a serial console for a f10/x86_64/PV guest to work. >> /boot/grub/grub.conf: >> ... >> title Fedora (2.6.27.21-170.2.56.fc10.x86_64) >> root (hd0,0) >> kernel /vmlinuz-2.6.27.21-170.2.56.fc10.x86_64 ro >> root=/dev/rootvg/root_lv rhgb quiet console=ttyS0 >> initrd /initrd-2.6.27.21-170.2.56.fc10.x86_64.img >> ... >> >> > > Under my domU using RHEL, there are several steps: > > 1. In /boot/grub/grub.conf the kernel line has console=tty0 console=xvc0, > i.e. > kernel /boot/vmlinuz ... console=tty0 console=xvc0 > > When multiple consoles are specified, all get kernel messages but only the > last one gets /dev/console messages, IIRC. > > 2. To allow login to the virtual serial console, /etc/inittab has > co:2345:respawn:/sbin/agetty xcv0 9600 vt100-nav > > 3. add xvc0 to /etc/securetty > > Vu > > > >-- Regards, mantra - Instrument of Thought _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users