Here’s an explanation of how to connect to openfiler VMs via “virsh console”.
Openfiler is rpath linux based , so I think you can connect to rpath linux based distributions via “virsh console” by the following procedure.
I have installed an openfiler 2.99 as a VM on KVM.
[root@openfiler-vm ~]# cat /etc/distro-release
Openfiler ESA 2.99.1
[root@openfiler-vm ~]# uname -ri
2.6.32-71.18.1.el6-0.20.smp.gcc4.1.x86_64 x86_64
|
[ on the KVM host ]
confirm the openfiler VM has a serial console port.
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
|
[ on the openfiler VM ]
- /etc/bootloader.d/distro-defaults.conf
add two red lines
[root@openfiler-vm ~]# cat /etc/bootloader.d/distro-defaults.conf
add_options mce=dont_decode cciss.cciss_allow_any=1
serial -speed=15200 -unit=0 -word=8 -parity=no -stop=1
terminal -timeout=10 serial
|
- edit /etc/inittab
[root@openfiler-vm ~]# tail -1 /etc/inittab
S0:12345:respawn:/sbin/agetty -L -f /etc/issue 115200 ttyS0
|
- edit /etc/securetty
[root@openfiler-vm ~]# echo "ttyS0" >> /etc/securetty
[root@openfiler-vm ~]# tail -1 /etc/securetty
ttyS0
|
reboot the openfiler VM
[root@openfiler-vm ~]# reboot
|
[ on the KVM host ]
connect to the openfiler VM via virsh console
virsh # console openfiler-vm
Connected to domain openfiler-vm
エスケープ文字は ^] です
_/_/ _/ _/
_/_/ _/_/_/ _/_/ _/_/_/ _/ _/ _/_/ _/ _/_/
_/ _/ _/ _/ _/_/_/_/ _/ _/ _/_/_/_/ _/ _/ _/_/_/_/ _/_/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_/_/ _/_/_/ _/_/_/ _/ _/ _/ _/ _/ _/_/_/ _/
_/
_/
----------------------------------------------------------------------------
| Commercial Support: http://www.openfiler.com/support/ |
| Administrator Guide: http://www.openfiler.com/buy/administrator-guide |
| Community Support: http://www.openfiler.com/community/forums/ |
| Internet Relay Chat: server: irc.freenode.net channel: #openfiler |
----------------------------------------------------------------------------
| (C) 2001-2011 Openfiler. All Rights Reserved. |
| Openfiler is licensed under the terms of the GNU GPL, version 2 |
| http://www.gnu.org/licenses/gpl-2.0.html |
----------------------------------------------------------------------------
Welcome to Openfiler ESA, version 2.99.1
Web administration GUI: https://x.x.x.x:446/
openfiler-vm.localdomain login: root
Password:
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.