SDLab

SDLab
SDLab.org::Adminな脳み

2014年7月29日火曜日

Xen

CPU周りの修正が多い印象。

[Xen-changelog] [xen master] document IOMMU related command line options
http://lists.xen.org/archives/html/xen-changelog/2014-07/msg00212.html

[Xen-changelog] [xen master] cxenstored: add support for systemd active sockets
http://lists.xen.org/archives/html/xen-changelog/2014-07/msg00232.html
[Xen-changelog] [xen master] oxenstored: add support for systemd active sockets
http://lists.xen.org/archives/html/xen-changelog/2014-07/msg00233.html


[Xen-changelog] [xen master] avoid crash when doing shutdown with active cpupools
http://lists.xen.org/archives/html/xen-changelog/2014-07/msg00205.html

[Xen-changelog] [xen master] xen: arm: ensure that the boot code is <4K in size
http://lists.xen.org/archives/html/xen-changelog/2014-07/msg00218.html


2014年7月24日木曜日

ethtool 関連 TCP offload


Re: [Xen-users] Network connections stalling - Debian Linux domU's
http://lists.xen.org/archives/html/xen-users/2014-07/msg00364.html

>> One observation: It seems to happen only with IPv4. If I connect to the
>> server using IPv6, everything runs fine - mail, sftp etc is OK. Are
>> there any IP- or TCP-settings that could cause this?
>
> tso and friends perhaps. Check ethtool -k (or is it -K?).
Bingo. "ethtool -K eth0 tx off" on the guest does the trick.

それBingoなのかっていう突っ込みは大いにあるが、一応MEMO。

これに絡んで、こっちもあげておく。
How to disable TCP offloading on XenServer 6.2 host nic's
http://discussions.citrix.com/topic/345963-how-to-disable-tcp-offloading-on-xenserver-62-host-nics/

全てOFFにしちゃうと、XenServer5.6からXenServer6.2にUpgrade時に、
TSOか、GSOか忘れたけど、エラーとになった。
なので、Clearwaterでは、TSOとGSOはONが推奨。

なお、トビアスが紹介している、VIF/PIFにOffloadを一括設定するスクリプトは、
運用するときは、注意してね。
設定を突っ込むとき、TSO/GSOもOFFになるんじゃない?
楽せず自分で書いくことを進める。
また、設定を抜くときは、自分で書くか打ち込んでくしかないけど、
param-clear時、other-configが全部クリアされるので、
PIFでNIC0とかNIC1とかについてるmanagement_purpose:を消さないようにね。


2014年7月23日水曜日

Memory usage alert mail など

xapi


Add Dom0 mem_usage alert
https://github.com/xapi-project/xen-api/pull/1836

+def get_percent_mem_usage(ignored):
+    "Get the percent usage of Dom0 memory/swap. Input list is ignored and should be empty"

Swapの状況もDom0でとれて、Alertメールも出せるようになる。


CP-9019: Automatically log the Xen console
https://github.com/andyhhp/xen-api/commit/9c5c623df0fbe477d3aa1e0c5cdf5054bd9ebe33

/usr/sbin/xenconsoled --log=hv --timestamp=hv --log-dir=/var/log/xen


CP-8987: Use Sexp for Xenops header serialisation
https://github.com/simonjbeaumont/xenopsd/commit/42b0c6061408e08ff8b2c9880344e294c5865a2a
We want to be able to extend the Xenops record in the suspend image in future
versions

sexp_lib

2014年7月16日水曜日

XenServer関連の修正メモ

あまり目に着く情報がなかったので、Blog自体を更新してなかったが、
この辺で更新しておきます。

XenServer


CA-139739: encode NFS shares

self.remotepath = self.dconf['serverpath'].encode('utf-8')

え?encode? そういう書き方もできるのか。

CP-8636: Change gpumon build to use new NVIDIA GDK

 -Source1: tdk_5.319.43.tar.gz
 +Source1: gdk_331_62_release.tgz
 -tar zxvf /obj/SOURCES/tdk_5.319.43.tar.gz
 -cp $RPM_BUILD_DIR/tdk_5.319.43/nvml/include/nvml.h /usr/include
 +tar zxvf /obj/SOURCES/gdk_331_62_release.tgz
 +cp $RPM_BUILD_DIR/gdk_linux_amd64_release/nvml/include/nvml.h /usr/include

GDKのVersion情報が必要になった時のMEMO

CP-8285: Remove maxcpus=1 workaround (only SLES 11 SP0 needs this)
linux-guest-loaderのeliloader.py

XS62ESP1008

下記更新しました。
XS62ESP1008 (7/15公開)

XenServer6.2 SP1 のパッチリスト (2014/7/16時点)




2014年7月9日水曜日

XenServer Creedence Tech Preview で CentOS 7 Para-Virtual

同じタイミングで出てたので、テストしてみた。
結論から言うとダメでした。NG

CentOS 7 のHVMは作れた。(まぁ、当然か。Alpha3 では作れなかった)
CentOS 7 HVM で、 XenCenterのConsoleのDVDに xs-tools.isoをセットすると、
CentOS 7 に
ata2.01: status: { ERR }
ata2: soft resetting link
ata2.01: configured for MWDMA2
ata2: EH complete
と出てドライブを認識しない。
また、CentOS 7 のKernelはXenの各種ドライバを持っているので、netfrontやxen balloonが見えた。
ん?
xen events: Xen HVM callback vector for event delivery is enabled
HVMって認識するんだ。Guest側で。

あとで詳しく見てみる。

XenServer Tech Preview Releas / Alpha4

XenServer Tech Preview Release Date: Jul 8, 2014
https://www.citrix.com/downloads/xenserver/product-software/xenserver-tech-preview
Citrix XenServer 6.4.93

XenServer Creedence Alpha 4
http://xenserver.org/open-source-virtualization-download/11-product/142-download-pre-release.html
2014-07-02 nightly build

多分 TechPreviewはAlpha4と同じと思われる。
なお、最新Nightly Buildは 2014-07-07 だ。次は07-12?