Um i used command:<br>vzctl set 104 --devices c:1:1:rw --save<br>Restarted VE<br>Output:<br>pic /proc/vz/devperms<br>.lf 1 /proc/vz/devperms<br>Version: 2.7<br> 0 b 016 *:*<br> 0 c 006 *:*<br> 104 c 006 1:2<br>
104 c 006 1:1<br><br>And system still show me Promission denied on /dev/mem in VE 104. Any idea?<br><br>Thank you<br>Dean<br><br><div><span class="gmail_quote">2008/2/26, Pavel Emelyanov <<a href="mailto:xemul@openvz.org">xemul@openvz.org</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dean Gostisa wrote:<br> > pic /proc/vz/devperms<br> > .lf 1 /proc/vz/devperms<br> > Version: 2.7<br> > 0 b 016 *:*<br> > 0 c 006 *:*<br> > 104 c 006 1:2<br> <br> <br>Here it is - vzctl added c 1:2 device, not the c 1:1.<br>
Try the<br> <br> vzctl set 104 --devices c:1:1:rw --save<br> <br> command instead.<br> <br><br> > I use Gentoo stable OpenVZ: 2.6.18-028stab053<br> > Should i use newer ?<br> <br> <br>No. Looks like it's the vzctl fault. Try the above command,<br>
and if succeed, then upgrade the vzctl if required. If the<br> --devnodes still doesn't work - fill the BUG in our bugzilla :)<br> <br> Thanks,<br> <br>Pavel<br> <br><br> ><br> > 2008/2/26, Pavel Emelyanov <<a href="mailto:xemul@openvz.org">xemul@openvz.org</a>>:<br>
>> Dean Gostisa wrote:<br> >>> Um problem remains:<br> >>> I set:<br> >>> vzctl set 104 --devnodes mem:rw --save<br> >>> And restarted VE, then i checked dev nodes in VE:<br> >>> Doktor:/# ls -l /dev/mem<br>
>>> crwxrwxrwx 1 root news 1, 1 Apr 24 2007 /dev/mem<br> >><br> >> OK, what's in the /proc/vz/devperms file after ve restart?<br> >> And what's the kernel version you use?<br> >><br>
>><br> >>> But when i try to install still get same problem:<br> >>> apt-get --reinstall install xfonts-base<br> >>> Reading package lists... Done<br> >>> Building dependency tree... Done<br>
>>> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not<br> >>> upgraded.<br> >>> Need to get 0B/6131kB of archives.<br> >>> After unpacking 0B of additional disk space will be used.<br>
>>> Do you want to continue [Y/n]? Y<br> >>> (Reading database ... 20054 files and directories currently installed.)<br> >>> Preparing to replace xfonts-base 1:1.0.0-4 (using<br> >>> .../xfonts-base_1%3a1.0.0-4_all.deb) ...<br>
>>> /dev/mem: Permission denied<br> >>> Unpacking replacement xfonts-base ...<br> >>> /dev/mem: Permission denied<br> >>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br>
>>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br> >>> Setting up xfonts-base (1.0.0-4) ...<br> >>> /dev/mem: Permission denied<br> >>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br>
>>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br> >>><br> >>> Any other idea?<br> >>><br> >>><br> >>><br> >>> 2008/2/26, Pavel Emelyanov <<a href="mailto:xemul@openvz.org">xemul@openvz.org</a>>:<br>
>>>> Dean Gostisa wrote:<br> >>>>> Hi,<br> >>>>><br> >>>>> I have problem, i have created openvz Gentoo Server, and create Debian<br> >>>> VM on<br> >>>>> it, but when installing some packages like this i get:<br>
>>>>> apt-get --reinstall install xfonts-base<br> >>>>> Reading package lists... Done<br> >>>>> Building dependency tree... Done<br> >>>>> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not<br>
>>>>> upgraded.<br> >>>>> Need to get 0B/6131kB of archives.<br> >>>>> After unpacking 0B of additional disk space will be used.<br> >>>>> Do you want to continue [Y/n]? y<br>
>>>>> (Reading database ... 20054 files and directories currently<br> >> installed.)<br> >>>>> Preparing to replace xfonts-base 1:1.0.0-4 (using<br> >>>>> .../xfonts-base_1%3a1.0.0-4_all.deb) ...<br>
>>>>> /dev/mem: Permission denied<br> >>>>> Unpacking replacement xfonts-base ...<br> >>>>> /dev/mem: Permission denied<br> >>>>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br>
>>>>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br> >>>>> Setting up xfonts-base (1.0.0-4) ...<br> >>>>> /dev/mem: Permission denied<br> >>>>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br>
>>>>> warning: /usr/lib/X11/fonts/misc does not exist or is not a directory<br> >>>>><br> >>>>> Do you have any idea why?<br> >>>> Yup - you should give the device permissions to /dev/mem for this VE.<br>
>>>> Read man on vzctl for --devnodes option.<br> >>>><br> >>>><br> >>>>> Thank you for your help,<br> >>>>> Dean<br> >>>>><br> >>>>><br>
>>>>><br> >>>>><br> >> ------------------------------------------------------------------------<br> >>>>> _______________________________________________<br> >>>>> Users mailing list<br>
>>>>> <a href="mailto:Users@openvz.org">Users@openvz.org</a><br> >>>>> <a href="https://openvz.org/mailman/listinfo/users">https://openvz.org/mailman/listinfo/users</a><br> >>><br> >><br>
><br> ><br> <br> </blockquote></div><br><br clear="all"><br>-- <br>Everybody have fun!!!