OpenVZ Forum


Home » General » Support » Migration problem -> real CentOS to VPS
Migration problem -> real CentOS to VPS [message #43090] Wed, 20 July 2011 13:31 Go to next message
gustav is currently offline  gustav
Messages: 3
Registered: June 2011
Junior Member
Hello!

I try to migrate real server with CentOS 5.6 to VPS following
wiki.openvz.org/Physical_to_container and wiki.openvz.org/Creating_a_CentOS_5.0_Template for instructions, but no active network is running. ifconfig not show any devices

the problem is same as the problem in my post about Mandriva VPS creating

P.S.
# service network restart # return:

# service network restart
Shutting down loopback interface:                          [  OK  ]
SIOCGIFFLAGS: No such device
Bringing up loopback interface:  Device lo does not seem to be present, delaying initialization.
                                                           [FAILED]
Bringing up interface venet0:  Device venet0 does not seem to be present, delaying initialization.
                                                           [FAILED]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists

[Updated on: Wed, 20 July 2011 14:47]

Report message to a moderator

Re: Migration problem -> real CentOS to VPS [message #43107 is a reply to message #43090] Thu, 21 July 2011 16:09 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

1. Do other CTs work fine (wrt networking) on the same system?

2. What is the output of the following commands (inside your failing CT)?
/sbin/ip r
/sbin/ip a
ifconfig -a
ls -l /etc/sysconfig/network-scripts/


3. Please show the contents of CT config file (i.e. /etc/vz/conf/${CTID}.conf)


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Thu, 21 July 2011 16:09]

Report message to a moderator

Re: Migration problem -> real CentOS to VPS [message #43114 is a reply to message #43107] Fri, 22 July 2011 10:57 Go to previous message
gustav is currently offline  gustav
Messages: 3
Registered: June 2011
Junior Member
kir wrote on Thu, 21 July 2011 19:09
1. Do other CTs work fine (wrt networking) on the same system?

Yes. CentosOS, Slackware, Mandriva
Quote:

2. What is the output of the following commands (inside your failing CT)?
/sbin/ip r
/sbin/ip a
ifconfig -a
ls -l /etc/sysconfig/network-scripts/


[root@home /]# ip r
[root@home /]# ip a
1: lo: <LOOPBACK> mtu 16436 qdisc noop 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: venet0: <BROADCAST,POINTOPOINT,NOARP> mtu 1500 qdisc noop 
    link/void 
3: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop 
    link/ether EE:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
[root@home /]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr EE:FF:FF:FF:FF:FF  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback  
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          BROADCAST POINTOPOINT NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
[root@home /]# ls -l /etc/sysconfig/network-scripts/
total 236
-rw-r--r-- 1 root root   254 Oct 13  2010 ifcfg-lo
-rw-r--r-- 1 root root   116 Jul 20 17:42 ifcfg-venet0
-rw-r--r-- 1 root root    71 Jul 20 17:50 ifcfg-venet0:0
lrwxrwxrwx 1 root root    20 Jul 11 10:16 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x 1 root root   625 Oct 13  2010 ifdown-bnep
-rwxr-xr-x 1 root root  4573 Oct 13  2010 ifdown-eth
-rwxr-xr-x 1 root root   827 Oct 13  2010 ifdown-ippp
-rwxr-xr-x 1 root root  2149 Oct 13  2010 ifdown-ipsec
-rwxr-xr-x 1 root root  4473 Oct 13  2010 ifdown-ipv6
lrwxrwxrwx 1 root root    11 Jul 11 10:16 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x 1 root root  1481 Oct 13  2010 ifdown-post
-rwxr-xr-x 1 root root  1084 Oct 13  2010 ifdown-ppp
-rwxr-xr-x 1 root root   637 Oct 13  2010 ifdown-routes
-rwxr-xr-x 1 root root  1593 Oct 13  2010 ifdown-sit
-rwxr-xr-x 1 root root   913 Oct 13  2010 ifdown-sl
-rwxr-xr-x 1 root root  1074 Oct 13  2010 ifdown-tunnel
lrwxrwxrwx 1 root root    18 Jul 11 10:16 ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 13427 Oct 13  2010 ifup-aliases
-rwxr-xr-x 1 root root   859 Oct 13  2010 ifup-bnep
-rwxr-xr-x 1 root root 10798 Oct 13  2010 ifup-eth
-rwxr-xr-x 1 root root 12033 Oct 13  2010 ifup-ippp
-rwxr-xr-x 1 root root  8078 Oct 13  2010 ifup-ipsec
-rwxr-xr-x 1 root root 10853 Oct 13  2010 ifup-ipv6
-rwxr-xr-x 1 root root   823 Oct 13  2010 ifup-ipx
lrwxrwxrwx 1 root root     9 Jul 11 10:16 ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root   727 Oct 13  2010 ifup-plip
-rwxr-xr-x 1 root root   954 Oct 13  2010 ifup-plusb
-rwxr-xr-x 1 root root  2369 Oct 13  2010 ifup-post
-rwxr-xr-x 1 root root  4298 Oct 13  2010 ifup-ppp
-rwxr-xr-x 1 root root  1707 Oct 13  2010 ifup-routes
-rwxr-xr-x 1 root root  3662 Oct 13  2010 ifup-sit
-rwxr-xr-x 1 root root  1675 Oct 13  2010 ifup-sl
-rwxr-xr-x 1 root root  2078 Oct 13  2010 ifup-tunnel
-rwxr-xr-x 1 root root  3325 Oct 13  2010 ifup-wireless
-rwxr-xr-x 1 root root  5433 Oct 13  2010 init.ipv6-global
-rwxr-xr-x 1 root root  1154 Oct 13  2010 net.hotplug
-rw-r--r-- 1 root root 10363 Oct 13  2010 network-functions
-rw-r--r-- 1 root root 39833 Oct 13  2010 network-functions-ipv6


Quote:

3. Please show the contents of CT config file (i.e. /etc/vz/conf/${CTID}.conf)

NUMPROC="6134:6134"
AVNUMPROC="3067:3067"
NUMTCPSOCK="6134:6134"
NUMOTHERSOCK="6134:6134"
VMGUARPAGES="500199:9223372036854775807"

# Secondary parameters
KMEMSIZE="251297300:276427030"
TCPSNDBUF="58640902:83765766"
TCPRCVBUF="58640902:83765766"
OTHERSOCKBUF="29320451:54445315"
DGRAMRCVBUF="29320451:29320451"
OOMGUARPAGES="500199:9223372036854775807"
PRIVVMPAGES="1840556:2024611"

# Auxiliary parameters
LOCKEDPAGES="12270:12270"
SHMPAGES="184055:184055"
PHYSPAGES="0:9223372036854775807"
NUMFILE="98144:98144"
NUMFLOCK="1000:1100"
NUMPTY="512:512"
NUMSIGINFO="1024:1024"
DCACHESIZE="54884411:56530944"
NUMIPTENT="200:200"
DISKSPACE="67580512:67680512"
DISKINODES="3265243:3591768"
CPUUNITS="6000"
OSTEMPLATE="centos"
HOSTNAME="home"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
NAMESERVER="XX.YY.XX.YY"
NETIF="ifname=eth0,bridge=mybr0,mac=EE:FF:FF:FF:FF:FF,host_ifname=veth101.0,host_mac=EE:FF:EE:FF:EE:FF"
ORIGIN_SAMPLE="basic"

IP_ADDRESS="XX.XX.XX.XX"



Note: IP and MAC are changed in the message
Previous Topic: ath9k_htc in kernel OpenVZ
Next Topic: When is update the kernel patches for non-RHEL?
Goto Forum:
  


Current Time: Wed May 15 04:00:00 GMT 2024

Total time taken to generate the page: 0.01514 seconds