ae1f Physical => vmware ESXi conversion - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old October 29th, 2010, 14:02
aamoruso aamoruso is offline
Junior Member
 
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Physical => vmware ESXi conversion

Hi All,

I'm a Linux administrator, so I'm using the acquired knowledge so far to the FreeBSD environment: please be tolerant if I'm doing some mistakes here

I have to convert a FreeBSD 6.4-based appliance from physical to a vmware ESXi image. The appliance is equipped with an IDE hdd, seen as ad0. Vmware offers SCSI drives seen as da0.

Following a howto found on Internet from the I was able to do the following steps:

1) Filesystem dump
Dumping the content of slices 1a, 1d, and 1f from the appliance, saving them as single files pa.dump, pd.dump and pf.dump on external storage.

2) Filesystem restore
Using the Fixit environment offered by the FreeBSD 6.4 CD I was able to run the following script on the target VM (/nfs is a NFS mounted dir hosting the dump files). The script is based on URL:

http://forums.freebsd.org/showthread.php?t=11680

Code:
#!/bin/sh
dd if=/dev/zero of=/dev/da0 count=4
fdisk -BI /dev/da0
bsdlabel -B -w da0s1
bsdlabel -R da0s1 /nfs/liveSPsizes
newfs -U /dev/da0s1a
newfs -U /dev/da0s1d
newfs -U /dev/da0s1e
newfs -U /dev/da0s1f

mount /dev/da0s1a /mnt
cd /mnt
restore -rvf /nfs/pa.dump

mount /dev/da0s1d /mnt/var
cd /mnt/var
restore -rvf /nfs/pd.dump

mount /dev/da0s1f /mnt/usr
cd /mnt/usr
restore -rvf /nfs/pf.dump

echo "Clean up"
sync
cd /
umount /mnt/usr
umount /mnt/tmp
umount /mnt/var
umount /mnt
sync
Where the file liveSPsizes

Code:
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288        0    4.2BSD     2048 16384    94
  b:   526336   524288      swap
  c: 80292807        0    unused        0     0         # "raw" part, don't edit
  d:   524288  1050624    4.2BSD     2048 16384    94
  e:  2097152  1574912    4.2BSD     2048 16384    89
  f: 76620743  3672064    4.2BSD     2048 16384    89
Running it the filesystems get extracted without errors. When rebooting the VM and letting it proceed I get up to this on screen:

Code:
BTX loader 1.00 BTX version is 1.01
and after a while the sytem reboots.

In Linux the procedure for doing a physical => virtual conversion by hand is quite the same, but of course I'm missing something here which prevents the final process.

What am I doing wrong? Any ideas?

Thanks for your time and attention
Angelo.

Last edited by DutchDaemon; October 29th, 2010 at 14:44. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old October 29th, 2010, 16:17
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Why don't you take the opportunity to upgrade? At the end of november 6.4 will be EoL.

I'd make a list of the installed ports/packages on the old system and build a new 7.x on ESXi. Then transfer only the data.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old October 31st, 2010, 14:42
aamoruso aamoruso is offline
Junior Member
 
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Upgrading

Hi,
porting to a more recent version of BSD is not a road I can take, for now.
I don't have BSD experience and the appliance is proprietary and not supported anymore from the supplier, so I cannot just extract the list of installed packages.

I need to port all the "physical appliance as a whole" to vmware environment, in order to be able to protect from hardware failures easily.
Reply With Quote
Reply

Tags
6.4, boot, conversion, vmware

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
7-STABLE amd64 *desktop* in VMWare ESXi Dum_Dum General 1 March 3rd, 2012 15:10
vmware ESXi slow disk speed Dara System Hardware 1 December 25th, 2010 19:53
ESXi 3.5 - FreeBSD / Bacula VM vpnwarrior Peripheral Hardware 0 June 25th, 2010 17:04
Conversion to ZFS nabioullinr General 6 June 18th, 2010 15:28
Problems under vmware ESXi Dara General 7 June 6th, 2009 04:55


All times are GMT +1. The time now is 18:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0