Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to setup serial console on dom u

xiaodiMar 11 2012 — edited Mar 12 2012
hi ...

maybe some one can help me how to setup serial console on dom u


oracle vm server 3.0.3
oracle vm manager --> oracle linux 6.2 , disable selinux , disable iptables

dom u ( virutal machine ) --> oracle linux 6.2 , disable selinux , disable iptables


step i done on virutal machine ( dom u )

#vi /boot/grub/grub.con

serial unit=0 speed=9600 word=8 parity=no --stop=1
terminal --timeout=10 console serial
default=0
timeout=10
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Oracle Linux Server-uek (2.6.32-300.3.1.el6uek.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-300.3.1.el6uek.x86_64 ro root=/dev/mapper/vg_os-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_os/lv_root rd_NO_MD rd_LVM_LV=vg_os/lv_swap SYSFONT=latarcyrheb-sun16 rhgb quiet KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM selinux=0 console=tty0 console=hvc0,9600n8


#add hvc0 to /etc/securetty

echo hvc0 >> /etc/securetty


#add file ad /etc/init/serial-hvc0.conf

#vi /etc/init/serial-hvc0.conf

start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345]
stop on runlevel [S016]

instance /dev/hvc0
respawn
#pre-start exec /sbin/securetty /dev/hvc0
exec /sbin/agetty -L hvc0 9600 vt100-nav



#run this command

#initctl start serial-hvc0
#ps -ef | grep hvc

root 2059 1 0 23:27 ? 00:00:00 /sbin/agetty -L hvc0 9600 vt100-nav
root 2067 1995 0 23:27 pts/0 00:00:00 grep hvc



at dom 0 ( vm server )

#xm list

#xm console id --> no login prompt out , nothing , press ctrl - ] to exit

2. try to poweroff virtual machine (dom u )
#poweroff



3. try to stat from cmd xm create
#cd /OVS/..../../..
#xm create vm.cfg -c

i cant get the grub menu , but i cant get kernel msg , mean that some thing wrong on setting kernel line ...

4. poweroff the virtual machine
#poweroff

5. add serial = 'pty' to vm.cfg and poweron

#xm create vm.cfg -c

still cant get kernel bootup msg & login prompt .



hope some one can help ..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2012
Added on Mar 11 2012
1 comment
666 views