http://pve.proxmox.com/wiki/Storage_Migration
==========
qemu-img convert -O qcow2 /dev/VMStor1/vm-100-disk-1 /mnt/VMStor2/images/100/vm-100-disk-1.qcow2
qemu-img convert -p -f vmdk “IE11 - Win7-disk1.vmdk” -O raw /dev/mapper/pve-vm–101–disk-1
==========
qemu-img convert -p -f vmdk “IE11 - Win7-disk1.vmdk” -O raw “IE11 - Win7-disk1.raw”
dd if=“IE11 - Win7-disk1.raw” bs=1M|pv| dd of=/dev/mapper/pve-vm–101–disk–1
https://forum.proxmox.com/threads/dd-raw-drives-to-lvm-is-slow-is-there-a-better-way.29785/
http://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs)
stop the cluster file system in /etc/pve/
# systemctl stop pve-cluster
start it again but forcing local mode
# pmxcfs -l
remove the cluster configuration
# rm /etc/pve/cluster.conf
# rm /etc/cluster/cluster.conf
# rm /var/lib/pve-cluster/corosync.authkey
stop the cluster file system again
# systemctl stop pve-cluster
restart PVE services (or reboot)
# systemctl start pve-cluster
# systemctl restart pvedaemon
# systemctl restart pveproxy
# systemctl restart pvestatd
=======移除node==============
經PVE03 執行pvecm delnode pve07
pvecm expected 1
暫時把集叢的期待數量從2降低為1
service pve-cluster restart
==========
本機運作
systemctl stop pve-cluster
pmxcfs -l
==========
systemctl restart corosync.service
systemctl restart pve-cluster.service
systemctl restart pvedaemon.service
systemctl restart pveproxy.service
https://pve.proxmox.com/wiki/Separate_Cluster_Network
pvs
vgs
lvs
pvdisplay
vgdisplay
lvdisplay
lvdisplay 可以看到目前all locate % size
http://itheiso.blogspot.tw/2013/01/kvmubuntu-1204-lts.html
Windows虛擬機器效能調整
如果想讓Windows虛擬機器在KVM中有比較好的效能,可以安裝virtio驅動程式來提昇虛擬機器中的硬碟及網路卡速度。請先到 http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/ 下載最新版本的virtio(本範例版本為virtio-win-0.1-30.iso),接著先將Windows的虛擬機器關機,並從虛擬機器管理員編輯虛擬機器細節,將下載的virtio-win-0.1-30.iso掛載到IDE CDROM 1(先將原先Windows7的安裝光碟斷線再連線,並指定virtio-win-0.1-30.iso檔的位置),接著再加入硬體,新增一個Storage儲存裝置,並指定裝置類型為Virtio disk,然後將網路界面(NIC)的裝置類型也改為virtio,最後就可以將Windows虛擬機器再度開啟。
Virtio disk
Windows虛擬機器再度開啟之後,裝置管理員中會產生二個有驚嘆號的裝置,分別是Ethernet控制卡和SCSI控制卡,只要更新此二個裝置的驅動程式,並將驅動程式的位置指向剛剛掛載virtio的光碟機就可以正確安裝。
安裝完畢請再度將Windows虛擬機器關機,並再次從虛擬機器管理員編輯虛擬機器細節,移除剛剛新增的0.1G虛擬硬碟(請勿刪錯磁碟),再將原先安裝Windows系統的IDE Disk 1之虛擬磁碟型態改為Virtio,然後再重新開啟Windows虛擬機器。如此就可以提昇Windows的效能。
IDE to Virtio
1、
apt-get update
apt-get install ntfs-3g
2、fdisk -l 看有沒有找到usb hdd
blkid use uuid 3、根目錄底下有mnt
mount -t ntfs /dev/sdxxxx /mnt