Comments on How To Convert Physical Systems And Xen VMs Into OpenVZ Containers (Debian Etch)

How To Convert Physical Systems And Xen VMs Into OpenVZ Containers (Debian Etch) This guide explains how you can convert physical systems (running Debian Etch) or Xen domUs (also running Debian Etch) into an OpenVZ container. This procedure should also work for converting VMware VMs, VirtualBox VMs, or KVM VMs into OpenVZ containers, but I haven't tried this. It should work for other Linux distributions as well, with minor modifications (for example, the network configuration is not located in /etc/network/interfaces if you're not on Debian/Ubuntu).

10 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

nice tutorial. very useful for users want to migrate to OpenVZ to Proxmox VE - http://pve.proxmox.com - the easy way to OpenVZ.

 

By: Anonymous

I prefer to prefix the directories with "/" in the rsync command. It prevents rsync to exclude any files or directory that may contain "dev" or "proc" in the name:

 rsync -arvpz --numeric-ids --exclude /dev --exclude /proc --exclude /tmp ...

 

thanks for the howto!

 

By: Torsten

Thanks for that beautiful Howto. I had some problems and solved them this way:

  mkdir /vz/private/211/tmp

  chmod 777  /vz/private/211/tmp

  mkdir /vz/private/211/var/tmp

  chmod 777  /vz/private/211/var/tmp

  mknod --mode 666 /vz/private/211/dev/random c 1 8

  mknod --mode 666 /vz/private/211/dev/zero c 1 5

  mknod --mode 666 /vz/private/211/dev/null c 1 3

nice day

By:

I found /dev/tty was a normal file, and several things didn't work. It looked like this:

HN:# ls -l /vz/private/221/dev/tty
-rw-r--r-- 1 root root 16 Feb 13 14:42 /vz/private/221/dev/tty

To fix this:

   rm /vz/private/221/dev/tty

   mknod --mode 666 /vz/private/221/dev/tty c 5 0

Now it's a character special file and things are better:

HN:# ls -l /vz/private/221/dev/tty
crw-rw-rw- 1 root root 5, 0 Feb 13 15:55 /vz/private/221/dev/tty

By: Noam

Work great for VMWARE!

I've converted VMware Workstation guest of  Suse Enterprise Linux 10 64bit (running WebSphere) into ProxMox OpenVZ!

Thanks!

By:

Hi Noam !!! We have a server with SLES 10 like application server under VMWARE server, and migrate to OpenVZ, but have problem with it.

can you say me what method are you use for this job ?. Some tips about the setup of system ? could you help me ?


Thank in advanced. Manuel.

By: Ilya

Can anyone help with such CentOS howto ?
about migration CentOS Xen domU to OpenVZ container

By: Anonymous

Worked from xen 3.2-1 just needed to add ORIGIN_SAMPLE="pve.auto" to /etc/vz/conf/211.conf Cheers, Torsten

By: Andrei

rsync: send_files failed to open "/sys/module/iptable_nat/uevent": Permission denied (13)

rsync: read errors mapping "/sys/kernel/slab/sighand_cache/aliases": No data available (61)

rsync: read errors mapping "/sys/kernel/slab/sighand_cache/align": No data available (61)

rsync: read errors mapping "/sys/kernel/slab/sighand_cache/alloc_calls": Function not implemented (38)

I'm stuck...

By: Reinhard Schu

Add the following to the rsync command:   --exclude /sys

later on server2:  mkdir /vz/private/211/sys