You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by "Wwei@landhightech.com" <Ww...@landhightech.com> on 2015/01/19 07:59:22 UTC

CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

大家好:
       CloudStack4.4.1 + VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack 的管理节点  如何和虚拟机进行交互的?谢谢大家了。


Wwei@landhightech.com

Re: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by "Wwei@landhightech.com" <Ww...@landhightech.com>.
谢谢您的回复,我是新手,CloudStack接触不久,可否提供一些开发的资料(什么虚拟化技术的都可以),不胜感激,拜谢。



Wwei@landhightech.com
 
发件人: linuxbqj@gmail.com
发送时间: 2015-01-20 16:38
收件人: users-cn
主题: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
做cloudstack二次开发的,建议多看看社区如何做的
 
如果代码可以被社区接受,就不用后期维护两套代码了,同时也享受社区版本的好处
 
在 2015年1月20日 下午1:43,Fan Lei <le...@gmail.com> 写道:
> 基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
>
> 在 2015年1月19日 下午2:59,Wwei@landhightech.com <Ww...@landhightech.com>写道:
>
>> 大家好:
>>        CloudStack4.4.1 +
>> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
>> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>>
>>
>> Wwei@landhightech.com
>>
 
 
 
-- 
白清杰 (Born Bai)
 
Mail: linuxbqj@gmail.com

Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
做cloudstack二次开发的,建议多看看社区如何做的

如果代码可以被社区接受,就不用后期维护两套代码了,同时也享受社区版本的好处

在 2015年1月20日 下午1:43,Fan Lei <le...@gmail.com> 写道:
> 基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
>
> 在 2015年1月19日 下午2:59,Wwei@landhightech.com <Ww...@landhightech.com>写道:
>
>> 大家好:
>>        CloudStack4.4.1 +
>> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
>> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>>
>>
>> Wwei@landhightech.com
>>



-- 
白清杰 (Born Bai)

Mail: linuxbqj@gmail.com

RE: RE: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by "YUAN, GUI -HBIS" <yu...@hbis.com.cn>.
如果是初步接触,还是先了解一下CloudStack的功能,然后再去看这些功能是怎么实现的。
如果我们想看VM的状态是怎么反映到CloudStackManagement(>DB)里的,不访从下面的方式着手调查:
如果计算单元运行着CloudStack-Agent,可以查看一下Agent或Management的Log,
他们之前会定时进行信息交换,应该通过Management的8250端口吧。
他们之前的数据应该包括了Agent上运行着的VM信息。
找到了这部分Log,自然就能找到是哪本程序输出的。

其实很多类似的软件,都通过类似的数据交换来获取情报!


From: Wwei@landhightech.com [mailto:Wwei@landhightech.com] 
Sent: Thursday, January 22, 2015 10:58 AM
To: users-cn; yuan-gui@hbis.com.cn
Subject: Re: RE: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

谢谢您的回复,可否再向您请教一下该功能对应的代码部分怎样实现的,或者是流程是怎样的?初步接触CloudStack,举步维艰,望您指导,拜谢。
________________________________________
Wwei@landhightech.com
 
发件人: YUAN, GUI -HBIS
发送时间: 2015-01-22 09:19
收件人: users-cn@cloudstack.apache.org
主题: RE: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
VM怎么着也是运行在Agent或其他虚拟化软件上的。
而VM的状态是可以通过这些软件获得,
所以,在CloudStackUI上刷新VM的状态是没有问题的。
 
 
>-----Original Message-----
>From: Wwei@landhightech.com [mailto:Wwei@landhightech.com]
>Sent: Thursday, January 22, 2015 9:12 AM
>To: users-cn
>Subject: Re: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点
>交互的?
>
>谢谢你的回复,是否是CloudStack通过Agent,选择对应的虚拟化,然后创建
>虚拟机,但是接下来虚拟机与CloudStack是否还有通信?如果我不通过
>CloudStack 关闭虚拟机,我直接在后台关闭虚拟机,CloudStack的数据库和ui
>上会一直显示running吗?CloudStack是否会给虚拟机发一个类似于心跳包的
>东西?
>麻烦你了,非常感谢。
>
>
>
>Wwei@landhightech.com
>
>发件人: Fan Lei
>发送时间: 2015-01-20 13:43
>收件人: users-cn@cloudstack.apache.org
>主题: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
>基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
>
>在 2015年1月19日 下午2:59,Wwei@landhightech.com
><Ww...@landhightech.com>写道:
>
>> 大家好:
>>        CloudStack4.4.1 +
>> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack
>的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
>> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>>
>>
>> Wwei@landhightech.com
>>
 
Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail

Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail

