Think before you speak, read before you think.

xenserver备份与恢复虚拟机

by

in

由于装好的xenserver空余的磁盘很小,所以这里挂载移动硬盘并将文件存放到移动硬盘中。这里使用的是xenserver的Command Line Interface. xenserver版本为6.1.0 .

插上usb移动硬盘之后,最好是分区为ext3系统

mkfs -t ext3 /dev/sdc5

并挂载到/mnt/usb目录下

mount /dev/sdc5 /mnt/usb

切换到/mnt/usb

cd /mnt/usb

备份操作为:

xe vm-export vm=<Name of VM> filename=<Name of file ending in “.xva”>

将来如果需要恢复时,只需

xe vm-import filename=abc.xva

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *