SSH Zugriff auf Citrix XenServer 5.5
Hinweis: Bitte beachten Sie, dass dieser Artikel / diese Kategorie sich entweder auf ältere Software/Hardware Komponenten bezieht oder aus sonstigen Gründen nicht mehr gewartet wird. Diese Seite wird nicht mehr aktualisiert und ist rein zu Referenzzwecken noch hier im Archiv abrufbar. |
---|
Auf die Konsole (dom0) eines Citrix XenServer 5.5 ist ein ganz normaler SSH Zugriff möglich. Die Konsole selbst basiert auf CentOS 5.3. Dieser Artikel zeigt dazu einige Hintergrundinformationen.
Bildschirmausgabe XenServer 5.5
XenServer 5.5 zeigt auf der lokalen Bildschirm-Konsole die folgende Ausgabe. Dabei ist u.a. auch die IP Adresse des XenServers ersichtlich:
SSH Zugriff
Auf diese IP Adresse hin ist ein ganz normaler SSH Zugriff möglich. Somit ist man auf der dom0:
[user@adminpc ~]$ ssh root@192.168.1.151 root@192.168.1.151's password: Last login: Wed Dec 9 10:26:56 2009 from 192.168.1.52 Type "xsconsole" for access to the management console. [root@xenserver-550-1 ~]# cat /etc/redhat-release XenServer release 5.5.0-15119p (xenenterprise) [root@xenserver-550-1 ~]#
Basis CentOS 5.3
Die dom0 von XenServer 5.5 basiert auf CentOS 5.3. Dies lässt sich anhand eines beliebigen RPM-Paketes einfach überprüfen:
[root@xenserver-550-1 ~]# rpm -qi man Name : man Relocations: (not relocatable) Version : 1.6d Vendor: CentOS Release : 1.1 Build Date: Sat 06 Jan 2007 11:25:02 AM CET Install Date: Sat 06 Jun 2009 12:30:43 PM CEST Build Host: builder5.centos.org Group : System Environment/Base Source RPM: man-1.6d-1.1.src.rpm Size : 351780 License: GPL Signature : DSA/SHA1, Wed 04 Apr 2007 02:24:57 AM CEST, Key ID a8a447dce8562897 Summary : A set of documentation tools: man, apropos and whatis. Description : [...]
Der Vendor-Eintrag sowie der Build Host verweisen auf CentOS:
- Vendor: CentOS
- Build Host: builder5.centos.org
Das zugehörige src-RPM stammt aus CentOS 5.3:
- http://mirror.centos.org/centos-5/5.3/os/SRPMS/
- http://mirror.centos.org/centos-5/5.3/os/SRPMS/man-1.6d-1.1.src.rpm
laufende Prozesse
Die folgende Ausgabe zeigt die laufenden Prozesse in der dom0:
[root@xenserver-550-1 ~]# ps -eaf UID PID PPID C STIME TTY TIME CMD root 1 0 0 10:22 ? 00:00:00 init [3] root 2 1 0 10:22 ? 00:00:00 [migration/0] root 3 1 0 10:22 ? 00:00:00 [ksoftirqd/0] root 4 1 0 10:22 ? 00:00:00 [watchdog/0] root 14 1 0 10:23 ? 00:00:00 [events/0] root 18 1 0 10:23 ? 00:00:00 [khelper] root 19 1 0 10:23 ? 00:00:00 [kthread] root 21 19 0 10:23 ? 00:00:00 [xenwatch] root 22 19 0 10:23 ? 00:00:00 [xenbus] root 51 19 0 10:23 ? 00:00:00 [kblockd/0] root 55 19 0 10:23 ? 00:00:00 [kacpid] root 204 19 0 10:23 ? 00:00:00 [kseriod] root 239 19 0 10:23 ? 00:00:00 [pdflush] root 240 19 0 10:23 ? 00:00:00 [pdflush] root 241 19 0 10:23 ? 00:00:00 [kswapd0] root 242 19 0 10:23 ? 00:00:00 [aio/0] root 983 19 0 10:23 ? 00:00:00 [netback] root 985 19 0 10:23 ? 00:00:00 [net_accel/0] root 1001 19 0 10:23 ? 00:00:00 [kpsmoused] root 1048 19 0 10:23 ? 00:00:00 [khubd] root 1099 19 0 10:23 ? 00:00:02 [kjournald] root 1215 1 0 10:23 ? 00:00:01 /sbin/udevd -d root 2642 19 0 10:23 ? 00:00:00 [ata/0] root 2650 19 0 10:23 ? 00:00:00 [ata_aux] root 2780 19 0 10:23 ? 00:00:00 [scsi_eh_0] root 2852 19 0 10:23 ? 00:00:00 [scsi_eh_1] root 2853 19 0 10:23 ? 00:00:00 [scsi_eh_2] root 3385 19 0 10:23 ? 00:00:00 [kstriped] root 3399 19 0 10:23 ? 00:00:00 [kmpathd/0] root 3403 19 0 10:23 ? 00:00:00 [kmpath_handlerd] root 3767 1 0 10:23 ? 00:00:00 syslogd -m 0 root 3770 1 0 10:23 ? 00:00:00 klogd -x ntp 4006 1 0 10:23 ? 00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -x -g rpc 4033 1 0 10:24 ? 00:00:00 portmap -l root 4083 1 0 10:24 ? 00:00:00 rpc.statd -p 600 -o 601 root 4138 19 0 10:24 ? 00:00:00 [rpciod/0] root 4148 1 0 10:24 ? 00:00:00 rpc.idmapd root 4328 1 0 10:24 ? 00:00:00 /opt/xensource/bin/xenstored root 4332 1 0 10:24 ? 00:00:00 /usr/sbin/xenconsoled root 4336 1 0 10:24 ? 00:00:00 /usr/sbin/blktapctrl root 4368 1 0 10:24 ? 00:00:00 /opt/xensource/bin/xapi -daemon -writereadyfile /var/run/xapi_startup.cookie -writeinitcomplete /var/run/xapi root 4374 4368 1 10:24 ? 00:00:06 /opt/xensource/bin/xapi -daemon -writereadyfile /var/run/xapi_startup.cookie -writeinitcomplete /var/run/xapi root 4483 1 0 10:24 ? 00:00:00 /usr/sbin/stunnel /var/xapi/xapi-ssl.conf root 4558 1 0 10:24 ? 00:00:00 python /opt/xensource/sm/snapwatchd/snapwatchd -d /var/log/SMlog root 4637 1 0 10:24 ? 00:00:00 /opt/xensource/bin/mpathalert -daemon -delay 120 -pidfile /var/run/mpathalert.pid root 4895 1 0 10:24 ? 00:00:00 /usr/sbin/sshd root 4968 1 0 10:24 ? 00:00:00 crond root 5026 1 0 10:24 ? 00:00:00 /usr/sbin/atd root 5078 1 0 10:24 ? 00:00:00 python /opt/xensource/bin/perfmon --daemon root 5500 1 0 10:24 tty1 00:00:00 /usr/bin/python /usr/lib/xsconsole/XSConsole.py -f root root 5501 1 0 10:24 tty3 00:00:00 /sbin/mingetty tty3 root 5502 1 0 10:24 tty4 00:00:00 /sbin/mingetty tty4 root 5503 1 0 10:24 ttyS0 00:00:00 /sbin/agetty ttyS0 115200 9600 linux root 5504 1 0 10:24 ? 00:00:00 /usr/lib/xen/bin/vncterm -v 127.0.0.1 -r -x /local/domain/0/serial/0 -c /usr/lib/xen/bin/dom0term.sh root 5542 5504 0 10:24 pts/0 00:00:00 /bin/bash /usr/lib/xen/bin/dom0term.sh root 6209 4895 0 10:27 ? 00:00:00 sshd: root@pts/1 root 6213 6209 0 10:27 pts/1 00:00:00 -bash root 6271 6213 0 10:29 pts/1 00:00:00 ps -eaf [root@xenserver-550-1 ~]#
vorhandene RPMs
Die folgende Abfrage zeigt die standardmäßig vorhandenen RPM Pakete:
[root@xenserver-550-1 ~]# rpm -qa filesystem-2.4.0-1.el5.centos tzdata-2008i-1.el5 libgcc-4.1.2-42.el5 termcap-5.5-1.20060701.1 mktemp-1.5-23.2.2 libsepol-1.15.2-1.el5 zlib-1.2.3-3 libstdc++-4.1.2-42.el5 grep-2.5.1-54.2.el5 libacl-2.2.39-3.el5 iproute-2.6.18-7.el5 glib2-2.12.3-2.fc6 mingetty-1.07-5.2.2 ethtool-5-1.el5 iputils-20020927-43.el5 centos-release-5-2.el5.centos popt-1.10.2-48.el5 cracklib-dicts-2.8.9-3.3 readline-5.1-1.1 libcap-1.10-26 e2fsprogs-libs-1.39-15.xs458 device-mapper-1.02.24-1.el5 MAKEDEV-3.23-1.2 findutils-4.2.27-4.1 pam-0.99.6.2-3.27.xs458 util-linux-2.13-0.47.el5 likewise-base-5.0.0-1.xs31.26 openssl-0.9.8b-10.el5_2.1 net-tools-1.60-78.el5 initscripts-8.45.19.1.EL-1.el5.centos mcstrans-0.2.7-1.el5 cpio-2.6-20 ed-0.2-39.el5_2 libgpg-error-1.4-2 ecryptfs-utils-41-1.el5 diffutils-2.8.1-15.2.3.el5 hdparm-6.6-2 libuser-0.54.7-2.el5.5 usermode-1.88-3.el5.1 hwdata-0.213.6-1.el5 expat-1.95.8-8.2.1 libxml2-python-2.6.26-2.1.2.7 dbus-glib-0.70-5 cryptsetup-luks-1.0.3-2.2.el5 pciutils-2.2.3-5 hal-0.5.8.1-35.el5 libhugetlbfs-1.2-5.el5 libsysfs-2.0.0-6 dmraid-1.0.0.rc13-15.el5_2.1 gzip-1.3.5-10.el5.centos lvm2-2.02.32-4.xs458 tar-1.15.1-23.0.1.el5 nspr-4.7.3-2.el5 openssh-4.3p2-26.el5_2.1 tcp_wrappers-7.6-40.4.el5 rootfiles-8.1-1.1.1 beecrypt-4.1.2-10.1.1 rpm-libs-4.4.2-48.el5 setserial-2.17-19.2.2 vim-minimal-7.0.109-4.el5_2.4z python-urlgrabber-3.1.0-2 yum-metadata-parser-1.1.2-2.el5 rpm-python-4.4.2-48.el5 yum-fastestmirror-1.1.10-9.el5.centos bzip2-1.0.3-4.el5_2 sudo-1.6.8p12-12.el5 tcl-8.4.13-3.fc6 ntp-4.2.2p1-8.el5.centos.1 iptables-1.3.5-4.el5 dhcp-3.0.5-13.el5 crontabs-1.10-8 zip-2.31-1.2.2 eject-2.1.5-4.2.el5 sharutils-4.6.1-2 curl-7.15.5-2.el5 samba-common-3.0.28-1.el5_2.1 groff-1.18.1.1-11.1 nano-1.3.12-1.1 tcpdump-3.9.4-12.el5 stunnel-4.15-2 cyrus-sasl-lib-2.1.22-4 nfs-utils-lib-1.0.8-7.2.z2 nfs-utils-1.0.9-35z.el5_2 xsconsole-5.5.0-329 likewise-domainjoin-5.0.0-1.xs31.26 likewise-netlogon-5.0.0-1.xs31.26 likewise-eventlog-5.0.0-1.xs31.26 likewise-passwd-5.0.0-1.xs31.26 xen-hypervisor-3.3.1-5.5.0.378.18694 SDL-1.2.10-8.xs458 xen-firmware-3.3.1-5.5.0.378.18694 kernel-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012 bridge-utils-1.1-2 kexec-tools-2.0.0-458.48 slang-2.0.6-4.el5 iptables-ipv6-1.3.5-4.el5 firmware-458-1 rsync-2.6.8-3.1 libpng-1.2.10-7.1.el5_0.1 libjpeg-6b-37 splashy-0.3.9-xs458 lpfc-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-8.2.0.33.4p-1 libnl-1.0-0.10.pre5.5 qla2xxx-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-8.02.00.k5.xs5.1-01 qla2xxx-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-8.02.00.k5.xs5.1-01 scli-1.7.1-23 net-snmp-libs-5.3.1-24.2.xs458 compat-libstdc++-33-3.2.3-61 sg3_utils-1.25-1.el5 vncsnapshot-1.2a-xs458 arcmsr-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-1.20.0x.13-458 xdelta-1.1.3-20 md3000-rdac-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-09.03.0C00.0042-458 mtnic-tools-1_6_0-458 mtnic-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-1_6_0-458 nx_nic-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-4.0.231-458 patch-2.5.4-29.2.2 time-1.7-27.2.2 sysstat-7.0.2-1.el5 krb5-libs-1.6.1-31.el5_3.3 setup-2.5.58-1.el5 basesystem-8.0-5.1.1.el5.centos glibc-common-2.5-24.el5_2.2 glibc-2.5-24.el5_2.2 libtermcap-2.0.8-46.1 bash-3.2-21.el5 ncurses-5.5-24.20060715 info-4.8-14.el5 pcre-6.6-2.el5_1.7 libattr-2.4.32-1.1 db4-4.3.29-9.fc6 procps-3.2.7-9.el5 sed-4.1.5-5.fc6 gawk-3.1.5-14.el5 chkconfig-1.3.30.1-2 centos-release-notes-5.2-2 audit-libs-1.6.5-9.xs458 keyutils-libs-1.2-1.el5 gdbm-1.8.0-26.2.1 bzip2-libs-1.0.3-4.el5_2 libselinux-1.33.4-5.el5 shadow-utils-4.0.17-13.el5 e2fsprogs-1.39-15.xs458 SysVinit-2.86-14 coreutils-5.97-14.el5 udev-095-14.16.el5 module-init-tools-3.3-0.pre3.1.37.el5 likewise-krb5-5.0.0-1.xs31.26 python-2.4.3-21.el5 psmisc-22.2-6 sysklogd-1.4.1-44.el5 cracklib-2.8.9-3.3 dhclient-3.0.5-13.el5 redhat-logos-4.9.99-8.el5.centos libgcrypt-1.2.3-1 file-4.17-13 grub-0.97-13.2 likewise-openldap-5.0.0-1.xs31.26 passwd-0.73-1 kbd-1.12-20.el5 libvolume_id-095-14.16.el5 libxml2-2.6.26-2.1.2.7 dbus-1.0.0-7.el5_2.1 libusb-0.1.12-5.1 dmidecode-2.7-1.28.2.el5 pm-utils-0.99.3-6.el5.centos.19 kudzu-1.2.57.1.17-1 kpartx-0.4.7-17.xs458 device-mapper-multipath-0.4.7-17.xs458 less-394-5.el5 device-mapper-event-1.02.24-1.el5 nash-5.1.19.6-28.xs458 mkinitrd-5.1.19.6-28.xs458 nss-3.12.2.0-2.el5.centos openssh-clients-4.3p2-26.el5_2.1 openssh-server-4.3p2-26.el5_2.1 elfutils-libelf-0.125-3.el5 likewise-sqlite-5.0.0-1.xs31.26 rpm-4.4.2-48.el5 sysfsutils-2.0.0-6 m2crypto-0.16-6.el5.2 python-sqlite-1.1.7-1.2.1 python-elementtree-1.2.6-5 python-iniparse-0.2.3-4.el5 yum-3.2.8-9.el5.centos.2.1 bc-1.06-21 wget-1.10.2-7.el5 expect-5.43.0-5.1 portmap-4.0-65.2.2.1 which-2.16-7 vixie-cron-4.1-72.el5 logrotate-3.7.4-8 unzip-5.52-2.2.1 perl-5.8.8-15.el5_2.1 libidn-0.6.5-1.1 gnupg-1.4.5-13 telnet-0.17-39.el5 man-1.6d-1.1 ssmtp-2.61-8 strace-4.5.16-1.el5_2.2 stunnelng-5.5.0-35 libgssapi-0.10-2 openldap-2.3.27-8.el5_2.4 libevent-1.1a-3.2.1 samba-client-3.0.28-1.el5_2.1 PyPAM-0.4.2-3.xs458 likewise-pstore-5.0.0-1.xs31.26 likewise-rpc-5.0.0-1.xs31.26 likewise-lsass-5.0.0-1.xs31.26 kernel-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012 xen-tools-3.3.1-5.5.0.378.18694 xen-device-model-5.5.0-164.4848 blktap-5.5.0-399 open-iscsi-2.0.865.13-458 mdadm-2.6.4-1.el5 vconfig-1.9-2.1 newt-0.52.2-10.el5 system-config-securitylevel-tui-1.6.29.1-2.1.el5 vncterm-5.5.0-187 syslinux-3.53-xs44.14 freetype-2.2.1-20.el5_2 directfb-1.0.1-xs458 fbi-1.31-xs458 lpfc-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-8.2.0.33.4p-1 elxlinuxcorekit-4.0a31-1 qla4xxx-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-5.01.03.04-1.xs458 qla4xxx-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-5.01.03.04-1.xs458 iscli-1.2.00-15 net-snmp-5.3.1-24.2.xs458 sg3_utils-libs-1.25-1.el5 udhcp-r15050-458 arcmsr-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-1.20.0x.13-458 microcode_ctl-1.17-1.47.el5 md3000-rdac-tools-09.03.0C00.0042-458 md3000-rdac-modules-kdump-2.6.18-128.1.6.el5.xs5.5.0.496.1012-09.03.0C00.0042-458 mtnic-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-1_6_0-458 nx_nic-modules-xen-2.6.18-128.1.6.el5.xs5.5.0.496.1012-4.0.231-458 at-3.1.8-82.fc6 pax-3.4-1.2.2 xenserver-lsb-3.1-12.3.EL.xs vhostmd-0.2-xs458 [root@xenserver-550-1 ~]#
Autor: Werner Fischer Werner Fischer arbeitet im Product Management Team von Thomas-Krenn. Er evaluiert dabei neueste Technologien und teilt sein Wissen in Fachartikeln, bei Konferenzen und im Thomas-Krenn Wiki. Bereits 2005 - ein Jahr nach seinem Abschluss des Studiums zu Computer- und Mediensicherheit an der FH Hagenberg - heuerte er beim bayerischen Server-Hersteller an. Als Öffi-Fan nutzt er gerne Bus & Bahn und genießt seinen morgendlichen Spaziergang ins Büro.
|