Citrix XenServer

Citrix XenServer

xenserver-test cpu特性码:77fafbff-bfebfbff-00000021-2c100800

 

xe snapshot-list

xen还原快照

xe snapshot-revert snapshot-uuid=10026c96-acd7-20e8-6011-14ec3210711a

xen卸载快照

xe snapshot-uninstall snapshot-uuid=687afbe6-1df1-bcd4-d706-dc47786b1419

 

Xen Install Ubuntu Configuration

xe vm-list

xe vm-param-list uuid=420ec5c0-7341-73e6-3fe0-de8bba05d73e  | grep HVM-boot

xe vm-param-set uuid=420ec5c0-7341-73e6-3fe0-de8bba05d73e HVM-boot-policy="BIOS order" HVM-boot-params:order="dc"

 

安装Ubuntu  

xe vm-param-set uuid=d9826d64-a45f-deb6-408b-8bb9b3adbe8a HVM-boot-policy="BIOS order" HVM-boot-params:order="dc"

 

1. 运行 snapshot-list 命令以查找要还原的快照或检查点的 UUID

xe snapshot-list

2. 记下快照的 uuid,然后运行以下命令进行还原:

xe snapshot-revert snapshot-uuid=5deb4ca6-3bfe-b8e6-4de3-247a1196ce4a

 

删除快照

xe snapshot-list

xe snapshot-uninstall snapshot-uuid=5deb4ca6-3bfe-b8e6-4de3-247a1196ce4a

 

添加硬盘


[root@localhost ~]# pvcreate /dev/sdb

Physical volume "/dev/sdb" successfully created

[root@localhost ~]# ls -l /dev/disk/by-id/


[root@localhost ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_ST1000NM0011_Z1N0WESK name-label="SSCI_1"

[root@xenserver-test ~]# xe sr-create content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_WDC_WD10EZEX-00_WD-WMC6Y0H9XAUR host-uuid=81b98b50-368f-42f4-8a5d-1934a2df0fbb name-label="SATA" shared=false type=lvm
9b2c7b0c-b16d-6189-3e44-e80a73238cf2
[root@xenserver-test ~]#

xe sr-list

xe pbd-list sr-uuid=5c7e345f-1540-19ab-9263-498b1a8ed5d1

xe pbd-unplug uuid=5c7e345f-1540-19ab-9263-498b1a8ed5d1

xe sr-destroy uuid=5c7e345f-1540-19ab-9263-498b1a8ed5d1

xe sr-forget uuid=5c7e345f-1540-19ab-9263-498b1a8ed5d1

 

恢复快照

xe snapshot-list

xe snapshot-revert snapshot-uuid=10026c96-acd7-20e8-6011-14ec3210711a

xe snapshot-uninstall snapshot-uuid=687afbe6-1df1-bcd4-d706-dc47786b1419

 

安装Ubuntu

xe vm-list

xe vm-param-list uuid=420ec5c0-7341-73e6-3fe0-de8bba05d73e  | grep HVM-boot

xe vm-param-set uuid=420ec5c0-7341-73e6-3fe0-de8bba05d73e HVM-boot-policy="BIOS order" HVM-boot-params:order="dc"


 


来自为知笔记(Wiz)


posted on 2016-12-12 13:47  sanyuanyanjin  阅读(307)  评论(0编辑  收藏  举报