PDA

View Full Version : How to convert virtual oes11sp1 server to physical



amila
11-Jul-2013, 17:18
Hi,

is it possible? and how can I convert a virtual machine into a physical?

I have a Sles11SP2 as SLES-Xen HOST, and a OES11SP1 as a guest system on a separate physical disk.
I want to insert the disk with the guest system (OES11SP1 Server) to a new server, and let oes11sp1 operate as a physical system.
Is that possible? and How? What are the steps?

Thanks

GofBorg
11-Jul-2013, 18:23
> is it possible? and how can I convert a virtual machine into a
> physical?
>
> I have a Sles11SP2 as SLES-Xen HOST, and a OES11SP1 as a guest system
> on a separate physical disk.
> I want to insert the disk with the guest system (OES11SP1 Server) to a
> new server, and let oes11sp1 operate as a physical system.
> Is that possible? and How? What are the steps?


Seems like the easiest way would be to build the server, install the
software and then import the data from the VM. There are probably some
backup softwares, CA comes to mind, that would help you move the data and
some of the configration in the case of NDS.

John_Gill
12-Jul-2013, 09:26
Hi,

You could use something like "Platespin" or "Symantec System Recovery" to take an image of the virtual machine and convert it to a physical machine.

Regards
John

smflood
12-Jul-2013, 15:29
On 11/07/2013 17:24, amila wrote:

> is it possible? and how can I convert a virtual machine into a
> physical?

What you want to is known as V2P (virtual to physical) when most
conversion tools included with virtualisation products handle the other
way around, P2V (physical to virtual) which of course makes sense.

> I have a Sles11SP2 as SLES-Xen HOST, and a OES11SP1 as a guest system
> on a separate physical disk.
> I want to insert the disk with the guest system (OES11SP1 Server) to a
> new server, and let oes11sp1 operate as a physical system.
> Is that possible? and How? What are the steps?

