Hello everyone, <br><br>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&#39;t get any error and the software runs smoothly. <br>



<br>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 &quot;pts&quot;. what does that mean?<br><br><br>From inside the container :<br>

<br>[root@rajeshr-linux bin]# ./monitord -p 8367 -s localhost -d -v<br>Just defined sockaddr-&gt;sin_addr.in_addr=(100007f)<br>Segmentation fault<br><br>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 <br>



<br>mount --bind /root/Desktop/Mercury  /vz/root/101/Mercury<br><br>I tried to see if the container has access and here is what I found.<br><br><b>Container:</b><br>[root@rajeshr-linux bin]# mount<br>/dev/simfs on / type simfs (rw)<br>

/proc on /proc type proc (rw)<br>/sys on /sys type sysfs (rw)<br>none on /dev/pts type devpts (rw)<br>none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br>/dev/root on /home type ext3 (rw,data=ordered)<br>/dev/root on /mercury type ext3 (rw,data=ordered)<br>

/dev/root on /periva type ext3 (rw,data=ordered)<br>/dev/root on /root type ext3 (rw,data=ordered)<br><br>What does data=ordered mean here?<br><br><b>Host node:</b><br>[root@rajeshr-linux ~]# mount<br>/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)<br>

proc on /proc type proc (rw)<br>sysfs on /sys type sysfs (rw)<br>devpts on /dev/pts type devpts (rw,gid=5,mode=620)<br>/dev/sda1 on /boot type ext3 (rw)<br>tmpfs on /dev/shm type tmpfs (rw)<br>none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br>

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)<br>/root/Desktop on /vz/root/100/home type none (rw,bind)<br>/root/Desktop/mercury_org/bin on /vz/root/100/home type none (rw,bind)<br>/root/Desktop/mercury on /vz/root/100/home type none (rw,bind)<br>

/root/Desktop/mercury on /vz/root/100/home type none (rw,bind)<br>/root/Desktop/mercury_org on /vz/root/100/home type none (rw,bind)<br>/root/Desktop on /vz/root/100/Desktop type none (rw,bind)<br>/root/Desktop/mercury_org on /vz/root/101/home type none (rw,bind)<br>

/root/Desktop/mercury on /vz/root/101/mercury type none (rw,bind)<br>/root/Desktop/periva/mercury_org on /vz/root/101/periva type none (rw,bind)<br>/root on /vz/root/101/root type none (rw,bind)<br><br>[root@rajeshr-linux ~]# cat /proc/mounts<br>

/dev/root / ext3 rw,data=ordered 0 0<br>/dev /dev tmpfs rw 0 0<br>/proc /proc proc rw 0 0<br>/sys /sys sysfs rw 0 0<br>/proc/bus/usb /proc/bus/usb usbfs rw 0 0<br>devpts /dev/pts devpts rw 0 0<br>/dev/sda1 /boot ext3 rw,data=ordered 0 0<br>

tmpfs /dev/shm tmpfs rw 0 0<br>none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0<br>/etc/auto.misc /misc autofs rw,fd=6,pgrp=6846,timeout=300,minproto=5,maxproto=5,indirect 0 0<br>

-hosts /net autofs rw,fd=11,pgrp=6846,timeout=300,minproto=5,maxproto=5,indirect 0 0<br>/vz/private/100 /vz/root/100 simfs rw 0 0<br>/vz/private/111 /vz/root/111 simfs rw 0 0<br>/proc /vz/root/100/proc proc rw 0 0<br>/sys /vz/root/100/sys sysfs rw 0 0<br>

none /vz/root/100/dev/pts devpts rw 0 0<br>/vz/private/166 /vz/root/166 simfs rw 0 0<br>/proc /vz/root/111/proc proc rw 0 0<br>/sys /vz/root/111/sys sysfs rw 0 0<br>none /vz/root/100/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>

/proc /vz/root/166/proc proc rw 0 0<br>/sys /vz/root/166/sys sysfs rw 0 0<br>none /vz/root/166/dev/pts devpts rw 0 0<br>none /vz/root/111/dev/pts devpts rw 0 0<br>/vz/private/167 /vz/root/167 simfs rw 0 0<br>/proc /vz/root/167/proc proc rw 0 0<br>

/sys /vz/root/167/sys sysfs rw 0 0<br>/vz/private/168 /vz/root/168 simfs rw 0 0<br>none /vz/root/167/dev/pts devpts rw 0 0<br>none /vz/root/166/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>/proc /vz/root/168/proc proc rw 0 0<br>

/sys /vz/root/168/sys sysfs rw 0 0<br>none /vz/root/168/dev/pts devpts rw 0 0<br>none /vz/root/167/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>none /vz/root/111/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>none /vz/root/168/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>

/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0<br>/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0<br>/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0<br>/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0<br>

/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0<br>/dev/root /vz/root/100/Desktop ext3 rw,data=ordered 0 0<br>/vz/private/101 /vz/root/101 simfs rw 0 0<br>/proc /vz/root/101/proc proc rw 0 0<br>/sys /vz/root/101/sys sysfs rw 0 0<br>

none /vz/root/101/dev/pts devpts rw 0 0<br>none /vz/root/101/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>/dev/root /vz/root/101/home ext3 rw,data=ordered 0 0<br>/dev/root /vz/root/101/mercury ext3 rw,data=ordered 0 0<br>

/dev/root /vz/root/101/periva ext3 rw,data=ordered 0 0<br>/dev/root /vz/root/101/root ext3 rw,data=ordered 0 0<br><br>[root@rajeshr-linux ~]# cat /etc/fstab<br>/dev/VolGroup00/LogVol00 /                       ext3    defaults                                                               1 1<br>

LABEL=/boot             /boot                   ext3    defaults                                                               1 2<br>devpts                  /dev/pts                devpts  gid=5,mode=620                                                         0 0<br>

tmpfs                   /dev/shm                tmpfs   defaults                                                               0 0<br>proc                    /proc                   proc    defaults                                                               0 0<br>

sysfs                   /sys                    sysfs   defaults                                                               0 0<br>/dev/VolGroup00/LogVol01 swap                    swap    defaults                                                               0 0<br>

<br>[root@rajeshr-linux ~]# vzctl exec 101 cat /etc/mtab<br>/dev/simfs / simfs rw 0 0<br>/proc /proc proc rw 0 0<br>/sys /sys sysfs rw 0 0<br>none /dev/pts devpts rw 0 0<br>none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0<br>

/dev/root /home ext3 rw,data=ordered 0 0<br>/dev/root /mercury ext3 rw,data=ordered 0 0<br>/dev/root /periva ext3 rw,data=ordered 0 0<br>/dev/root /root ext3 rw,data=ordered 0 0<br><br>[root@rajeshr-linux ~]# vzctl exec 101 mount<br>

/dev/simfs on / type simfs (rw)<br>/proc on /proc type proc (rw)<br>/sys on /sys type sysfs (rw)<br>none on /dev/pts type devpts (rw)<br>none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br>/dev/root on /home type ext3 (rw,data=ordered)<br>

/dev/root on /mercury type ext3 (rw,data=ordered)<br>/dev/root on /periva type ext3 (rw,data=ordered)<br>/dev/root on /root type ext3 (rw,data=ordered)<br><br>[root@rajeshr-linux ~]# uname -a<br>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<br>

<br>PLS help me!<br><br>Thanks,<br>Vidhya<br>