Show Table of Contents
21.15. VNC ディスプレイの IP アドレスとポート番号の表示
virsh vncdisplay コマンドは、指定されたゲスト仮想マシンについての VNC ディスプレイの IP アドレスとポート番号を返します。ゲストの情報が取得できない場合、終了コード 1 が表示されます。
このコマンドが機能するには、ゲストの XML ファイルの
devices 要素でグラフィックタイプが VNC に指定されている必要があります。詳細は、「グラフィカルフレームバッファー」 を参照してください。
例21.37 VNC の IP アドレスとポート番号を表示する方法
以下の例では guest1 仮想マシンの VNC ディスプレイのポート番号が表示されます。
# virsh vncdisplay guest1
127.0.0.1:0
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.