Others have suggested either installing a new physical then restoring
data from a backup (which you'll need in any case) or using a
third-party product to handle the V2P conversion.

I notice however that you said you have "OES11SP1 as a guest system on a
separate physical disk." Do you mean the virtual disk for your OES11
guest is configured from the separate physical disk or that the image
file is stored on a separate disk? The default is to use an image file.

If it's simply using the separate physical disk exclusively as it's disk
then theoretically you should be able to transplant it to a physical
server (than can obviously handle that type of disk).

If it's an image file then that presents further challenges though it
should still be possible, just more work involved.

Either way the install of OES11 SP1 and in particular the underlying
SLES11 SP2 (in the guest) will need some tweaks, most notably to use a
"regular" kernel instead of kernel-xen.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
Do you work with SUSE technologies at a university, college or school?
If so, your campus could benefit from joining the Technology Transfer
Partner (TTP) program. See novell.com/ttp for more details.
------------------------------------------------------------------------

amila
15-Jul-2013, 12:51
Hi,

Thanks for feedbacks.

Simon, yes OES11SP1 is completely installed on separate disk, and it is not a file
That's why I was thinking
that would be possible to convert to physical mashine without many problems

Hier what I already try to do:
I installd in test-system and test-tree
sles11sp2 host and oes11sp1 gast system
My steeps.
on Gast-System OES11SP1 install:
kernel-default
kernel-default-base
kernel-default-devel

Restart oes11sp1 and check if kernel-default was been installed

Shutdown gast system
and put oes11sp1 disk to another server
Boot new oes11sp1 server with sles11sp2 dvd in rescue system
-- mount /dev/sda1 and edit
1. /boot/grub/menu.lst -- default 0
2. /boot/grub/device.map -- /dev/sda

-- mount /dev/server1-system/root (LVM-Volumes) and edit
1. /etc/fstab
2. delete /etc/lvm/.cache
3. edit /etc/udev/rules.d/70-persistent-net.rules -- eth0 MAC address

Now if I try to boot oes11sp1 as a physical Server
I get a message
--partial mode. incomplete volume groups will be processed
no volumes group server1-system found

in bin/bash

if I try: lvscan or vgdisplay I get message no volumes group found.
With Knoppix I can mout and access all LVM Volumes without Problem

Did I forget something or I am completely wrong??
What will be the way to repair lvm group and volumes?

Thenks

GofBorg
15-Jul-2013, 19:04
>
> You could use something like "Platespin" or "Symantec System Recovery"
> to take an image of the virtual machine and convert it to a physical
> machine.

Yes, another good option.

jmozdzen
16-Jul-2013, 09:38
Hi Amila,

> if I try: lvscan or vgdisplay I get message no volumes group found.

please try "vgscan" instead. If that doesn't return usable results, have a look a the filter settings in /etc/lvm/lvm.conf ("devices" section), maybe someone configured a limit to only include certain devices (that now have a different name)...

Regards,
Jens

amila
16-Jul-2013, 13:20
Hi Jens,

with vgscan I got a same message
# vgscan
Reading all physical volumes. This may take a while...
no volume group found

lvm.conf is default, I didn't change anything
# By default we accept every block device:
filter = [ "a/.*/" ]

?? I realy have no idee, what and where, should I look!
Thanks
Amila

jmozdzen
16-Jul-2013, 13:55
Hi Amila,


Hi Jens,

with vgscan I got a same message
# vgscan
Reading all physical volumes. This may take a while...
no volume group found

lvm.conf is default, I didn't change anything
# By default we accept every block device:
filter = [ "a/.*/" ]

?? I realy have no idee, what and where, should I look!
Thanks
Amila

do you see the disk(s) at all, when booting into SLES? What puzzles me is that you can obviously see the disk(s) from SLES rescue, so it should not be a driver problem... do you have any indication how the disk is detected/handled when booting into SLES?

Regards,
Jens

Magic31
18-Jul-2013, 21:21
Hi Amila,



do you see the disk(s) at all, when booting into SLES? What puzzles me is that you can obviously see the disk(s) from SLES rescue, so it should not be a driver problem... do you have any indication how the disk is detected/handled when booting into SLES?

Regards,
Jens

Wondering about this one as well.... As a rescue system does work, and the original system worked the LVM partitions as well.... the lvm2 package should be there, but maybe lvm2 support is simply lacking in the default kernel's initrd?

Amila: You're steps to do the conversion sound good to me & it's what I've done before.

I do wonder, the root (/) filesystem partitions, are they on traditional Linux volumes? Or are the vital mounts (like /boot /etc /bin /sbin /lib /usr) on non LVM volumes? If so, you might get the system to boot by remarking the mounts in /etc/fstab for LVM volumes. If that works, you might find what's missing before you're able to activate the LVM volumes on the system.

You could also try to run a system (boot) repair using the SLES 11 SP2 installation DVD.

-Willem

amila
19-Jul-2013, 12:11
Hi,
Sorry for late response,
Finally I got my Virtual OES11SP1 Server running as a physical Server.

@Willem
/dev/sda1 is a boot partition
/dev/sda2 is a LVM group
part of fstab:
/dev/server1-system/swap swap swap defaults 0 0
/dev/server1-system/root / ext3 acl,user_xattr 1 1
/dev/sda1 /boot ext3 acl,user_xattr 1 2
/dev/server1-system/home /home ext3 acl,user_xattr 1 2
/dev/server1-system/tmp /tmp ext3 acl,user_xattr 1 2
/dev/server1-system/var /var

@Jens
Problem was that I still have in /etc/sysconfig/kernel file
INITRD_MODULES="xenblk" and not INITRD_MODULES="aacraid mptsas ahci pata_atiixp ata_generic"

Here are my steeps; I hope that I didn't forget anything?
And of course I hope that this is a good way to move from virtual to physical server

Files that I need from Host Server (SLES11SP1)
- /etc/udev/rules.d/70-persistent-net.rules (MAC-address eth0)
- /etc/sysconfig/kernel (INITRD_MODULES="aacraid mptsas ahci pata_atiixp ata_generic")
- /etc/sysconfig/bootload (just for seeing)
Copy to Gast Server (OES11SP1)

On Gast System install
kernel-default
kernel-default-base
kernel-default-devel

and reboot server.

edit /etc/sysconfig/kernel file and put
INITRD_MODULES="aacraid mptsas ahci pata_atiixp ata_generic"
Instead of
INITRD_MODULES="xenblk"
run mkinitrd,
and shutdown Server.

Take out Host-Server Disks and replace with Gast-Server Disk-set (Mirrored Disks)
Boot Server with Sles11Sp2 DVD and go to Rescue mode
mount /dev/sda1 (boot partition and edit)
- /boot/grub/menu.lst (default 0)
- /boot/grub/device.map (/dev/sda instead of /dev/xvda)

mount LVM Volumes root some ware and edit replace all "xvda" wirh "sda"
-/etc/fstab (/dev/sda1 instead of /dev/xvda1)
- /etc/udev/rules.d/70-persistent-net.rules
- /etc/lvm/.chache, /etc/lvm/backup/server1, /etc/lvm/archiv/serve1
check :
- /etc/sysconfig/bootload
- /etc/sysconfig/kernel
alsi in /etc/inittab
line 73 remove or delete
x0:12345:respawn:/sbin/agetty -L 9600 xvc0 xterm

Reboot System and now my Virtual OES11SP1 is running as a physical Server

eDirectory is up and running, I can access all my NSS Volumes and everything works,
till now.

Thanks a lot for Help

Amila

jmozdzen
19-Jul-2013, 14:25
Hi Amila,

great to see you got it working!


Here are my steeps; I hope that I didn't forget anything?
And of course I hope that this is a good way to move from virtual to physical server

Files that I need from Host Server (SLES11SP1)
- /etc/udev/rules.d/70-persistent-net.rules (MAC-address eth0)
- /etc/sysconfig/kernel (INITRD_MODULES="aacraid mptsas ahci pata_atiixp ata_generic")
- /etc/sysconfig/bootload (just for seeing)
Copy to Gast Server (OES11SP1)

On Gast System install
kernel-default
kernel-default-base
kernel-default-devel

and reboot server.

edit /etc/sysconfig/kernel file and put
INITRD_MODULES="aacraid mptsas ahci pata_atiixp ata_generic"
Instead of
INITRD_MODULES="xenblk"
run mkinitrd,
and shutdown Server.

How about *adding* the modules required by the hardware server, instead of replacing them? That way your image can be used both for physical and virtual environments.


Take out Host-Server Disks and replace with Gast-Server Disk-set (Mirrored Disks)

I didn't grasp that you wanted to turn the host system into a non-Xen server... are you experiencing problems with the virtualized version? Personally, I'd keep it as a guest system, because you could easily move the DomU to any different host server, without having to modify the guest system (when moving from Dom0 to Dom0, i.e. during hardware upgrades).


Boot Server with Sles11Sp2 DVD and go to Rescue mode
mount /dev/sda1 (boot partition and edit)
- /boot/grub/menu.lst (default 0)
- /boot/grub/device.map (/dev/sda instead of /dev/xvda)

mount LVM Volumes root some ware and edit replace all "xvda" wirh "sda"
-/etc/fstab (/dev/sda1 instead of /dev/xvda1)
...using i.e. "LABEL=boot" instead of device name would make this unnecessary.

- /etc/udev/rules.d/70-persistent-net.rules
- /etc/lvm/.chache, /etc/lvm/backup/server1, /etc/lvm/archiv/serve1
I haven't tried, but couldn't you just delete the cache before cloning the guest? And I'd rather create new backups once the system comes up, than changing "old" backups...


check :
- /etc/sysconfig/bootload
- /etc/sysconfig/kernel
alsi in /etc/inittab
line 73 remove or delete
x0:12345:respawn:/sbin/agetty -L 9600 xvc0 xterm
good catch!


Reboot System and now my Virtual OES11SP1 is running as a physical Server

eDirectory is up and running, I can access all my NSS Volumes and everything works,
till now.

Thanks a lot for Help

Amila

Good to see you got it up & running, and thank you for sharing your results (and check-list :) ) with us!

