Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
49e261d1
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
49e261d1
编写于
11月 22, 2009
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
esx: Extend documentation about 'vcenter' and add some about 'auto_answer'
上级
c23a4fd1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
49 addition
and
11 deletion
+49
-11
docs/drvesx.html.in
docs/drvesx.html.in
+45
-7
src/esx/README
src/esx/README
+4
-4
未找到文件。
docs/drvesx.html.in
浏览文件 @
49e261d1
...
...
@@ -15,7 +15,7 @@
installed on the ESX server. The driver uses version 2.5 of the remote,
SOAP based
<a
href=
"http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/"
>
VMware Virtual Infrastructure API
</a>
to communicate with the
VMware Virtual Infrastructure API
</a>
(VI API)
to communicate with the
ESX server, like the VMware Virtual Infrastructure Client does. Since
version 4.0 this API is called
<a
href=
"http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/"
>
...
...
@@ -78,11 +78,12 @@ type://[username@]hostname[:port]/[?extraparameters]
<code>
vcenter
</code>
</td>
<td>
Hostname of a VMware vCenter
Hostname of a VMware vCenter
or
<code>
*
</code>
</td>
<td>
In order to perform a migration the driver needs to know the
VMware vCenter for the ESX server.
VMware vCenter for the ESX server. If set to
<code>
*
</code>
,
the driver connects to the vCenter known to the ESX server.
</td>
</tr>
<tr>
...
...
@@ -97,6 +98,20 @@ type://[username@]hostname[:port]/[?extraparameters]
SSL certificate. The default value it 0.
</td>
</tr>
<tr>
<td>
<code>
auto_answer
</code>
</td>
<td>
<code>
0
</code>
or
<code>
1
</code>
</td>
<td>
If set to 1, the driver answers all
<a
href=
"#questions"
>
questions
</a>
with the default answer.
If set to 0, questions are reported as errors. The default
value it 0.
</td>
</tr>
</table>
...
...
@@ -120,6 +135,25 @@ type://[username@]hostname[:port]/[?extraparameters]
</p>
<h2><a
name=
"questions"
>
Questions blocking tasks
</a></h2>
<p>
Some methods of the VI API start tasks, for example
<code>
PowerOnVM_Task()
</code>
. Such tasks may be blocked by questions
if the ESX server detects an issue with the domain that requires user
interaction. The ESX driver cannot prompt the user to answer a
question, libvirt doesn't have an API for something like this.
</p>
<p>
The VI API provides the
<code>
AnswerVM()
</code>
method to
programmatically answer a questions. So the driver has two options
how to handle such a situation: either answer the questions with the
default answer or report the question as an error and cancel the
blocked task if possible. The
<a
href=
"#uriformat"
><code>
auto_answer
</code></a>
query parameter
controls the answering behavior.
</p>
<h2><a
name=
"xmlspecial"
>
Specialties in the domain XML config
</a></h2>
<p>
There are several specialties in the domain XML config for ESX domains.
...
...
@@ -404,8 +438,12 @@ ethernet0.address = "00:50:56:25:48:C7"
<h2><a
name=
"migration"
>
Migration
</a></h2>
<p>
A migration cannot be initiated on an ESX server directly, a VMware
vCenter is necessary for this. The vCenter hostname has to be passed
to the driver via the
<code>
vcenter
</code>
query parameter.
vCenter is necessary for this. The
<code>
vcenter
</code>
query
parameter must be set either to the hostname or IP address of the
vCenter managing the ESX server or to
<code>
*
</code>
. Setting it
to
<code>
*
</code>
causes the driver to connect to the vCenter known to
the ESX server. If the ESX server is not managed by a vCenter an error
is reported.
</p>
<pre>
esx://example.com/?vcenter=example-vcenter.com
...
...
@@ -413,11 +451,11 @@ esx://example.com/?vcenter=example-vcenter.com
<p>
Here an example how to migrate the domain
<code>
Fedora11
</code>
from
ESX server
<code>
example-src.com
</code>
to ESX server
<code>
example-dst.com
</code>
involving vCenter
<code>
example-dst.com
</code>
i
mplicitly i
nvolving vCenter
<code>
example-vcenter.com
</code>
using
<code>
virsh
</code>
.
</p>
<pre>
$ virsh -c esx://example-src.com/?vcenter=
example-vcenter.com migrate Fedora11 esx://example-dst.com/?vcenter=example-vcenter.com
$ virsh -c esx://example-src.com/?vcenter=
* migrate Fedora11 esx://example-dst.com/?vcenter=*
Enter username for example-src.com [root]:
Enter root password for example-src.com:
Enter username for example-vcenter.com [administrator]:
...
...
src/esx/README
浏览文件 @
49e261d1
...
...
@@ -18,8 +18,8 @@ Automatic question handling
What is a question in the ESX context?
--------------------------------------
The VI API contains
call
s that start tasks, for example PowerOnVM_Task(). Such
tasks may be blocked by
a question
if the ESX host detects an issue with the
The VI API contains
method
s that start tasks, for example PowerOnVM_Task(). Such
tasks may be blocked by
questions
if the ESX host detects an issue with the
virtual machine that requires user interaction.
An example: If a virtual machine has a serial port that is realized via a file,
...
...
@@ -29,8 +29,8 @@ Until this question is answered the power-on task is blocked and the virtual
machine won't get powered on.
The ESX driver cannot prompt the user to answer a question, libvirt doesn't
have an API for something like this. The VI API provides
a AnswerVM() method to
programmatically answer such questions. A question comes together with a list
have an API for something like this. The VI API provides
the AnswerVM() method
to
programmatically answer such questions. A question comes together with a list
of possible answers. One of this answers is marked as the default one. For all
questions I've seen so far the default answer is always a non-destructive one.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录