karesansuiでホスト停止時に自動的に停止/サスペンドさせる

Karesansui Documents」で記載が見つからなかったのでメモ

方法は2つ

■「/etc/init.d/libvirt-guests」を使う。
  デフォルトで入っている。
  実行すると、「/var/run/libvirt/libvirt-sock」が無いと怒られる。

Running guests on default URI: error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
error: failed to connect to the hypervisor

  1.「Karesansui」が作る「libvirt-sock」の場所が違うらしいので、リンクを張る。
  # ln -s /var/run/hde-libvirt/libvirt-sock /var/run/libvirt/libvirt-sock

■「/etc/init.d/hde-libvirt-guests」を使う。
  「Karesansui2.0.1」をインストールすると作成される。
  1.デフォルトで入っている「libvirt-guests」を止める。
   # chkconfig libvirt-guests off
  2.「hde-libvirt-guests」を有効にする。
   # chkconfig hde-libvirt-guests on

libvirt-sock」と「hde-libvirt-guests」の中身は、多少の差異はあるが、やってることは同じだった。