Regards,
Jens

Magic31
20-Jul-2013, 12:55
...
edit /etc/sysconfig/kernel file and put
INITRD_MODULES="aacraid mptsas ahci pata_atiixp ata_generic"
Instead of
INITRD_MODULES="xenblk"
run mkinitrd,
and shutdown Server.

Doh (to myself, for not asking/noticing), yes of course.... that was the kernel support you were missing, drivers for your storage. Good call & thanks for the detailed feedback!

As Jens mentions, I'm also curious why you want to V2P and not keep this as virtual server? What is your main motive?

Cheers,
Willem

amila
22-Jul-2013, 16:49
Hi,

Jeans good idea to add the modules and not to replace them, thanks.

>> How about *adding* the modules required by the hardware server, instead of replacing them? That way your image can be used both for physical and virtual environments.

>> As Jens mentions, I'm also curious why you want to V2P and not keep this as virtual server? What is your main motive?

Willem why I was looking for possibility to convert virtual oes11sp1 server to physical, is a very good question!
And can be a new Thread:(

Main reason for that was, that I still didn't find any AntiVirus Software that can run on a Virtual OES11SP1 Server (XEN-kernel and On Access Scan)

I'm looking (still..) for AntiVirus Software that works with XEN Kernel environment, since January this year.
Till now I try McAfee, Kaspersky, Sophos, and TrendMicro, also and have contact with support for all this AntiVirus Software, but without any access:(
Answer from all this Company are nearly the same: till now we are not supporting XEN-Kernel!

Second reason is Backup speed.
With SEP Sesam we have 4x better speed if we are running OES11SP1 as a physical Server.

What are your experiences about AntiVirus Software and XEN environment?

Thanks
Amila

Rickb
22-Jul-2013, 22:32
amila wrote:

>
> Hi,
>
> Jeans good idea to add the modules and not to replace them, thanks.
>
>>> How about *adding* the modules required by the hardware server,
> instead of replacing them? That way your image can be used both for
> physical and virtual environments.
>
>>> As Jens mentions, I'm also curious why you want to V2P and not keep
> this as virtual server? What is your main motive?
>
> Willem why I was looking for possibility to convert virtual oes11sp1
> server to physical, is a very good question!
> And can be a new Thread:(
>
> Main reason for that was, that I still didn't find any AntiVirus
> Software that can run on a Virtual OES11SP1 Server (XEN-kernel and On
> Access Scan)
>
> I'm looking (still..) for AntiVirus Software that works with XEN Kernel
> environment, since January this year.
> Till now I try McAfee, Kaspersky, Sophos, and TrendMicro, also and have
> contact with support for all this AntiVirus Software, but without any
> access:(
> Answer from all this Company are nearly the same: till now we are not
> supporting XEN-Kernel!
>
> Second reason is Backup speed.
> With SEP Sesam we have 4x better speed if we are running OES11SP1 as a
> physical Server.
>
> What are your experiences about AntiVirus Software and XEN
> environment?
>
> Thanks
> Amila
>
>

Amelia, I am running sophos on vitualized oes11 sp1 servers without
any issues at all.

KBOYLE
23-Jul-2013, 01:02
amila wrote:

> Second reason is Backup speed.
> With SEP Sesam we have 4x better speed if we are running OES11SP1 as a
> physical Server.

There have been some performance issues related to TCP segmentation
offload. See if either of these documents can help.

http://www.novell.com/support/kb/doc.php?id=7005304
http://www.novell.com/support/kb/doc.php?id=7002555

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

amila
23-Jul-2013, 13:52
Rick, Yes, you have right
Sophos OnAcess Scan is running on virtual oes11sp1 server but,
we have very, very bad performance browsing NSS volumes in windows explorer.
(Of course exclude /media/nss/Volumes/.Netware)
I open a call with Sophos Support Germany and in a last Mail from 2 of July 2013, they told me:
--Yes we know about bad performance problems and till now we don't have solution (very strange) and also
-- Official we are not supporting 3.0.74-0.6.6-xen, so if you have any problem that will need a 2 level support in USA, they will not help you.

My 30 Days of Test are expired, and I keep Sophos on site:( without access

Which kernel Version you have? and how you solve this performance problem or you are running just OnDeamond Scan, but not OnAcess?

Amila

amila
23-Jul-2013, 13:53
Hi,

Kevin, thanks for TID I will try it and let you know.

Amila

GofBorg
30-Jul-2013, 22:43
> eDirectory is up and running, I can access all my NSS Volumes and
> everything works, �
> till now.

Kudos for tracking down all those steps.