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 淡看浮华 <36...@qq.com> on 2014/04/16 09:57:44 UTC

求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

用cloudstack4.2.0搭建了一个基于KVM的虚拟化环境.  现在希望把物理机上的应用都迁移到cloudstack虚拟机中.
  
 请问各位大神有没有实际操作过的可行的P2V迁移策略,急用, 还望多多指教,谢谢!!!
  
 有什么可行的工具可以把物理机上的操作系统和应用以及数据都制作成"镜像"文件或者模板,
 然后上传到cloudstack中,并用该镜像文件或模板来创建虚拟机吗?

Re: [users@httpd] Can the Apache run the php files which is created in memory dynamicly ?

Posted by Keith Roberts <ke...@ecric.nhs.uk>.
On 25 Mar 2016, at 10:15, Michael A. Peters <mp...@domblogger.net> wrote:

> On 03/25/2016 01:56 AM, David wrote:
>> Sorry, there is a mistake in previous email.
>> The "ServerRoot" should be "DocumentRoot".
>> My purpose:
>> If the Apache can run the php file in memory, then it means that I can
>> package the php files, then restore the php files in memory and run the
>> php files.
>> The end user will not see the php files, maybe it is a method to protect
>> the php files.
>> Somebody has suggested the zend tool, but the end user will will many
>> php files, I think it is not good method.
>> David
> 
> Sounds like you are trying to protect your source code. Or possibly hide the fact that you are using someone else's source code.
> 
> Zend use to have a way of encrypting php files, not sure if they still do.

I’d suggest taking a look at this here for encoding PHP scripts:

http://www.ioncube.com/php_encoder.php?page=features

Not a free solution but you can test it out with the free trial, which I did some years ago.

PHP Encoder 9.0
With the ionCube Encoder, you can...
Encode PHP scripts with compiled bytecode for best performance and protection.
Use PHP language features up to PHP 5.6.
Produce encoded PHP files to run on the latest PHP 5.6 and earlier.
Encrypt non-PHP files such as XML and templates.
Generate license files to restrict access to encoded files (Pro/Cerberus editions).
Enable obfuscation of variables and function, method and class names.
Encode PHP shell scripts.
Prevent file tampering through use of digital signatures.
Prevent replacement of files by unauthorised ones.
Generate files to expire on a given date or after a time period (Pro/Cerberus editions).
Restrict files to run on any combination of IP addresses and/or server names (Pro/Cerberus editions).
Restrict files to run on specific MAC addresses (Cerberus edition).
Integrate with the ionCube Package Foundry.
Add readable comments to encoded files for custom copyright, license details etc.
Have custom messages and custom handling when files expire or aren't permissioned to run.
And more!
Kind Regards,

Keith

Tel: 01223 724473
PHE VoIP: 24473
keith.roberts@phe.gov.uk

Re: [users@httpd] Can the Apache run the php files which is created in memory dynamicly ?

Posted by "Michael A. Peters" <mp...@domblogger.net>.
On 03/25/2016 01:56 AM, David wrote:
> Sorry, there is a mistake in previous email.
> The "ServerRoot" should be "DocumentRoot".
> My purpose:
> If the Apache can run the php file in memory, then it means that I can
> package the php files, then restore the php files in memory and run the
> php files.
> The end user will not see the php files, maybe it is a method to protect
> the php files.
> Somebody has suggested the zend tool, but the end user will will many
> php files, I think it is not good method.
> David

Sounds like you are trying to protect your source code. Or possibly hide 
the fact that you are using someone else's source code.

Zend use to have a way of encrypting php files, not sure if they still do.

Simply generating them in memory won't be good enough because they can 
just be read from memory by the end user.

However it should be pointed out that many system administrators would 
never run php code on their server where they can not read the source code.

There's no way to audit the security of what it is doing if you can't 
read the source files. There also is no way to easily port it to a new 
version of php or fix minor bugs.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


回复: 回复: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

Posted by 淡看浮华 <36...@qq.com>.
ok,谢谢啊
 我看下virt-p2v怎么用。
 不保留ip时,等于就是把应用在新的机器上重新部署,这个没什么好看的咯。
  
  

 

 ------------------ 原始邮件 ------------------
  发件人: "linuxbqj@gmail.com";<li...@gmail.com>;
 发送时间: 2014年4月16日(星期三) 下午4:47
 收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
 主题: Re: 回复: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

 

保留IP的可以使用 virt-p2v

 如果不需要保留IP,直接先在cloudstack中创建一个虚拟机(ip自动分配),然后把物理机上的应用在VM上重新部署并导入数据