Re: RE: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by Wei ZHOU <us...@gmail.com>.
cloudstack全局设置里面有个host.stats.interval,你可以查一下相应的代码实现。

在 2015年1月22日 上午3:58,Wwei@landhightech.com <Ww...@landhightech.com>写道:

> 谢谢您的回复,可否再向您请教一下该功能对应的代码部分怎样实现的,或者是流程是怎样的?初步接触CloudStack,举步维艰,望您指导,拜谢。
>
>
> Wwei@landhightech.com
>
> 发件人: YUAN, GUI -HBIS
> 发送时间: 2015-01-22 09:19
> 收件人: users-cn@cloudstack.apache.org
> 主题: RE: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
> VM怎么着也是运行在Agent或其他虚拟化软件上的。
> 而VM的状态是可以通过这些软件获得,
> 所以,在CloudStackUI上刷新VM的状态是没有问题的。
>
>
> >-----Original Message-----
> >From: Wwei@landhightech.com [mailto:Wwei@landhightech.com]
> >Sent: Thursday, January 22, 2015 9:12 AM
> >To: users-cn
> >Subject: Re: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点
> >交互的?
> >
> >谢谢你的回复,是否是CloudStack通过Agent,选择对应的虚拟化,然后创建
> >虚拟机,但是接下来虚拟机与CloudStack是否还有通信?如果我不通过
> >CloudStack 关闭虚拟机,我直接在后台关闭虚拟机,CloudStack的数据库和ui
> >上会一直显示running吗?CloudStack是否会给虚拟机发一个类似于心跳包的
> >东西?
> >麻烦你了,非常感谢。
> >
> >
> >
> >Wwei@landhightech.com
> >
> >发件人: Fan Lei
> >发送时间: 2015-01-20 13:43
> >收件人: users-cn@cloudstack.apache.org
> >主题: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
> >基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
> >
> >在 2015年1月19日 下午2:59,Wwei@landhightech.com
> ><Ww...@landhightech.com>写道:
> >
> >> 大家好:
> >>        CloudStack4.4.1 +
> >> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack
> >的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
> >> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
> >>
> >>
> >> Wwei@landhightech.com
> >>
>
> Disclaimer:
> The contents of this e-mail, and its attachments, if any, are confidential
> and may be protected
> by law against any unauthorized use.  If you have received this e-mail by
> mistake or have
> reason to believe that you are not the intended recipient, please notify
> the sender by reply
> e-mail as soon as possible and delete it from your computer system
> immediately thereafter.
> If you are not the intended recipient, you must not copy this e-mail or
> attachment or disclose
> the contents to any other person.  While we have made every effort to keep
> our network virus free,
> we take no responsibility for any computer virus which might be
> transferred by way of this e-mail
>

Re: RE: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by "Wwei@landhightech.com" <Ww...@landhightech.com>.
谢谢您的回复,可否再向您请教一下该功能对应的代码部分怎样实现的,或者是流程是怎样的?初步接触CloudStack,举步维艰,望您指导,拜谢。


Wwei@landhightech.com
 
发件人: YUAN, GUI -HBIS
发送时间: 2015-01-22 09:19
收件人: users-cn@cloudstack.apache.org
主题: RE: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
VM怎么着也是运行在Agent或其他虚拟化软件上的。
而VM的状态是可以通过这些软件获得,
所以,在CloudStackUI上刷新VM的状态是没有问题的。
 
 
>-----Original Message-----
>From: Wwei@landhightech.com [mailto:Wwei@landhightech.com]
>Sent: Thursday, January 22, 2015 9:12 AM
>To: users-cn
>Subject: Re: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点
>交互的?
>
>谢谢你的回复,是否是CloudStack通过Agent,选择对应的虚拟化,然后创建
>虚拟机,但是接下来虚拟机与CloudStack是否还有通信?如果我不通过
>CloudStack 关闭虚拟机,我直接在后台关闭虚拟机,CloudStack的数据库和ui
>上会一直显示running吗?CloudStack是否会给虚拟机发一个类似于心跳包的
>东西?
>麻烦你了,非常感谢。
>
>
>
>Wwei@landhightech.com
>
>发件人: Fan Lei
>发送时间: 2015-01-20 13:43
>收件人: users-cn@cloudstack.apache.org
>主题: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
>基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
>
>在 2015年1月19日 下午2:59,Wwei@landhightech.com
><Ww...@landhightech.com>写道:
>
>> 大家好:
>>        CloudStack4.4.1 +
>> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack
>的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
>> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>>
>>
>> Wwei@landhightech.com
>>
 
Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail

RE: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by "YUAN, GUI -HBIS" <yu...@hbis.com.cn>.
VM怎么着也是运行在Agent或其他虚拟化软件上的。
而VM的状态是可以通过这些软件获得,
所以,在CloudStackUI上刷新VM的状态是没有问题的。


>-----Original Message-----
>From: Wwei@landhightech.com [mailto:Wwei@landhightech.com]
>Sent: Thursday, January 22, 2015 9:12 AM
>To: users-cn
>Subject: Re: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点
>交互的?
>
>谢谢你的回复,是否是CloudStack通过Agent,选择对应的虚拟化,然后创建
>虚拟机,但是接下来虚拟机与CloudStack是否还有通信?如果我不通过
>CloudStack 关闭虚拟机,我直接在后台关闭虚拟机,CloudStack的数据库和ui
>上会一直显示running吗?CloudStack是否会给虚拟机发一个类似于心跳包的
>东西?
>麻烦你了,非常感谢。
>
>
>
>Wwei@landhightech.com
>
>发件人: Fan Lei
>发送时间: 2015-01-20 13:43
>收件人: users-cn@cloudstack.apache.org
>主题: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
>基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
>
>在 2015年1月19日 下午2:59,Wwei@landhightech.com
><Ww...@landhightech.com>写道:
>
>> 大家好:
>>        CloudStack4.4.1 +
>> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack
>的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
>> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>>
>>
>> Wwei@landhightech.com
>>

Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail

Re: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by "Wwei@landhightech.com" <Ww...@landhightech.com>.
谢谢你的回复,是否是CloudStack通过Agent,选择对应的虚拟化,然后创建虚拟机,但是接下来虚拟机与CloudStack是否还有通信?如果我不通过CloudStack 关闭虚拟机,我直接在后台关闭虚拟机,CloudStack的数据库和ui上会一直显示running吗?CloudStack是否会给虚拟机发一个类似于心跳包的东西?
麻烦你了,非常感谢。



Wwei@landhightech.com
 
发件人: Fan Lei
发送时间: 2015-01-20 13:43
收件人: users-cn@cloudstack.apache.org
主题: Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?
基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
 
在 2015年1月19日 下午2:59,Wwei@landhightech.com <Ww...@landhightech.com>写道:
 
> 大家好:
>        CloudStack4.4.1 +
> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>
>
> Wwei@landhightech.com
>

Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

Posted by Fan Lei <le...@gmail.com>.
基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的

在 2015年1月19日 下午2:59,Wwei@landhightech.com <Ww...@landhightech.com>写道:

> 大家好:
>        CloudStack4.4.1 +
> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>
>
> Wwei@landhightech.com
>