LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-13-2015, 10:54 AM   #1
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Rep: Reputation: 19
Question How to copy a complete server to another Server


Hi guys.

I have a cent os 6.4 with a webserver and mysql on it, it's a web guie for customer management.

now this server is on a vm on a server that must be replaced.

I want to copy this to another server is this possible ?

1. I dont have the posibility to copy vm image.
2. I dont know all services etc.. on this server so I'm afraid if I just install LAMP on another server and copy the db it might not work, because i didnot install this system it was made by previous admin.
3. I have root acces to it
4. I have another empty vm where I can make same hardware config.
5. I dont have phisical acces to this server, and also no phisical acces to the new. only ssh with root rights.

so the question is, is it possible to somehow copy this server to another one ?

any idea's / advise is much much aprisciated.

thanks in advance.
 
Old 01-13-2015, 01:58 PM   #2
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
If that was my task, i'd insist that the VM-admin migrate it, clone it, or export an OVA, then re-establish it on the new server. That's part of the VM-Admin's job.
 
Old 01-13-2015, 02:49 PM   #3
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by sudowtf View Post
If that was my task, i'd insist that the VM-admin migrate it, clone it, or export an OVA, then re-establish it on the new server. That's part of the VM-Admin's job.

I'm the VM admin of the new server, it's VMware EsXi, the Old server is Proxmox. so as far as I know there is no easy or 100% way of doing that,
I have searched over the internet and didnot find anybody who could make a vm image from proxmox to vmware. from vmware to proxmox yes, but not another way around.

so thats why I'm looking to see if there is a way of just make some kind of copy of the server.
 
Old 01-13-2015, 03:22 PM   #4
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
i see. that will be a hell of a task. i personally do not know of a direct copy solution, i'm sure some gurus around here could maybe inform you on some kind of dd copying or maybe you could just do some kind of duplicity or other backup / restore. if you end up having to recreate the OS, then maybe you could start with some of these tips:

list package groups (will list installed and available groups seperately):
Code:
yum grouplist
list all individual installed packages
Code:
yum list installed
chkconfig to show services startup-config:
Code:
sudo yum -y install chkconfig
chkconfig
show services current status:
Code:
service --status-all
you'll probably need to find all your config & data files and their respective chmod & chown rights.

Last edited by sudowtf; 01-13-2015 at 03:25 PM.
 
Old 01-13-2015, 03:35 PM   #5
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
is it KVM? if so, this looks pretty ugly but may lead you along. (vbox & vmware both can use vmdk/ovf)
http://virtuallyhyper.com/2013/06/mi...to-virtualbox/

OOH OOH, an epiphany just went off in my head!!!! Use "VmWare converter" to do a live migration into the new VMWare environment!!!!!
just tell VmWare converter that it's a physical machine, it won't know the difference

Last edited by sudowtf; 01-13-2015 at 03:40 PM.
 
Old 01-13-2015, 05:27 PM   #6
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by sudowtf View Post
i see. that will be a hell of a task. i personally do not know of a direct copy solution, i'm sure some gurus around here could maybe inform you on some kind of dd copying or maybe you could just do some kind of duplicity or other backup / restore. if you end up having to recreate the OS, then maybe you could start with some of these tips:

list package groups (will list installed and available groups seperately):
Code:
yum grouplist
list all individual installed packages
Code:
yum list installed
chkconfig to show services startup-config:
Code:
sudo yum -y install chkconfig
chkconfig
show services current status:
Code:
service --status-all
you'll probably need to find all your config & data files and their respective chmod & chown rights.


this one is very interesting, I just found few other commands as wel, a friend told me that I could try this with NC netcat... I'm looking to it now, if that wont work then this solution is the only one I gues...
 
Old 01-13-2015, 05:30 PM   #7
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by sudowtf View Post
is it KVM? if so, this looks pretty ugly but may lead you along. (vbox & vmware both can use vmdk/ovf)
http://virtuallyhyper.com/2013/06/mi...to-virtualbox/

OOH OOH, an epiphany just went off in my head!!!! Use "VmWare converter" to do a live migration into the new VMWare environment!!!!!
just tell VmWare converter that it's a physical machine, it won't know the difference

I dont have acces to the old Proxmox server as admin, there was a problem with that so that's why that server has to go, we have acces to all machines, but not to server manager gui. so I cannot get the vm images from it.
 
Old 01-14-2015, 07:40 AM   #8
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
that's the point i'm trying to make; if you run VMWare Converter from a windows machine, you can do a "p2v" by giving root credentials and it should convert the OS (not the image).

http://arunnsblog.com/2014/01/18/convert-linux-physical-server-to-vmware-virtual-machine/

Last edited by sudowtf; 01-14-2015 at 07:41 AM.
 
Old 01-14-2015, 10:47 AM   #9
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by sudowtf View Post
that's the point i'm trying to make; if you run VMWare Converter from a windows machine, you can do a "p2v" by giving root credentials and it should convert the OS (not the image).

http://arunnsblog.com/2014/01/18/convert-linux-physical-server-to-vmware-virtual-machine/

this one looks very good, but I dont have the normal admin acces to proxmox management interface.


I have started the procces of moving all step by step, have it for 40-50% working...
 
1 members found this post helpful.
Old 01-14-2015, 11:21 AM   #10
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
With VMWare Converter you would not need any access other than SSH and root credentials to/for your CentOS server.
 
Old 01-15-2015, 04:19 AM   #11
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Wink

Quote:
Originally Posted by sudowtf View Post
that's the point i'm trying to make; if you run VMWare Converter from a windows machine, you can do a "p2v" by giving root credentials and it should convert the OS (not the image).

http://arunnsblog.com/2014/01/18/convert-linux-physical-server-to-vmware-virtual-machine/


Man let me kiss you on the chick ))))


thanks thanks thanks allot !!! this works 1000%
 
Old 01-15-2015, 07:45 AM   #12
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
woot!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy files from server to server with root login disabled ? ratotopi Linux - Newbie 3 10-13-2012 12:44 PM
[SOLVED] how to take backup of complete server centos123 Linux - Server 21 04-11-2012 11:23 PM
[SOLVED] I can ssh into my server, but scp will not copy to the server RedNeck-LQ Linux - Newbie 2 10-04-2011 03:56 AM
Server to server file copy through SCP or wget tibberous Linux - Server 6 12-19-2010 06:08 PM
java server causes complete server paralysis juliagoolia Linux - Software 0 10-18-2004 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration