linux:kvm_install
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| linux:kvm_install [2021/02/24 12:47] – [Step 3: Creating a Virtual Machine in Ubuntu] kimi | linux:kvm_install [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== KVMのインストール ====== | ====== KVMのインストール ====== | ||
| - | 以下の記事を参考にubuntuサーバにKVMをセットアップする。 | + | |
| - | * https:// | + | ===== Step 1: 仮想化機能の有無の確認 |
| - | * https:// | + | |
| - | ===== Step 1: Check Virtualization Support in Ubuntu | + | |
| <code sh> | <code sh> | ||
| 行 16: | 行 14: | ||
| </ | </ | ||
| - | ===== Step 2: Install KVM on Ubuntu 20.04 LTS ===== | + | ===== Step 2: パッケージのインストール |
| 行 73: | 行 71: | ||
| $ | $ | ||
| </ | </ | ||
| - | ===== Step 3: Creating a Virtual Machine in Ubuntu | + | ===== Step 3: ブリッジの作成 |
| <code sh> | <code sh> | ||
| $ cat / | $ cat / | ||
| 行 91: | 行 89: | ||
| $ | $ | ||
| </ | </ | ||
| - | |||
| <code sh> | <code sh> | ||
| - | $ qemu-img create | + | $ sudo cp 00-installer-config.yaml 00-installer-config.yaml.org |
| - | Formatting 'ssp0.qcow2', fmt=qcow2 size=161061273600 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | + | $ cat / |
| + | # This is the network config written by 'subiquity' | ||
| + | # Added br0 and moved entries from enp3s0 to br0 | ||
| + | network: | ||
| + | ethernets: | ||
| + | enp3s0: | ||
| + | dhcp4: no | ||
| + | dhcp6: no | ||
| + | version: 2 | ||
| + | bridges: | ||
| + | br0: | ||
| + | interfaces: | ||
| + | - enp3s0 | ||
| + | addresses: | ||
| + | - 192.168.10.4/ | ||
| + | gateway4: 192.168.10.254 | ||
| + | nameservers: | ||
| + | addresses: | ||
| + | - 192.168.10.1 | ||
| + | search: | ||
| + | - ee.ous.ac.jp | ||
| $ | $ | ||
| </ | </ | ||
| <code sh> | <code sh> | ||
| - | ~$ virt-install | + | $ sudo netplan apply |
| + | $ sudo networkctl status | ||
| + | ● State: routable | ||
| + | | ||
| + | 192.168.10.4 on br0 | ||
| + | fe80:: | ||
| + | | ||
| + | DNS: 192.168.10.1 | ||
| + | Search Domains: ee.ous.ac.jp | ||
| + | |||
| + | Feb 24 04:06:09 sstw systemd[1]: systemd-networkd.service: | ||
| + | Feb 24 04:06:09 sstw systemd[1]: Starting Network Service... | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd[1]: Started Network Service. | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:10 sstw systemd-networkd[8895]: | ||
| + | $ ip a | ||
| + | 1: lo: < | ||
| + | link/ | ||
| + | inet 127.0.0.1/8 scope host lo | ||
| + | | ||
| + | inet6 ::1/128 scope host | ||
| + | | ||
| + | 2: enp3s0: < | ||
| + | link/ether 2c: | ||
| + | 3: wlo1: < | ||
| + | link/ether 8c: | ||
| + | 4: virbr0: <NO-CARRIER, | ||
| + | link/ether 52: | ||
| + | inet 192.168.122.1/ | ||
| + | | ||
| + | 5: virbr0-nic: < | ||
| + | link/ether 52: | ||
| + | 6: br0: < | ||
| + | link/ether 2c: | ||
| + | inet 192.168.10.4/ | ||
| + | | ||
| + | inet6 fe80:: | ||
| + | | ||
| + | $ sudo networkctl status br0 | ||
| + | ● 6: br0 | ||
| + | Link File: / | ||
| + | Network File: / | ||
| + | Type: bridge | ||
| + | | ||
| + | Driver: bridge | ||
| + | HW Address: 2c: | ||
| + | MTU: 1500 (min: 68, max: 65535) | ||
| + | | ||
| + | Hello Time: 2s | ||
| + | Max Age: 20s | ||
| + | | ||
| + | Priority: 32768 | ||
| + | STP: no | ||
| + | Multicast IGMP Version: | ||
| + | Queue Length (Tx/Rx): 1/1 | ||
| + | | ||
| + | fe80:: | ||
| + | | ||
| + | DNS: 192.168.10.1 | ||
| + | Search Domains: ee.ous.ac.jp | ||
| + | |||
| + | Feb 24 04:06:09 sstw systemd-udevd[8897]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:09 sstw systemd-networkd[8895]: | ||
| + | Feb 24 04:06:10 sstw systemd-networkd[8895]: | ||
| + | $ | ||
| - | Starting install... | ||
| - | Domain installation still in progress. You can reconnect to | ||
| - | the console to complete the installation process. | ||
| - | $ | ||
| </ | </ | ||
| - | |||
| - | - Finderから「サーバへ接続」 | ||
| - | - vnc:/ / < | ||
linux/kvm_install.1614138442.txt.gz · 最終更新: (外部編集)