XenServer 8.1创建ISO镜像库

XenServer在安装好之后会自动创建VG,所以只需要创建个逻辑卷(类比windows的C、D、E分区),将逻辑卷作为iso镜像库就行,下面是具体过程。

2.查看VG name(如果没有自动创建的,可以去查找一下如何创建)

[root@xenserver1 ~]# vgdisplay
  --- Volume group ---
  VG Name               VG_example
  ......
  ......

3.创建逻辑卷,我这里分了30g

[root@xenserver1 ~]# lvcreate -L 30G -n iso_image VG_example
  Logical volume "iso_image" created.

4.在逻辑卷上创建文件系统

[root@xenserver1 ~]# mkfs.ext3 /dev/VG_example/iso_image

5.挂载

[root@xenserver1 ~]# mkdir /iso_image
[root@xenserver1 ~]# mount /dev/VG_example/iso_image /iso_image/

6.创建镜像库,完成

[root@xenserver1 ~]# xe sr-create name-label=ISO_Image type=iso device-config:location=/iso_image device-config:legacy_mode=true content-type=iso

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值