Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
convert gentoo to hyperv vm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bostjanc
n00b
n00b


Joined: 06 Jan 2018
Posts: 2

PostPosted: Sat Jan 06, 2018 9:18 am    Post subject: convert gentoo to hyperv vm Reply with quote

Hi guys.
We have a gentoo pbx appliance on phisical server with two nics configured.
Server is having raid issues and we would like to convert it to vm and put it on hyperv host.
Is that even possible?
Please help how to achieve that.
With best regards
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1014

PostPosted: Sun Jan 07, 2018 10:54 am    Post subject: Reply with quote

Your situation is going to require more than a small amount of information to succeed. In the last week alone I was going through many iterations of booting from different media images like live linux, or PXE or whatever using Qemu/KVM. Maybe you can start by explaining some more about what you see as being the most difficult parts. But in short, I think the answer you are going to get (at this point, having not even started the work) is anything is possible, but you will just have to wait and see if what you encounter once beginning the process makes it difficult so that you end up choosing another route. Like buying a new server or whatever.

Bottom line, I know that what you want to do is fairly common practice, and especially within the environment of having servers (old ones and new ones) and getting them all working on the latest working hardware.

Maybe something for you to consider about going the VM route, is what hardware will you be running it on top of. And then in terms of converting the physical disk to a virtual machine, that is a simple process called either cloning or just imaging by choosing the correct format for it that will work.

Sorry if this isn't more helpful.

Assuming hyperv is the host (I don't have much experience with it), but do you know what image formats it is able to boot from?

Another thing that I would think is going to occupy quite a bit of the effort is the two nics, so my suggestion is that you take the process in steps and try seeing first if you can get that server imaged and over to the hyperv, and separately start playing with other hyperv guests with multiple LAN adapters to get comfortable with the networking side of it.
Back to top
View user's profile Send private message
bostjanc
n00b
n00b


Joined: 06 Jan 2018
Posts: 2

PostPosted: Sun Jan 07, 2018 10:57 am    Post subject: reply Reply with quote

thanks for the reply.
well i wanted to move a pbx appliance with gentoo from phisical to hyperv environment but I ended putting centos7 on hyperv and installing the app.

with best regards
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1014

PostPosted: Sun Jan 07, 2018 11:23 am    Post subject: Reply with quote

Well that is probably just as well, I would imagine as it wasn't clear from your post that you had some other options. Reinstalling is a pretty good bet for something like that if you can do it. And then what I assume you had to do is copy over just a database file, or some configuration data over to the new install...I agree it is not the coolest or most fun way, but thinking about the hassles that would be caused from moving a physical machine - the best thing I would say comes from looking at qemu the open source virtual machine system manager and there is a utility within that to image a physical disk sort of similar to using dd, which I guess also might have worked if what you did was to create a a virtual hard drive and then do a bit for bit copy (that is what dd does). But I do know to answer your question that the idea is possible, and in more than one way yes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum