差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
|
freebsd:freebsd_12_use_qemu_guest_agent [2021-01-27 18:00] Decomo 作成 |
freebsd:freebsd_12_use_qemu_guest_agent [2021-05-02 00:03] (現在) Decomo |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ===== FreeBSD 12でQEMUゲストエージェントを使う ===== | + | ====== FreeBSD 12でQEMUゲストエージェントを使う |
| - | ==== 試した環境 ==== | + | ===== 試した環境 |
| * FreeBSD 12.2-RELEASE | * FreeBSD 12.2-RELEASE | ||
| * Proxmox VE 6.3-2 | * Proxmox VE 6.3-2 | ||
| - | ==== 手順 ==== | + | ===== 手順 |
| - | [[https:// | + | FreeBSD用のQEMUゲストエージェントの[[https:// |
| - | === ビルド === | + | ==== ビルド |
| 現状、Portsは存在しないようなので、zipを取ってきて展開する。 | 現状、Portsは存在しないようなので、zipを取ってきて展開する。 | ||
| + | |||
| + | <note note> | ||
| + | |||
| + | 2021年3月16日に[[https:// | ||
| + | </ | ||
| < | < | ||
| 行 41: | 行 46: | ||
| $ cd / | $ cd / | ||
| # make && make install | # make && make install | ||
| + | (略) | ||
| + | ===> | ||
| + | ===> | ||
| + | ===> | ||
| + | Installing qemu-guest-agent-5.0.1... | ||
| + | ======================================================= | ||
| + | Modify your `/ | ||
| + | |||
| + | qemu_guest_agent_enable=" | ||
| + | qemu_guest_agent_flags=" | ||
| + | |||
| + | and run | ||
| + | # service qemu-guest-agent start | ||
| + | |||
| + | For detailed help use `qemu-ga -h` | ||
| + | ======================================================= | ||
| + | |||
| + | ===> SECURITY REPORT: | ||
| + | This port has installed the following files which may act as network | ||
| + | servers and may therefore pose a remote security risk to the system. | ||
| + | / | ||
| + | |||
| + | If there are vulnerabilities in these programs there may be a security | ||
| + | risk to the system. FreeBSD makes no guarantee about the security of | ||
| + | ports included in the Ports Collection. Please type 'make deinstall' | ||
| + | to deinstall the port if this is a concern. | ||
| + | |||
| + | For more information, | ||
| + | status of this software, see the following webpage: | ||
| + | http:// | ||
| </ | </ | ||
| - | ビルド&インストールが成功すると | + | インストールはPackagesの作法に則った形で行われるっぽい。 |
| + | |||
| + | ==== 設定 ==== | ||
| + | |||
| + | 動作にはvirtio_consoleが必要なので設定する。 | ||
| + | |||
| + | < | ||
| + | # echo ' | ||
| + | # kldload virtio_console | ||
| + | </ | ||
| + | |||
| + | カーネルモジュールを読み込むと/ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | 続いてゲストエージェントの設定&実行。 | ||
| + | |||
| + | 以下の2行を/ | ||
| + | |||
| + | < | ||
| + | qemu_guest_agent_enable=" | ||
| + | qemu_guest_agent_flags=" | ||
| + | </ | ||
| + | |||
| + | からのゲストエージェントを起動。 | ||
| + | |||
| + | < | ||
| + | # service qemu-guest-agent start | ||
| + | </ | ||
| + | |||
| + | Proxmox VEの仮想マシンのサマリーで、VMのIPアドレスが表示されればゲストエージェントが問題なく動いていると分かる。 | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | 素のKVM環境ならvirshとか使えばいいんじゃないかな? | ||
| + | |||
| + | ===== 参考サイト ===== | ||
| + | |||
| + | * [[https:// | ||