[Users] Segmentation Fault

Vidhya Nagarajan vids85 at gmail.com
Thu Jun 25 13:31:37 EDT 2009


Hello everyone,

I am new to OpenVZ and so far I have liked it a lot. The Quick installation
guide is extremely useful. I am trying to run a thermal emulation model
inside a container. I have installed all the necessary packages, However,
When I run the thermal emulation software which basically collects the power
consumed by the components(cpu,network,disk) of the machine, I get a
segmentation fault. When I run the same in the host node, I don't get any
error and the software runs smoothly.

For the thermal emulation model I need to set the /dev/sda properly. However
when I tried to run /dev from the container I could not get sda or hda but
rather found "pts". what does that mean?


>From inside the container :

[root at rajeshr-linux bin]# ./monitord -p 8367 -s localhost -d -v
Just defined sockaddr->sin_addr.in_addr=(100007f)
Segmentation fault

Is it because the container is not given access to the power modules in the
host node? I have mounted three of the folders from the host node to the
container using the command

mount --bind /root/Desktop/Mercury  /vz/root/101/Mercury

I tried to see if the container has access and here is what I found.

*Container:*
[root at rajeshr-linux bin]# mount
/dev/simfs on / type simfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/root on /home type ext3 (rw,data=ordered)
/dev/root on /mercury type ext3 (rw,data=ordered)
/dev/root on /periva type ext3 (rw,data=ordered)
/dev/root on /root type ext3 (rw,data=ordered)

What does data=ordered mean here?

*Host node:*
[root at rajeshr-linux ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/root/Desktop on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury_org/bin on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury_org on /vz/root/100/home type none (rw,bind)
/root/Desktop on /vz/root/100/Desktop type none (rw,bind)
/root/Desktop/mercury_org on /vz/root/101/home type none (rw,bind)
/root/Desktop/mercury on /vz/root/101/mercury type none (rw,bind)
/root/Desktop/periva/mercury_org on /vz/root/101/periva type none (rw,bind)
/root on /vz/root/101/root type none (rw,bind)

[root at rajeshr-linux ~]# cat /proc/mounts
/dev/root / ext3 rw,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs
rw,fd=6,pgrp=6846,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs
rw,fd=11,pgrp=6846,timeout=300,minproto=5,maxproto=5,indirect 0 0
/vz/private/100 /vz/root/100 simfs rw 0 0
/vz/private/111 /vz/root/111 simfs rw 0 0
/proc /vz/root/100/proc proc rw 0 0
/sys /vz/root/100/sys sysfs rw 0 0
none /vz/root/100/dev/pts devpts rw 0 0
/vz/private/166 /vz/root/166 simfs rw 0 0
/proc /vz/root/111/proc proc rw 0 0
/sys /vz/root/111/sys sysfs rw 0 0
none /vz/root/100/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/proc /vz/root/166/proc proc rw 0 0
/sys /vz/root/166/sys sysfs rw 0 0
none /vz/root/166/dev/pts devpts rw 0 0
none /vz/root/111/dev/pts devpts rw 0 0
/vz/private/167 /vz/root/167 simfs rw 0 0
/proc /vz/root/167/proc proc rw 0 0
/sys /vz/root/167/sys sysfs rw 0 0
/vz/private/168 /vz/root/168 simfs rw 0 0
none /vz/root/167/dev/pts devpts rw 0 0
none /vz/root/166/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/proc /vz/root/168/proc proc rw 0 0
/sys /vz/root/168/sys sysfs rw 0 0
none /vz/root/168/dev/pts devpts rw 0 0
none /vz/root/167/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /vz/root/111/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /vz/root/168/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/Desktop ext3 rw,data=ordered 0 0
/vz/private/101 /vz/root/101 simfs rw 0 0
/proc /vz/root/101/proc proc rw 0 0
/sys /vz/root/101/sys sysfs rw 0 0
none /vz/root/101/dev/pts devpts rw 0 0
none /vz/root/101/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /vz/root/101/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/101/mercury ext3 rw,data=ordered 0 0
/dev/root /vz/root/101/periva ext3 rw,data=ordered 0 0
/dev/root /vz/root/101/root ext3 rw,data=ordered 0 0

[root at rajeshr-linux ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3
defaults                                                               1 1
LABEL=/boot             /boot                   ext3
defaults                                                               1 2
devpts                  /dev/pts                devpts
gid=5,mode=620                                                         0 0
tmpfs                   /dev/shm                tmpfs
defaults                                                               0 0
proc                    /proc                   proc
defaults                                                               0 0
sysfs                   /sys                    sysfs
defaults                                                               0 0
/dev/VolGroup00/LogVol01 swap                    swap
defaults                                                               0 0

[root at rajeshr-linux ~]# vzctl exec 101 cat /etc/mtab
/dev/simfs / simfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /home ext3 rw,data=ordered 0 0
/dev/root /mercury ext3 rw,data=ordered 0 0
/dev/root /periva ext3 rw,data=ordered 0 0
/dev/root /root ext3 rw,data=ordered 0 0

[root at rajeshr-linux ~]# vzctl exec 101 mount
/dev/simfs on / type simfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/root on /home type ext3 (rw,data=ordered)
/dev/root on /mercury type ext3 (rw,data=ordered)
/dev/root on /periva type ext3 (rw,data=ordered)
/dev/root on /root type ext3 (rw,data=ordered)

[root at rajeshr-linux ~]# uname -a
Linux rajeshr-linux 2.6.18-128.1.1.el5.028stab062.3 #1 SMP Tue May 5
17:31:34 MSD 2009 i686 i686 i386 GNU/Linux

PLS help me!

Thanks,
Vidhya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20090625/71ea5671/attachment.html


More information about the Users mailing list