在 2014年4月16日 下午4:21,淡看浮华 <36...@qq.com> 写道:
> 有些IP是要保留的。
>  如果保留IP,通常采用哪种方式迁移呢?之前没整过这个,还请说得详细点,谢谢
>  能把原来的系统制作成qcow2格式的模板,然后用这个模板来创建VM吗?
>
>  如果不需要保留IP,直接先在cloudstack中创建一个虚拟机(ip自动分配),然后把物理机上的应用在VM上重新部署并导入数据,是吧?
>
>
>
>
>  ------------------ 原始邮件 ------------------
>   发件人: "linuxbqj@gmail.com";<li...@gmail.com>;
>  发送时间: 2014年4月16日(星期三) 下午4:08
>  收件人: "users-cn"<us...@cloudstack.apache.org>;
>
>  主题: Re: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)
>
>
>
> 你的应用的迁移需要保留原来的IP地址吗?
> 如果不需要,就创建VM,然后迁移相关的代码,数据库就可以了
> 如果需要保留IP地址等,就麻烦很多了,还不一定可以成功
>
>
> 在 2014年4月16日 下午3:57,淡看浮华 <36...@qq.com> 写道:
>> 用cloudstack4.2.0搭建了一个基于KVM的虚拟化环境.  现在希望把物理机上的应用都迁移到cloudstack虚拟机中.
>>
>>  请问各位大神有没有实际操作过的可行的P2V迁移策略,急用, 还望多多指教,谢谢!!!
>>
>>  有什么可行的工具可以把物理机上的操作系统和应用以及数据都制作成"镜像"文件或者模板,
>>  然后上传到cloudstack中,并用该镜像文件或模板来创建虚拟机吗?
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linuxbqj@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linuxbqj@gmail.com

Re: 回复: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
保留IP的可以使用 virt-p2v

 如果不需要保留IP,直接先在cloudstack中创建一个虚拟机(ip自动分配),然后把物理机上的应用在VM上重新部署并导入数据

在 2014年4月16日 下午4:21,淡看浮华 <36...@qq.com> 写道:
> 有些IP是要保留的。
>  如果保留IP,通常采用哪种方式迁移呢?之前没整过这个,还请说得详细点,谢谢
>  能把原来的系统制作成qcow2格式的模板,然后用这个模板来创建VM吗?
>
>  如果不需要保留IP,直接先在cloudstack中创建一个虚拟机(ip自动分配),然后把物理机上的应用在VM上重新部署并导入数据,是吧?
>
>
>
>
>  ------------------ 原始邮件 ------------------
>   发件人: "linuxbqj@gmail.com";<li...@gmail.com>;
>  发送时间: 2014年4月16日(星期三) 下午4:08
>  收件人: "users-cn"<us...@cloudstack.apache.org>;
>
>  主题: Re: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)
>
>
>
> 你的应用的迁移需要保留原来的IP地址吗?
> 如果不需要,就创建VM,然后迁移相关的代码,数据库就可以了
> 如果需要保留IP地址等,就麻烦很多了,还不一定可以成功
>
>
> 在 2014年4月16日 下午3:57,淡看浮华 <36...@qq.com> 写道:
>> 用cloudstack4.2.0搭建了一个基于KVM的虚拟化环境.  现在希望把物理机上的应用都迁移到cloudstack虚拟机中.
>>
>>  请问各位大神有没有实际操作过的可行的P2V迁移策略,急用, 还望多多指教,谢谢!!!
>>
>>  有什么可行的工具可以把物理机上的操作系统和应用以及数据都制作成"镜像"文件或者模板,
>>  然后上传到cloudstack中,并用该镜像文件或模板来创建虚拟机吗?
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linuxbqj@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linuxbqj@gmail.com

回复: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

Posted by 淡看浮华 <36...@qq.com>.
有些IP是要保留的。
 如果保留IP,通常采用哪种方式迁移呢?之前没整过这个,还请说得详细点,谢谢
 能把原来的系统制作成qcow2格式的模板,然后用这个模板来创建VM吗?
  
 如果不需要保留IP,直接先在cloudstack中创建一个虚拟机(ip自动分配),然后把物理机上的应用在VM上重新部署并导入数据,是吧?
 

  

 ------------------ 原始邮件 ------------------
  发件人: "linuxbqj@gmail.com";<li...@gmail.com>;
 发送时间: 2014年4月16日(星期三) 下午4:08
 收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
 主题: Re: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

 

你的应用的迁移需要保留原来的IP地址吗?
如果不需要,就创建VM,然后迁移相关的代码,数据库就可以了
如果需要保留IP地址等,就麻烦很多了,还不一定可以成功


在 2014年4月16日 下午3:57,淡看浮华 <36...@qq.com> 写道:
> 用cloudstack4.2.0搭建了一个基于KVM的虚拟化环境.  现在希望把物理机上的应用都迁移到cloudstack虚拟机中.
>
>  请问各位大神有没有实际操作过的可行的P2V迁移策略,急用, 还望多多指教,谢谢!!!
>
>  有什么可行的工具可以把物理机上的操作系统和应用以及数据都制作成"镜像"文件或者模板,
>  然后上传到cloudstack中,并用该镜像文件或模板来创建虚拟机吗?



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linuxbqj@gmail.com

Re: 求教P2V迁移策略(如何把物理机迁移到cloudstack虚拟机中)

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
你的应用的迁移需要保留原来的IP地址吗?
如果不需要,就创建VM,然后迁移相关的代码,数据库就可以了
如果需要保留IP地址等,就麻烦很多了,还不一定可以成功


在 2014年4月16日 下午3:57,淡看浮华 <36...@qq.com> 写道:
> 用cloudstack4.2.0搭建了一个基于KVM的虚拟化环境.  现在希望把物理机上的应用都迁移到cloudstack虚拟机中.
>
>  请问各位大神有没有实际操作过的可行的P2V迁移策略,急用, 还望多多指教,谢谢!!!
>
>  有什么可行的工具可以把物理机上的操作系统和应用以及数据都制作成"镜像"文件或者模板,
>  然后上传到cloudstack中,并用该镜像文件或模板来创建虚拟机吗?



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linuxbqj@gmail.com