作業環境
伺服器端
作業系統:Red Hat Enterprise Linux Server release 6.1 (Santiago)
KVM:qemu-kvm-0.12.1.2-2.113.el6.x86_64
用戶端
作業系統:Windows 7
KVM管理工具:Xming 6.9
将KVM顯示導出到用戶端PC
[root@sqing ~]# export DISPLAY=10.8.110.28:0
[root@sqing ~]# virt-manager
右擊localhost,在出現的菜單中,選擇“Details”,即可打開host detail對話框,切換到“Storage”頁籤,即可管理存儲池。
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135120624.jpg"></a>
kvm存儲池
1、kvm預設存儲池在/var/lib/libvirt/images目錄下,其大小受根分區大小受限制
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135213890.jpg"></a>
建立虛拟機時,預設建立的raw格式的虛拟硬碟被儲存到該預設存儲池中,如果設定的虛拟硬碟值比可用的空間大時,将無法建立
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135235414.jpg"></a>
2、自定義一個存儲池,将其路徑設在home目錄下
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135259114.jpg"></a>
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135335299.jpg"></a>
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135400642.jpg"></a>
在該存儲池中通過“New Volume”建立虛拟硬碟,其格式是可選的,大小自行設定
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135428859.jpg"></a>
建立虛拟機時,可以直接使用該池中的預置的虛拟硬碟
<a target="_blank" href="http://blog.51cto.com/attachment/201203/135502974.jpg"></a>
本文轉自Sunshyfangtian 51CTO部落格,原文連結:http://blog.51cto.com/sunshyfangtian/798092,如需轉載請自行聯系原作者