SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


linux:kvm_info

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
linux:kvm_info [2022/08/12 11:49] – [KVMのインストール] kimilinux:kvm_info [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1
行 13: 行 13:
   * [[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.1660272575.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki