SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


linux:kvm_info

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
linux:kvm_info [2022/08/12 11:22] – [KVMのインストール] kimilinux:kvm_info [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1
行 5: 行 5:
   * https://www.linuxtechi.com/install-kvm-on-ubuntu-20-04-lts-server/   * https://www.linuxtechi.com/install-kvm-on-ubuntu-20-04-lts-server/
  
-  - 仮想化機能の有無の確認 +  - [[linux:kvm_install|仮想化機能の有無の確認]]<code sh>$ egrep -c '(vmx|svm)' /proc/cpuinfo 
-  - パッケージのインストール +$ sudo kvm-ok</code> 
-  - ブリッジの作成+  - [[linux:kvm_install|パッケージのインストール]] 
 +  - [[linux:kvm_install|ブリッジの作成]]
  
-  - [[linux:kvm_install|KVMのインストール]] 
-  - [[linux:virtual_machine_install|仮想マシンの作成とOSのインストール(ubuntu server 20.04LTS)]] 
 ===== 仮想マシンの操作 ===== ===== 仮想マシンの操作 =====
-  *  +  * [[linux:virtual_machine_install|仮想マシンの作成とOSのインストール]]<code sh> 
-===== 仮想マシンの削除 ===== +qemu-img create -f qcow2 images/template.qcow2 80G 
-<code sh> +$ virt-install --name=template --disk=images/template.qcow2,bus=virtio --vcpus=2 --ram=2048 --graphics vnc,password=*******,listen=0.0.0.0,keymap=ja --cdrom iso/ubuntu-20.04.2-live-server-amd64.iso</code> 
-virsh list --all +  * [[仮想マシンのクローン化]]<code sh>$ virt-clone --original template --name sstxp --file images/sstxp.qcow2</code> 
- Id   Name       State +  * [[linux:virtual_machine_control|仮想マシンの削除]]<code sh>$ virsh undefine template</code>  
---------------------------- +  * [[linux:virtual_machine_control|仮想マシンの設定変更]]<code sh>$ virsh list --all</code>
- 5    ssp0       running +
-    template   shut off+
  
-$ virsh undefine template 
-Domain template has been undefined 
  
-$ virsh list --all 
- Id   Name   State 
----------------------- 
-    ssp0   running 
- 
-$ 
-</code>  
- 
-===== 仮想マシンの設定変更 ===== 
- 
- 
-<code sh> 
-$ virsh list --all 
- Id   Name   State 
------------------------ 
-    ssp0   shut off 
- 
-$ virsh edit ssp0 
-. 
-. 
-.           
-Domain ssp0 XML configuration edited. 
- 
-$ virsh start ssp0 
-Domain ssp0 started 
- 
-</code> 
-===== 仮想マシンのクローン化 ===== 
-<code sh> 
-$ virt-clone --original template --name sstxp --file images/sstxp.qcow2 
-</code> 
-<code sh> 
-ubuntu@template:~$ hostnamectl  
-   Static hostname: template 
-         Icon name: computer-vm 
-           Chassis: vm 
-        Machine ID: d7a1d3b5bea6410bae792841027c0735 
-           Boot ID: ee7f7c9a95f84c6393387267791fffaf 
-    Virtualization: kvm 
-  Operating System: Ubuntu 20.04.2 LTS 
-            Kernel: Linux 5.4.0-66-generic 
-      Architecture: x86-64 
-ubuntu@template:~$ hostnamectl set-hostname sstxp 
-==== AUTHENTICATING FOR org.freedesktop.hostname1.set-static-hostname === 
-Authentication is required to set the statically configured local host name, as well as the pretty host name. 
-Authenticating as: Ubuntu (ubuntu) 
-Password:  
-==== AUTHENTICATION COMPLETE === 
-ubuntu@template:~$ hostnamectl  
-   Static hostname: sstxp 
-         Icon name: computer-vm 
-           Chassis: vm 
-        Machine ID: d7a1d3b5bea6410bae792841027c0735 
-           Boot ID: ee7f7c9a95f84c6393387267791fffaf 
-    Virtualization: kvm 
-  Operating System: Ubuntu 20.04.2 LTS 
-            Kernel: Linux 5.4.0-66-generic 
-      Architecture: x86-64 
-ubuntu@template:~$  
-</code> 
-<code sh> 
-$ sudo mv /etc/netplan/00-installer-config.yaml /etc/netplan/00-installer-config.yaml.disabled 
-</code> 
-<file txt /etc/netplan/01-fix-ipv4-config.yaml> 
-network: 
-  ethernets: 
-    enp1s0: 
-      addresses: [192.168.10.204/24] 
-      gateway4: 192.168.10.254 
-      nameservers: 
-        addresses: [192.168.10.1] 
-        search: [ee.ous.ac.jp] 
-  version: 2 
- 
- 
-</file> 
-<code sh> 
-$ sudo hostnamectl set-hostname ((hostname)) 
-$ sudo cat > 01-fix-ipv4-config.yaml << EOF 
-network: 
-  ethernets: 
-    enp1s0: 
-      addresses: [192.168.10.((ip address))/24] 
-      gateway4: 192.168.10.254 
-      nameservers: 
-        addresses: [192.168.10.1] 
-        search: [ee.ous.ac.jp] 
-  version: 2 
-EOF 
-$ sudo cp 01-fix-ipv4-config.yaml /etc/netplan/ 
-$ sudo mv /etc/netplan/00-installer-config.yaml /etc/netplan/00-installer-config.yaml.disabled 
- 
-</code> 
  
linux/kvm_info.txt · 最終更新: 2022/08/23 13:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki