Re: [Vserver] hostname -va
Daniel Haensse wrote: Dear list, I have a problem with hostname -va inside of vserver. Any hints? best regards Dani vserver1.foobar.com ... 192.168.5.101 virtual1.foobar.com virtual1 vserver1 != virtual1 ;) -- Daniel Hokka Zakrisson GPG id: 06723412 GPG fingerprint: A455 4DF3 990A 431F FECA 7947 6136 DDA2 0672 3412 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname -va
vserver1 != virtual1 ;) I'm so stupid. I'll repeat this for the rest of the day. Now it is working. Thank for the quick help. regards Dani ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname -va
On Thu, Nov 16, 2006 at 08:02:38AM +0100, Daniel Haensse wrote: inside of what vserver :) i.e. please provide a few more details, like kernel version, tool version and such vserver1:/# uname -va Linux vserver1.foobar.com 2.6.17-2-vserver-amd64 #1 SMP Wed Sep 13 18:02:36 CEST 2006 x86_64 GNU/Linux virtual:~# vserver --version vserver 0.30.211 -- manages the state of vservers This program is part of util-vserver 0.30.211 It's a debian etch system installed last week, so it should be up to date well, I have no idea what vserver version is in that kernel, but let's hope the debian folks made a good choice ... let's see ... come on :-) that one would be quite interesting to get the strace from, please try something like strace -fF hostname -va vserver1:/# strace -fF hostname -va execve(/bin/hostname, [hostname, -va], [/* 15 vars */]) = 0 uname({sys=Linux, node=vserver1.foobar.com, ...}) = 0 brk(0) = 0x503000 ... uname({sys=Linux, node=vserver1.foobar.com, ...}) = 0 gettimeofday({1163656218, 118761}, NULL) = 0 getpid()= 6611 open(/etc/resolv.conf, O_RDONLY) = 3 ... open(/etc/nsswitch.conf, O_RDONLY)= 3 fstat(3, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0 ... socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr(129.132.98.12)}, 28) = 0 ... Looks like it is not happy /etc/hosts and the local dns server is misconfigured. Why does it resolve the name with dns when it finds a /etc/hosts? that is part of the resolve mechanisms of libc (read: you have to consult the config e.g. /etc/nsswitch.conf and talk to the debian folks, if it doesn't do what it's supposed to do) and provide the output ... vserver1:/# cat /etc/resolv.conf search foobar.com nameserver 192.168.5.5 nameserver 129.132.98.12 nameserver 129.132.250.2 nameserver 129.132.250.220 IIRC, this won't work as expected, as you can only specify 3 nameservers in /etc/resolv.conf Sure, is there a way to update this automatically from the hosts (virtual) configuration (dhcp) basically you could setup a dhcp (on the host) and send out requests with some identifier (guest) to reiceive answers and then parse them and write them into the file ... OTOH you could simply remove one of them from the guest :) HTH, Herbert regards Dani ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] hostname -va
Dear list, I have a problem with hostname -va inside of vserver. Any hints? best regards Dani virtual:~# hostname -va virtual virtual:~# vserver vserver1 enter vserver1:/# hostname -v vserver1.foobar.com vserver1:/# hostname -va hostname: Unknown host vserver1:/# cat /etc/hosts 192.168.5.101 virtual1.foobar.com virtual1 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts vserver1:/# cat /etc/resolv.conf search foobar.com nameserver 192.168.5.5 nameserver 129.132.98.12 nameserver 129.132.250.2 nameserver 129.132.250.220 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname -va
On Wed, Nov 15, 2006 at 06:11:30PM +0100, Daniel Haensse wrote: Dear list, I have a problem with hostname -va inside of vserver. inside of what vserver :) i.e. please provide a few more details, like kernel version, tool version and such Any hints? let's see ... best regards Dani virtual:~# hostname -va virtual virtual:~# vserver vserver1 enter vserver1:/# hostname -v vserver1.foobar.com vserver1:/# hostname -va hostname: Unknown host that one would be quite interesting to get the strace from, please try something like strace -fF hostname -va and provide the output ... vserver1:/# cat /etc/hosts 192.168.5.101 virtual1.foobar.com virtual1 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts vserver1:/# cat /etc/resolv.conf search foobar.com nameserver 192.168.5.5 nameserver 129.132.98.12 nameserver 129.132.250.2 nameserver 129.132.250.220 IIRC, this won't work as expected, as you can only specify 3 nameservers in /etc/resolv.conf TIA, Herbert ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname -va
inside of what vserver :) i.e. please provide a few more details, like kernel version, tool version and such vserver1:/# uname -va Linux vserver1.foobar.com 2.6.17-2-vserver-amd64 #1 SMP Wed Sep 13 18:02:36 CEST 2006 x86_64 GNU/Linux virtual:~# vserver --version vserver 0.30.211 -- manages the state of vservers This program is part of util-vserver 0.30.211 It's a debian etch system installed last week, so it should be up to date let's see ... come on :-) that one would be quite interesting to get the strace from, please try something like strace -fF hostname -va vserver1:/# strace -fF hostname -va execve(/bin/hostname, [hostname, -va], [/* 15 vars */]) = 0 uname({sys=Linux, node=vserver1.foobar.com, ...}) = 0 brk(0) = 0x503000 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab393112000 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=9416, ...}) = 0 mmap(NULL, 9416, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ab393114000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/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\200\305..., 640) = 640 lseek(3, 624, SEEK_SET) = 624 read(3, \4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0..., 32) = 32 fstat(3, {st_mode=S_IFREG|0755, st_size=1286312, ...}) = 0 mmap(NULL, 2344904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ab393213000 mprotect(0x2ab393334000, 1161160, PROT_NONE) = 0 mmap(0x2ab393434000, 98304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x121000) = 0x2ab393434000 mmap(0x2ab39344c000, 14280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab39344c000 close(3)= 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab39345 mprotect(0x2ab393434000, 86016, PROT_READ) = 0 arch_prctl(ARCH_SET_FS, 0x2ab3934506d0) = 0 munmap(0x2ab393114000, 9416)= 0 brk(0) = 0x503000 brk(0x524000) = 0x524000 uname({sys=Linux, node=vserver1.foobar.com, ...}) = 0 gettimeofday({1163656218, 118761}, NULL) = 0 getpid()= 6611 open(/etc/resolv.conf, O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=125, ...}) = 0 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab393114000 read(3, search foobar.com\nnameser..., 131072) = 125 read(3, , 131072) = 0 close(3)= 0 munmap(0x2ab393114000, 131072) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)= 0 connect(3, {sa_family=AF_FILE, path=/var/run/nscd/socket}, 110) = -1 ENOENT (No such file or directory) close(3)= 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)= 0 connect(3, {sa_family=AF_FILE, path=/var/run/nscd/socket}, 110) = -1 ENOENT (No such file or directory) close(3)= 0 open(/etc/nsswitch.conf, O_RDONLY)= 3 fstat(3, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab393114000 read(3, # /etc/nsswitch.conf\n#\n# Example..., 131072) = 475 read(3, , 131072) = 0 close(3)= 0 munmap(0x2ab393114000, 131072) = 0 open(/etc/ld.so.cache, O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=9416, ...}) = 0 mmap(NULL, 9416, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ab393114000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/libnss_files.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#\0\0..., 640) = 640 fstat(3, {st_mode=S_IFREG|0644, st_size=43368, ...}) = 0 mmap(NULL, 1090856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ab393451000 mprotect(0x2ab39345b000, 1049896, PROT_NONE) = 0 mmap(0x2ab39355a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x2ab39355a000 close(3)= 0 munmap(0x2ab393114000, 9416)= 0 open(/etc/host.conf, O_RDONLY)= 3 fstat(3, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab393114000 read(3, multi on\n, 131072) = 9 read(3, , 131072) = 0 close(3)= 0 munmap(0x2ab393114000,
Re: [Vserver] hostname ?
Hm.. I just upgraded to 0.30.210, and added utsname: cat /etc/vservers/snip/ccapabilities mount utsname cat /proc/virtual/xid/status UseCnt: 99 Tasks: 25 Flags: 020a0211 BCaps: 744c04ff CCaps: 00010101 Ticks: 0 still doesn't let me change the hostname I must be missing something. On Fri, 7 Jul 2006, Daniel Hokka Zakrisson wrote: Gregory (Grisha) Trubetskoy wrote: Sorry if this was already asked - I searched and couldn't find anything. Recently I went from 2.6.12.4-vs2.0 to 2.6.17-vs2.0.2-rc24 on one of the machines (needed 2.6.17 because of a hardware issue). Inside a vserver: with 2.6.12.4-vs2.0: # hostname blah # hostname blah with 2.6.17-vs2.0.2-rc24: # hostname blah hostname: you must be root to change the host name The configurations are identical: # cat bcapabilities ^29 ^30 # cat ccapabilities mount Obviously I don't want to give the CAP_SYS_ADMIN capability. Any advice would be very much appreciated!! What you want is the utsname ccapability, although that is given by default to guests (at least by util-vserver 0.30.210). Did you happen to change tools as well? What does grep CCap /proc/virtual/xid/status on the host say? -- Daniel Hokka Zakrisson GPG id: 06723412 GPG fingerprint: A455 4DF3 990A 431F FECA 7947 6136 DDA2 0672 3412 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname ?
Gregory (Grisha) Trubetskoy wrote: Hm.. I just upgraded to 0.30.210, and added utsname: cat /etc/vservers/snip/ccapabilities mount utsname cat /proc/virtual/xid/status UseCnt: 99 Tasks: 25 Flags: 020a0211 BCaps: 744c04ff CCaps: 00010101 Ticks: 0 still doesn't let me change the hostname I must be missing something. Whoops, it appears this particular feature was accidentally removed in the 2.6.17 ports. Expect it to be fixed in the next release candidate. -- Daniel Hokka Zakrisson GPG id: 06723412 GPG fingerprint: A455 4DF3 990A 431F FECA 7947 6136 DDA2 0672 3412 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] hostname ?
Sorry if this was already asked - I searched and couldn't find anything. Recently I went from 2.6.12.4-vs2.0 to 2.6.17-vs2.0.2-rc24 on one of the machines (needed 2.6.17 because of a hardware issue). Inside a vserver: with 2.6.12.4-vs2.0: # hostname blah # hostname blah with 2.6.17-vs2.0.2-rc24: # hostname blah hostname: you must be root to change the host name The configurations are identical: # cat bcapabilities ^29 ^30 # cat ccapabilities mount Obviously I don't want to give the CAP_SYS_ADMIN capability. Any advice would be very much appreciated!! Thanks, Grisha ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname ?
Gregory (Grisha) Trubetskoy wrote: Sorry if this was already asked - I searched and couldn't find anything. Recently I went from 2.6.12.4-vs2.0 to 2.6.17-vs2.0.2-rc24 on one of the machines (needed 2.6.17 because of a hardware issue). Inside a vserver: with 2.6.12.4-vs2.0: # hostname blah # hostname blah with 2.6.17-vs2.0.2-rc24: # hostname blah hostname: you must be root to change the host name The configurations are identical: # cat bcapabilities ^29 ^30 # cat ccapabilities mount Obviously I don't want to give the CAP_SYS_ADMIN capability. Any advice would be very much appreciated!! What you want is the utsname ccapability, although that is given by default to guests (at least by util-vserver 0.30.210). Did you happen to change tools as well? What does grep CCap /proc/virtual/xid/status on the host say? -- Daniel Hokka Zakrisson GPG id: 06723412 GPG fingerprint: A455 4DF3 990A 431F FECA 7947 6136 DDA2 0672 3412 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] hostname
Hi all How can I change the hostname of a vsever ? I'v change the file /etc/vserver/name_of_vserver/name but when I start the vserver he already have the old-name (event after stop/start). Lots of thanks. -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. 7 ième étage, plateau D, bureau 10 Heure local/Local time: Mon Apr 10 14:13:34 CEST 2006 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname
Hi there, on Monday, April 10, 2006 at 2:14:42 PM there was posted: AS /etc/vserver/name_of_vserver/name This is only the name visible to/through utilities. The hostname ist to go into /etc/vserver/[vserver-name]/uts/nodename -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname
On Mon, Apr 10, 2006 at 02:18:33PM +0200, Guenther Fuchs wrote: Hi there, on Monday, April 10, 2006 at 2:14:42 PM there was posted: AS /etc/vserver/name_of_vserver/name This is only the name visible to/through utilities. The hostname ist to go into /etc/vserver/[vserver-name]/uts/nodename also note: with the proper context capability, the guest can set the hostname from inside (virtualized utsname) and might just change that back to soemthing which is coded into the guest scripts ... (you can remove that cap to disallow that) HTH, Herbert -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Hostname confusion inside vserver
micah a écrit : Roché Compaan wrote: Any reason why /usr/bin/mail would think the hostname is the host's hostname and not the vserver's, even though the hostname command correctly returns the vserver's hostname? Check your /etc/mailname and /etc/hosts to see what is defined. Micah ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver Why scripts of creation: vserver build does not modify information /etc/hostname and /etc/hosts in the vserver? Stéphane ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Hostname confusion inside vserver
On Tue, Dec 20, 2005 at 09:37:07AM +0100, Stéphane GAUTIER wrote: micah a écrit : Roché Compaan wrote: Any reason why /usr/bin/mail would think the hostname is the host's hostname and not the vserver's, even though the hostname command correctly returns the vserver's hostname? Check your /etc/mailname and /etc/hosts to see what is defined. Micah ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver Why scripts of creation: vserver build does not modify information /etc/hostname and /etc/hosts in the vserver? well, I agree that it makes sense to modify and/or cleanup the guests after installation, and with the current tools that can be done quite easily (see initpre and initpost scripts) but, those scripts are fairly distro dependant (probably both, host and guest distro) so they should be created by folks who maintain those distros ... best, Herbert Stéphane ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Hostname confusion inside vserver
On Tue, 20 Dec 2005, Stéphane GAUTIER wrote: Why scripts of creation: vserver build does not modify information /etc/hostname and /etc/hosts in the vserver? Because these names are distribution-dependant. -- For every action, there is an equal and opposite criticism. (in boot camp) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Hostname confusion inside vserver
Any reason why /usr/bin/mail would think the hostname is the host's hostname and not the vserver's, even though the hostname command correctly returns the vserver's hostname? -- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Hostname confusion inside vserver
On Sun, 2005-12-18 at 11:12 +0200, Roché Compaan wrote: Any reason why /usr/bin/mail would think the hostname is the host's hostname and not the vserver's, even though the hostname command correctly returns the vserver's hostname? DNS issues? Try strace-ing /usr/bin/mail and seeing how it acquires the hostname - that should give you a clue. Cheers, - Martin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Hostname confusion inside vserver
Roché Compaan wrote: Any reason why /usr/bin/mail would think the hostname is the host's hostname and not the vserver's, even though the hostname command correctly returns the vserver's hostname? Check your /etc/mailname and /etc/hosts to see what is defined. Micah ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in guest is equal to the hosts hostname
Hi, Herbert Poetzl meinte: I don't know your config .. but I guess it's a config issue check what /proc/virtual/%xid/cvirt says about the nodename Solved. Setting the nodename as Micah suggested helped. It seems I missed some configuration settings in my attempt to translate an old config file to the new directory based configuration. Will there be a tool that does this conversion automagical or menu driven? Cheers, - Thorsten ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] hostname in guest is equal to the hosts hostname
Hi, I set up vserver 2.0 rc2 / kernel 2.6.11.10 / debian. If I run a guest (debian sarge) and type hostname the hostname of the host gets returned and not the one of the guest. Also hostname -i gives me the ip address of the host and not of the client. Is this some configuration issue or a bug in vserver? Cheers, - Thorsten ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in guest is equal to the hosts hostname
On Mon, May 30, 2005 at 06:21:32PM +0200, Thorsten Busse wrote: Hi, I set up vserver 2.0 rc2 / kernel 2.6.11.10 / debian. If I run a guest (debian sarge) and type hostname the hostname of the host gets returned and not the one of the guest. Also hostname -i gives me the ip address of the host and not of the client. Is this some configuration issue or a bug in vserver? I don't know your config .. but I guess it's a config issue check what /proc/virtual/%xid/cvirt says about the nodename HTH, Herbert Cheers, - Thorsten ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in guest is equal to the hosts hostname
Depends on what you used as arguments when you created the vserver. Since its already been created, maybe changing /etc/vservers/vserver/uts/nodename to what you are expecting and restarting the vserver will get your expected results. micah On Mon, 30 May 2005, Thorsten Busse wrote: Hi, I set up vserver 2.0 rc2 / kernel 2.6.11.10 / debian. If I run a guest (debian sarge) and type hostname the hostname of the host gets returned and not the one of the guest. Also hostname -i gives me the ip address of the host and not of the client. Is this some configuration issue or a bug in vserver? Cheers, - Thorsten ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] hostname in the vserver and vserver name
Dear All, My little question is: Is there a link between the hostname of the vserver and the vserver name? I am setting up a backup scheme with 2 vserver enabled boxes bluefish and babelfish and the real service is to be provided by virtualfish. Yes our boxes have fish names, no I will not call it nemo ;-) I know that for the aliases the limit is 8 or 9 characters [http://list.linux-vserver.org/archive/vserver/msg07240.html] but can I have a vserver name with a different hostname, like vfish and virtualfish? Thanks for the answer and by the way special thanks to Herbert for the continuous support of vserver and the answers in this list. loïc ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in the vserver and vserver name
On Wed, 2004-07-07 at 14:17, loic d'Anterroches wrote: Dear All, My little question is: Is there a link between the hostname of the vserver and the vserver name? Yes and no, it totally depends on the way you configure it the vserver_name is set by /etc/vservers/VSVRNAME.conf and the vserver_hostname is set in this file by specifying a value for S_HOSTNAME= -- Regards, Dennis Roos Network Engineer InTouch N.V. Middenweg 76 1097 BS Amsterdam Tel: +31 (0)20 6752060 Fax: +31 (0)20 6758429 ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in the vserver and vserver name
On Wed, 2004-07-07 at 14:17, loic d'Anterroches wrote: Dear All, My little question is: Is there a link between the hostname of the vserver and the vserver name? Yes and no, it totally depends on the way you configure it the vserver_name is set by /etc/vservers/VSVRNAME.conf and the vserver_hostname is set in this file by specifying a value for S_HOSTNAME= Thanks a lot. I should have read slower the VSVRNAME.conf I have, really sorry :-/. loïc ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] hostname in hosts
Result: Changing vserver name after creation, keeps hostname in vserver the same. Repro: Create vserver, set ip address to 192.168.1.1. Then change ip address in /etc/vservers/servername.conf. When starting apache on the vserver it uses the original ip address listed in: /etc/vservers/hosts. Item: Should vserver complain about this problem? Should the user just remember to change this? ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in hosts
On Tue, 8 Jun 2004, Lucas Albers wrote: Result: Changing vserver name after creation, keeps hostname in vserver the same. Repro: Create vserver, set ip address to 192.168.1.1. Then change ip address in /etc/vservers/servername.conf. Did you restart the vserver? I thought /etc/vservers/servername.conf was mainly read during startup. Though the # Description: vserver name is read each time vserver-stat is run. When starting apache on the vserver it uses the original ip address listed in: /etc/vservers/hosts. This is a new for me. I know I'm pretty clueless on much of this stuff but I have never seen mention of a /etc/vservers/hosts file. What is it suppose to be for or how is it suppose to be used? Rod -- Open Source Software - You usually get more than you pay for... Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in hosts
Does your apache config have a Listen directive, and if so, what is it? When Listen does not specify an IP address (e.g. Listen 80), apache should bind to 0.0.0.0, which doesn't have much to do with the hostname AFAIK. If you're using Apache 1.3, then also check the BindAddress directive. Grisha On Tue, 8 Jun 2004, Lucas Albers wrote: Roderick A. Anderson said: This is a new for me. I know I'm pretty clueless on much of this stuff but I have never seen mention of a /etc/vservers/hosts file. What is it suppose to be for or how is it suppose to be used? my bad its this file: /vservers/vservername/etc/hosts Its the hosts file in the vserver. I encountered this little gotcha when I setup a new vserver with a 168.0.0.1 address then switched to a routable ip address. apache keep trying to use the old 168.0.0.1 address and I couldn not figure out why until I looked in /etc/hosts on the vserver apache was running on and saw the old 168.0.0.1 entry. -- Luke Computer Science System Administrator Security Administrator,College of Engineering Montana State University-Bozeman,Montana ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] hostname in hosts
On Tue, 8 Jun 2004, Lucas Albers wrote: my bad its this file: /vservers/vservername/etc/hosts Its the hosts file in the vserver. I encountered this little gotcha when I setup a new vserver with a 168.0.0.1 address then switched to a routable ip address. apache keep trying to use the old 168.0.0.1 address and I couldn not figure out why until I looked in /etc/hosts on the vserver apache was running on and saw the old 168.0.0.1 entry. Been there, done that, and bought many tee-shirts. I should have thought of that when I replied but it has been awhile since I got tripped up with this problem. It seems that some of the new-vserver creation processes make that entry and the vserver command doesn't change it. Not sure it should be a vserver problem though. Rod -- Open Source Software - You usually get more than you pay for... Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver