On Tue, Jun 29, 2010 at 1:49 AM, Arturas Skauronas <hel...@gmail.com> wrote: > On Sat, Jun 26, 2010 at 4:02 AM, Nirmal Guhan <vavat...@gmail.com> wrote: >> Am following http://wiki.openvz.org/Physical_to_container and facing a >> couple of issues. Hope someone can help. >> >> Am running CentOS 5.5 and trying to create a CentOS 5 container. >> >> 1) /proc does not get mounted. I have to manually mount it everytime. >> I have following entries in /etc/fstab >> > > I thing that's another issue > from http://wiki.openvz.org/Physical_to_container > > /etc/mtab > > Link /etc/mtab to /proc/mounts, for df to work properly: > > rm -f /vz/private/123/etc/mtab > ln -s /proc/mounts /vz/private/123/etc/mtab > > > container must be stopped
I think I have them setup correctly. Still see the issue. [r...@localhost etc]# ls -l | grep mtab lrwxrwxrwx 1 root root 12 Jun 29 10:52 mtab -> /proc/mounts -bash-3.2# ls -l /etc | grep mtab lrwxrwxrwx 1 root root 12 Jun 29 13:52 mtab -> /proc/mounts > > >> none /dev/pts devpts defaults 0 0 >> none /proc proc defaults 0 0 >> none //sys sysfs defaults 0 0 >> none /dev/shm tmpfs defaults 0 0 >> >> [r...@localhost /]# vzctl enter 50 >> entered into CT 50 >> Unable to get tty name: Bad file descriptor >> -bash-3.2# mount >> warning: can't open /etc/mtab: No such file or directory >> --bash-3.2# mount -t proc none /proc >> -bash-3.2# mount >> /dev/simfs on / type simfs (rw) >> none on /proc type proc (rw) >> -bash-3.2# >> >> >> 2) Not able to assign IP address to venet0. Here are the lines from >> /etc/vz/conf/50.conf >> IP_ADDRESS="10.33.11.55" >> BROADCAST="255.255.255.255" >> NETMASK="255.255.255.192" >> >> I have set onboot=NO in >> vz/private/50/etc/sysconfig/network-scripts/ifcfg-eth0 > > > delete file vz/private/50/etc/sysconfig/network-scripts/ifcfg-eth0 > and please post all 50.conf file Here you go: ONBOOT="yes" # UBC parameters (in form of barrier:limit) KMEMSIZE="11055923:11377049" LOCKEDPAGES="256:256" PRIVVMPAGES="65536:69632" SHMPAGES="21504:21504" NUMPROC="240:240" PHYSPAGES="0:2147483647" VMGUARPAGES="33792:2147483647" OOMGUARPAGES="26112:2147483647" NUMTCPSOCK="360:360" NUMFLOCK="188:206" NUMPTY="16:16" NUMSIGINFO="256:256" TCPSNDBUF="1720320:2703360" TCPRCVBUF="1720320:2703360" OTHERSOCKBUF="1126080:2097152" DGRAMRCVBUF="262144:262144" NUMOTHERSOCK="360:360" DCACHESIZE="3409920:3624960" NUMFILE="9312:9312" AVNUMPROC="180:180" NUMIPTENT="128:128" # Disk quota parameters (in form of softlimit:hardlimit) DISKSPACE="1048576:1153024" DISKINODES="200000:220000" QUOTATIME="0" # CPU fair sheduler parameter CPUUNITS="1000" IP_ADDRESS="10.33.11.55" BROADCAST="255.255.255.255" NETMASK="255.255.255.192" --Nirmal > > >> >> --Nirmal >> _______________________________________________ >> Users mailing list >> Users@openvz.org >> https://openvz.org/mailman/listinfo/users >> > > _______________________________________________ > Users mailing list > Users@openvz.org > https://openvz.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users