SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


linux:kvm_info

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
linux:kvm_info [2022/08/12 11:38] – [仮想マシンの操作] 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/
  
-  - 仮想化機能の有無の確認<code sh>$ egrep -c '(vmx|svm)' /proc/cpuinfo+  - [[linux:kvm_install|仮想化機能の有無の確認]]<code sh>$ egrep -c '(vmx|svm)' /proc/cpuinfo
 $ sudo kvm-ok</code> $ sudo kvm-ok</code>
-  - パッケージのインストール +  - [[linux:kvm_install|パッケージのインストール]] 
-  - ブリッジの作成 +  - [[linux:kvm_install|ブリッジの作成]]
- +
-  - [[linux:kvm_install|KVMのインストール]]+
  
 ===== 仮想マシンの操作 ===== ===== 仮想マシンの操作 =====
   * [[linux:virtual_machine_install|仮想マシンの作成とOSのインストール]]<code sh>   * [[linux:virtual_machine_install|仮想マシンの作成とOSのインストール]]<code sh>
 $ qemu-img create -f qcow2 images/template.qcow2 80G $ qemu-img create -f qcow2 images/template.qcow2 80G
-$ virt-install --name=template --disk=images/template.qcow2,bus=virtio ・・・</code>+$ 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>
   * [[仮想マシンのクローン化]]<code sh>$ virt-clone --original template --name sstxp --file images/sstxp.qcow2</code>   * [[仮想マシンのクローン化]]<code sh>$ virt-clone --original template --name sstxp --file images/sstxp.qcow2</code>
-  * 仮想マシンの削除<code sh>$ virsh undefine template</code>  +  * [[linux:virtual_machine_control|仮想マシンの削除]]<code sh>$ virsh undefine template</code>  
-  * 仮想マシンの設定変更<code sh>$ virsh list --all</code> +  * [[linux:virtual_machine_control|仮想マシンの設定変更]]<code sh>$ virsh list --all</code>
- +
- +
-===== 仮想マシンの削除 ===== +
-<code sh> +
-$ virsh list --all +
- Id   Name       State +
---------------------------- +
-    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> 
  
linux/kvm_info.1660271883.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki