captainhz 发表于 2009-9-6 10:53:35

高手请进,怎么上传ISO到Xenserver?

文档上是这么说的:
Copying ISOs to local storage
In XenServer 3.2 and earlier, ISOs could be copied directly to the control domain into the /opt/xensource/packages/
iso directory. In XenServer 5.0.0 hosts, this directory is reserved for use of the built-in ISO images, and is not
intended for general use. This directory is considered to be identical across hosts in a resource pool, and CD images
may fail to attach if the contents are modified.
To use local ISO storage from the control domain
1. Log onto the host console.
2. Create a directory to copy the local ISOs into:
mkdir -p /var/opt/xen/iso_import
3. Create an ISO storage repository by:
xe sr-create name-label= type=iso \
device-config:location=/var/opt/xen/iso_import/ \
device-config:legacy_mode=true content-type=iso
4. Copy the ISO images into this directory, taking care not to fill up the control domain filesystem.
5. Verify that the ISO image is available for use by xe vdi-list, or checking the CD drop-down box in XenCenter.
第三步的命令我没看明白,谁解释一下??是什么意思?我执行到这步一直出错。谢谢

milk_jj 发表于 2009-9-6 17:32:39

最简单的方式就是把iso放到网络上一个共享的文件夹里,在xenserver的storage里添加成iso library就可以了。

captainhz 发表于 2009-11-6 09:52:05

问题解决,手册的命令多了一个参数正确的为
xe sr-create name-label= type=iso \
device-config:location=/var/opt/xen/iso_import/ \
device-config:legacy_mode=true content-type=iso

comper 发表于 2009-7-7 16:03:15

官方的做法是做个网络存储!

taoap 发表于 2009-11-7 09:29:13

我就是在xen client的机器上设了一个共享目录,然后用xenclient在xenserver添加iso cifs存储,里面的iso镜像直接使用就好了

mxwb2000 发表于 2009-11-7 09:30:08

学习了!

aiyouyou 发表于 2009-11-7 09:30:39

1)#mkdir /iso
2)#xe sr-create name-label=iso type=iso device-config:location=/iso device-config:legacy_mode=true content-type=iso
3)#xe-toolstack-restart

lszlwy 发表于 2009-11-7 09:31:27

存储上划块NAS,ISO都放到里面,XenCenter上添加Storage。
页: [1]
查看完整版本: 高手请进,怎么上传ISO到Xenserver?