Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

KVM virt-managerによるSecurity Director Insightsのインストール

始める前に

  • スナップショットがないことを確認します。ディスク サイズを拡張する前に、スナップショットを削除する必要があります。

  • ディスク サイズを拡張する前に、VM のクローンを作成してバックアップを作成することをお勧めします。

KVM virt-manager GUI パッケージを使用して Security Director Insights をインストールして起動できます。

開始する前に、次のことを確認する必要があります。

  • ホスト OS に KVM、qemu、virt-manager、および libvirt がすでにインストールされている。

  • SSH経由でKVMにアクセスするためのブリッジネットワークを作成しました。

    このドキュメントでは、ブリッジ ネットワーク br0 を Netplan で作成します。 図 1 は、/etc/netplan/00-installer-config.yaml ファイルの構成例を示しています。

    図 1: br0 YAML snippet configuring a network bridge named br0 with interface eno2. STP is false, forward-delay is 0, DHCP4 is yes, DHCP6 is no.の設定例

Security Director Insights with virt-managerをインストールするには:

  1. ジュニパーソフトウェアのダウンロードサイトから、Security Director Insights KVMイメージをダウンロードします。
  2. ホストOSで、virt-managerと入力します。

    [Virtual Machine Manager] ページが表示されます ( 図 2 参照)。

    図 2: [Virtual Machine Manager] ページ Virtual Machine Manager interface showing two active VMs: sdi-qcow and sdi22.z58 with CPU usage graphs.
    手記:

    virt-managerを使用するには、ホストOSの管理者権限が必要です。

  3. [Create a new virtual machine] アイコンをクリックします (図 3 参照)。

    [新しい仮想マシンの作成] ページが表示されます。

    図 3: 新しい仮想マシン Virtual Machine Manager interface with an arrow pointing to the Create a new virtual machine button. Two running VMs named sdi-qcow and sdi22.2s8 showing CPU usage graphs.を作成する
  4. 「既存のディスクイメージをインポート」を選択し、「進む」をクリックします。
    図4:ディスクイメージCreating a new virtual machine dialog in QEMU/KVM at Step 1 of 5 with Local install media option selected.のインポート
  5. ダウンロードした Security Director Insights イメージの場所を参照し、イメージを選択します。
    図5:ストレージパスとオペレーティングシステムStep 2 of 4: Enter storage path and select OS. Storage path is /root/juniper-security-director-insights-22.2.s8c3.qcow2. OS is Ubuntu 18.04 LTS. Navigation options: Cancel, Back, Forward.の選択
  6. [インストールするオペレーティング システムを選択してください] フィールドで、Ubuntu 18.04 バージョンを選択します (図 5 参照)。
  7. [進む] をクリックします。
  8. 図 6 に示すように、RAM を 16384 MB に、CPU を 8 に設定します。
    図 6: メモリと CPU の構成 Step 3 of 4 in VM setup. Memory set to 16384 MiB and CPUs set to 8. Navigation buttons: Cancel, Back, Forward.

    [ 進む] をクリックします。

  9. [Customize configuration before install](インストール前に構成をカスタマイズする)オプションを選択します(図 7 参照)。
    図 7:[Network Selection](ネットワーク選択)ページ Step 4 of 4 in virtual machine creation wizard: Configure settings for ubuntu18.04 with Ubuntu 18.04 LTS, 16 GB memory, 8 CPUs, QCOW2 storage, bridge network br0. Customize configuration before install checked.
  10. [ネットワークの選択] フィールドで、リストからブリッジ ネットワーク (通常は br0) を選択します。
  11. 終了」をクリックします。
  12. [Add Hardware] をクリックします(図 8 参照)。

    [Add New Virtual Hardware] ページが表示されます。

    図8:ハードウェアオプションの追加 Virtual machine configuration interface for Ubuntu18.04 showing settings like CPUs, Memory, and Boot Options. Add Hardware button highlighted.
  13. 左側のメニューから[ネットワーク]を選択し、[完了]をクリックします。
    図 9: [Network Details] ページ Configuration window for adding new virtual hardware in Virt-Manager, showing Network settings tab. Network source is Bridge br0: Host device eno2. MAC address is 52:54:00:05:0f:a3. Device model is virtio. Buttons: Cancel and Finish.
  14. 「インストールの開始」をクリックします。
    図10:インストールの開始 Virtual Machine Manager interface showing VM named ubuntu18.04 with Begin and Cancel Installation buttons, Overview tab, and VM details.

    VM マネージャーが仮想マシンを作成し、Security Director Insights コンソールを起動します。

Expand the VM Disk Size

プロシージャ

KVM virt-manager で使用可能な最大サイズまでディスクを拡張するには、次のようにします。

  1. KVM のホストにログインし、VM の電源を切ります ( 図 11 を参照)。

    図 11: VM の電源Virtual Machine Manager interface showing VM 'jsa' running and 'sdiq-disk' shut off. Tooltip: Shut down VM option. CPU usage graphs on right.
  2. ホストから、 qemu-img resize vmdisk.img +XG コマンドを使用してディスクサイズを増やします。ここで、vmdisk.imgはイメージの名前で、XGはディスクを拡張するGBサイズです。Terminal showing qemu-img command to resize disk image by 200GB confirming successful operation.

    サイズは、ディスクをどの程度拡張するかを示します。これは、ディスクの最大サイズではありません。

  3. KVMの電源を入れ、管理CLIにログインします。サーバーモードに切り替えて set disk-partition-to-full コマンドを実行します。 Terminal displaying partition resizing with sgdisk, lsblk showing disk details, resize2fs for ext4 resizing, and df listing mounted filesystems.

    新しいディスクサイズは /dev/vda2 のサイズです。