SolvedPrivate

how to virtualize (P2V) a physical FreeBSD using ssh

Posted on 2013-01-18
5
102 Views
Last Modified: 2016-02-11
Hi
I have a machine running FreeBSD 6.3 release p5. I need to virtualize this machine to either vmware or directly to an OVF file if possible.
I have physical access to the machine but it's a couple of km away so if it is possible to P2V through ssh that would be really nice.

I'm no unix guy so I don't know how to go on, I know vCenter converter standalone do not work so what other tools are out there? What's the procedure here?
0
Comment
Question by:Bes4dmin
  • 2
  • 2
5 Comments
 
LVL 26

Expert Comment

by:skullnobrains
ID: 38808807
as far as i know, there is no free working tool that will achieve this out-of-the-box

it will probably be easier to reinstall and migrate the apps. it is also a good time to switch to a more recent bsd version

it is also feasible to copy parts or even the whole filesystem to a new install. in many cases, copying /usr and manually copy+paste parts of your rc.conf should let you move a system's apps to another system

maybe i could give sounder advice if you give more information regarding the machine's roles
0
 
LVL 1

Author Comment

by:Bes4dmin
ID: 38809045
Hi thanks, so I have realized.

So if I install a new freeBSD (latest version) and migrate, will I encounter any version missmatch/incompatible issues? Maybe it's safest to just install the same version or it doesn't matter?

AFAIK the server only host a MySQL database that is accessed by a .NET application/website
0
 
LVL 26

Accepted Solution

by:
skullnobrains earned 500 total points
ID: 38821690
it is much simpler and wiser to use the same version, and reasonable to use the same major branch, and you also need to migrate your /var.

in your case, anyway, if you only have a mysql server, i'd strongly recommend you install a new machine with a recent mysql, and migrate the tables.

if you use myisam tables, you can copy the files directly after a clean shutdown. innodb will require a couple additionnal trick which are well described in the mysql manual.

you can also pipe data from one machine to the other using mysqldump and the regular mysql command which is likely to be your best choice.
- setup user accounts for your application manually (i assume this is not a problem ?)
- use for example "mysqldump --user=USER --password=PASS --host=HOST | mysql  " on the new machine to migrate the data
0
 
LVL 62

Expert Comment

by:gheist
ID: 38871028
Easiest is to install latest production version of FreeBSD (9.1)
Then migrade useful applications one by one.

Since most likely it is 32->64bit switch - copy config files and install native apps as needed.

There is no P2V tool that handles UFS2 or ZFS (FreeBSD/NetBSD/Solaris) filesystems
0
 
LVL 1

Author Closing Comment

by:Bes4dmin
ID: 38884415
I used sqldump to "transfer" the db
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question