virtualise centos server

Issues related to applications and software problems and general support
Post Reply
Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

virtualise centos server

Post by Blisk » 2021/10/16 15:47:56

How can I make physical centos 7 server a virtual one?
I like to install centos 8 on physical machine and under that I like to run virtual server centos 7.
Are there any tools or something to virtualise server?

gerry666uk
Posts: 98
Joined: 2020/02/10 19:06:06

Re: virtualise centos server

Post by gerry666uk » 2021/10/16 15:55:19

Here is the link to the official virtualization documentation

https://access.redhat.com/documentation ... tion/index

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: virtualise centos server

Post by jlehtone » 2021/10/16 16:40:09

Blisk wrote:
2021/10/16 15:47:56
How can I make physical centos 7 server a virtual one?
Frankly, I would rather make a fresh install. That is because I can deploy config and restore data to new install.

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: virtualise centos server

Post by Blisk » 2021/10/16 17:08:08

jlehtone wrote:
2021/10/16 16:40:09
Blisk wrote:
2021/10/16 15:47:56
How can I make physical centos 7 server a virtual one?
Frankly, I would rather make a fresh install. That is because I can deploy config and restore data to new install.
I will make a fress install centos 8, on that I will move centos 7 which I would like to keep some things which on centos 8 doesn't work.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: virtualise centos server

Post by jlehtone » 2021/10/16 20:16:50

I did mean fresh install of CentOs 7 into the VM.

Btw, do you refer to CentOS Stream 8 or CentOS Linux 8 with the "CentOS 8"? If the latter, then you have to migrate by the end of the year, so you could as well install one of the alternatives now: e.g. Alma, Rocky, or (free license of) RHEL 8.

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: virtualise centos server

Post by Blisk » 2021/10/16 20:34:34

jlehtone wrote:
2021/10/16 20:16:50
I did mean fresh install of CentOs 7 into the VM.

Btw, do you refer to CentOS Stream 8 or CentOS Linux 8 with the "CentOS 8"? If the latter, then you have to migrate by the end of the year, so you could as well install one of the alternatives now: e.g. Alma, Rocky, or (free license of) RHEL 8.
No want to move my physical server to vm server.

don't know what you mean with this
"CentOS Stream 8 or CentOS Linux 8 with the "CentOS 8"

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: virtualise centos server

Post by jlehtone » 2021/10/16 21:13:05

Websearch shows that there are "p2v" tools. Something like 'virt-p2v' or 'qemu-img convert'. However, like I said, I would rather make fresh install and deploy configuration. Even if you do p2v, you do want to have a backup of your data, should something go wrong.


CentOS Linux 8 is like all the previous CentOS -- derived from sources of RHEL. Downstream from RHEL. Aims to be binary compatible with RHEL. Red Hat did annouce last December that CentOS Linux 8 has End of Life 2021-12-31. (EoL of CentOS Linux 7 remains June 2024.)

CentOS Stream 8 is something different. It is upstream from RHEL. Currently, the Stream has already packages that we might see in RHEL 8.6. (Remember: RHEL 8.5 has not been released yet.)

See https://wiki.almalinux.org/Comparison.html

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: virtualise centos server

Post by TrevorH » 2021/10/16 21:26:36

I'd do fresh installs too but...

Code: Select all

[root@centos7 ~]# yum provides '*/*p2v'
Loaded plugins: priorities
186 packages excluded due to repository priority protections
1:virt-p2v-maker-1.40.2-10.el7.x86_64 : Convert a physical machine to run on KVM
Repo        : base
Matched from:
Filename    : /usr/lib64/virt-p2v
Filename    : /usr/share/virt-p2v/launch-virt-p2v
Filename    : /usr/share/virt-p2v

[root@centos8 ~]# yum provides '*/*p2v'
virt-p2v-maker-1:1.42.0-5.el8.x86_64 : Convert a physical machine to run on KVM
Repo        : appstream
Matched from:
Filename    : /usr/lib64/virt-p2v
Filename    : /usr/share/virt-p2v
Filename    : /usr/share/virt-p2v/launch-virt-p2v
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply