OpenVZ Forum


Home » General » Support » netdev_add Operation not permitted
netdev_add Operation not permitted [message #38900] Wed, 17 February 2010 23:44 Go to next message
l4ndy74 is currently offline  l4ndy74
Messages: 27
Registered: August 2006
Junior Member
Hello,

i have this problem:

in the HW i configure a tunnel 6to4:

ip tunnel add 6to4 mode sit local IP_Address ttl 255

and when i use the netdev_add for use the 6to4 into the vps i have this error:

vzctl set 120 --netdev_add 6to4 --save
Unable to add netdev 6to4: Operation not permitted
Saved parameters for CT 120

any ideas?

Thank You.

OS HW: Linux Centos 5.4 64 bit
Kernel: 2.6.18-164.10.1.el5.028stab067.4
vzctl version 3.0.23

[Updated on: Wed, 17 February 2010 23:45]

Report message to a moderator

Re: netdev_add Operation not permitted [message #38923 is a reply to message #38900] Sat, 20 February 2010 10:11 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
"Operation not permitted" must be a return value of some system call. Please, try using "strace" utility to reveal what system call returns such a value.
Re: netdev_add Operation not permitted [message #38929 is a reply to message #38923] Sat, 20 February 2010 13:30 Go to previous messageGo to next message
l4ndy74 is currently offline  l4ndy74
Messages: 27
Registered: August 2006
Junior Member
--

[Updated on: Sat, 20 February 2010 13:37]

Report message to a moderator

Re: netdev_add Operation not permitted [message #38930 is a reply to message #38929] Sat, 20 February 2010 13:34 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

the provided output is "touch /tmp/file" strace output.
But the command that doesn't work is "vzctl set 120 --netdev_add 6to4 --save"
Re: netdev_add Operation not permitted [message #38932 is a reply to message #38930] Sat, 20 February 2010 13:47 Go to previous message
l4ndy74 is currently offline  l4ndy74
Messages: 27
Registered: August 2006
Junior Member
ok. this is the results. thank you for your support.

strace.out.16525

execve("/usr/sbin/vzctl", ["vzctl", "set", "120", "--netdev_add", "6to4-120", "--save"], [/* 18 vars */]) = 0
brk(0) = 0xf18c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d967000
uname({sys="Linux", node="vz", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=36146, ...}) = 0
mmap(NULL, 36146, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b1e6d968000
close(3) = 0
open("/usr/lib64/libvzctl-0.0.2.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220}@\317;\0\0\0 "..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=523498, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d971000
mmap(0x3bcf400000, 1202600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3bcf400000
mprotect(0x3bcf424000, 1044480, PROT_NONE) = 0
mmap(0x3bcf523000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x3bcf523000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16\0\317;\0\0\0 "..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=23360, ...}) = 0
mmap(0x3bcf000000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3bcf000000
mprotect(0x3bcf002000, 2097152, PROT_NONE) = 0
mmap(0x3bcf202000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3bcf202000
close(3) = 0
open("/lib64/libutil.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\16\0\322;\0\0\0 "..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18152, ...}) = 0
mmap(0x3bd2000000, 2105616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3bd2000000
mprotect(0x3bd2002000, 2093056, PROT_NONE) = 0
mmap(0x3bd2201000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x3bd2201000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\332\301\316;\0\0\0 "..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1717800, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d972000
mmap(0x3bcec00000, 3498328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3bcec00000
mprotect(0x3bced4d000, 2097152, PROT_NONE) = 0
mmap(0x3bcef4d000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x3bcef4d000
mmap(0x3bcef52000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3bcef52000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d973000
arch_prctl(ARCH_SET_FS, 0x2b1e6d973300) = 0
mprotect(0x3bcf202000, 4096, PROT_READ) = 0
mprotect(0x3bd2201000, 4096, PROT_READ) = 0
mprotect(0x3bcef4d000, 16384, PROT_READ) = 0
mprotect(0x3bcea1b000, 4096, PROT_READ) = 0
munmap(0x2b1e6d968000, 36146) = 0
brk(0) = 0xf18c000
brk(0xf1ad000) = 0xf1ad000
rt_sigaction(SIGPIPE, {0x1, [], SA_RESTORER, 0x3bcec302d0}, NULL, Cool = 0
open("/usr/lib64/vzctl/modules/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/etc/vz/vz.conf", O_RDONLY) = 3
stat("/etc/vz/vz.conf", {st_mode=S_IFREG|0644, st_size=1118, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1118, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d968000
read(3, "## Global parameters\nVIRTUOZZO=y"..., 4096) = 1118
read(3, "", 4096) = 0
close(3) = 0
munmap(0x2b1e6d968000, 4096) = 0
open("/var/log/vzctl.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=17812, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d968000
fstat(3, {st_mode=S_IFREG|0644, st_size=17812, ...}) = 0
lseek(3, 17812, SEEK_SET) = 17812
stat("/etc/vz/conf/120.conf", {st_mode=S_IFREG|0644, st_size=2076, ...}) = 0
open("/etc/vz/conf/120.conf", O_RDONLY) = 4
stat("/etc/vz/conf/120.conf", {st_mode=S_IFREG|0644, st_size=2076, ...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=2076, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d969000
read(4, "# Copyright (C) 2000-2006 SWsof"..., 4096) = 2076
read(4, "", 4096) = 0
close(4) = 0
munmap(0x2b1e6d969000, 4096) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(1, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(2, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
open("/dev/vzctl", O_RDWR) = 4
ioctl(4, 0x400c2e05, 0x7fffe2b57220) = 0
stat("/vz/lock", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getpid() = 16525
open("/vz/lock/120.lcknIZDsM", O_RDWR|O_CREAT|O_EXCL, 0600) = 5
write(5, "16525\n\n", 7) = 7
close(5) = 0
link("/vz/lock/120.lcknIZDsM", "/vz/lock/120.lck") = 0
unlink("/vz/lock/120.lcknIZDsM") = 0
rt_sigaction(SIGINT, {0x1, [], SA_RESTORER, 0x3bcec302d0}, NULL, Cool = 0
ioctl(4, 0x400c2e05, 0x7fffe2b57230) = 0
ioctl(4, 0x400c2e05, 0x7fffe2b570c0) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_NOCLDSTOP, 0x3bcec302d0}, NULL, Cool = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b1e6d973390) = 16526
wait4(16526, [{WIFEXITED(s) && WEXITSTATUS(s) == 104}], 0, NULL) = 16526
--- SIGCHLD (Child exited) @ 0 (0) ---
stat("/etc/vz/conf/120.conf", {st_mode=S_IFREG|0644, st_size=2076, ...}) = 0
open("/etc/vz/conf/120.conf", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=2076, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b1e6d969000
read(5, "# Copyright (C) 2000-2006 SWsof"..., 4096) = 2076
read(5, "", 4096) = 0
close(5) = 0
munmap(0x2b1e6d969000, 4096) = 0
open("/etc/vz/conf/120.conf.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 5
write(5, "# Copyright (C) 2000-2006 SWsof"..., 56) = 56
write(5, "#\n", 2) = 2
write(5, "# This program is free software"..., 72) = 72
write(5, "# it under the terms of the GNU"..., 72) = 72
write(5, "# the Free Software Foundation;"..., 69) = 69
write(5, "# (at your option) any later ve"..., 39) = 39
write(5, "#\n", 2) = 2
write(5, "# This program is distributed i"..., 67) = 67
write(5, "# but WITHOUT ANY WARRANTY; wit"..., 66) = 66
write(5, "# MERCHANTABILITY or FITNESS FO"..., 65) = 65
write(5, "# GNU General Public License fo"..., 48) = 48
write(5, "#\n", 2) = 2
write(5, "# You should have received a co"..., 69) = 69
write(5, "# along with this program; if n"..., 63) = 63
write(5, "# Foundation, Inc., 59 Temple P"..., 77) = 77
write(5, "#\n", 2) = 2
write(5, "\n", 1) = 1
write(5, "ONBOOT=\"yes\"\n", 13) = 13
write(5, "\n", 1) = 1
write(5, "# UBC parameters (in form of bar"..., 44) = 44
write(5, "# Primary parameters\n", 21) = 21
write(5, "AVNUMPROC=\"40:40\"\n", 18) = 18
write(5, "NUMPROC=\"999999:999999\"\n", 24) = 24
write(5, "NUMTCPSOCK=\"7999992:7999992\"\n", 29) = 29
write(5, "NUMOTHERSOCK=\"7999992:7999992\"\n", 31) = 31
write(5, "VMGUARPAGES=\"128000:2147483647\"\n", 32) = 32
write(5, "# Secondary parameters\n", 23) = 23
write(5, "KMEMSIZE=\"2147483646:2147483646\""..., 33) = 33
write(5, "TCPSNDBUF=\"104857600:286883840\"\n", 32) = 32
write(5, "TCPRCVBUF=\"104857600:286883840\"\n", 32) = 32
write(5, "OTHERSOCKBUF=\"104857600:28688384"..., 35) = 35
write(5, "DGRAMRCVBUF=\"104857600:286883840"..., 34) = 34
write(5, "OOMGUARPAGES=\"128000:2147483647\""..., 33) = 33
write(5, "# Auxiliary parameters\n", 23) = 23
write(5, "LOCKEDPAGES=\"999999:999999\"\n", 28) = 28
write(5, "SHMPAGES=\"128000:128000\"\n", 25) = 25
write(5, "PRIVVMPAGES=\"255999744:255999744"..., 34) = 34
write(5, "NUMFILE=\"23999976:23999976\"\n", 28) = 28
write(5, "NUMFLOCK=\"999999:999999\"\n", 25) = 25
write(5, "NUMPTY=\"500000:500000\"\n", 23) = 23
write(5, "NUMSIGINFO=\"999999:999999\"\n", 27) = 27
write(5, "DCACHESIZE=\"2147483646:214748364"..., 35) = 35
write(5, "\n", 1)
...

[Updated on: Sat, 20 February 2010 13:47]

Report message to a moderator

Previous Topic: Cant ssh to main IP
Next Topic: Restore of VPS with mounted logical volume (LVM)
Goto Forum:
  


Current Time: Thu Aug 22 18:15:43 GMT 2024

Total time taken to generate the page: 0.02867 seconds