OpenVZ Forum


Home » General » Support » *SOLVED* VPS Tamplate: gentoo-20060317-i686-stage3
*SOLVED* VPS Tamplate: gentoo-20060317-i686-stage3 [message #5010] Tue, 08 August 2006 08:46 Go to next message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
Hi, we installed the gentoo-20060317-i686-stage3 from http://openvz.org/download/template/cache. It runs, but:

vzctl enter -> enter failed
ssh is also not posible, after giving the passwort nothing goes on.

the other installed VPS (debian, opensuse) dont have the this problems.
Has anybody an idea to solve this?


Smile

[Updated on: Fri, 11 August 2006 11:05] by Moderator

Report message to a moderator

Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5012 is a reply to message #5010] Tue, 08 August 2006 10:03 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Are there other VPSs (with different tamplates), that works?
What kernel do you use?
If you've compiled it yourself provide config file, please.
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5013 is a reply to message #5012] Tue, 08 August 2006 10:21 Go to previous messageGo to next message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
other VPSs that works:
debian-3.1-i386-minimal.tar.gz
fedora-core-3-i386-default.tar.gz
opensuse-10-i386-default.tar.gz

Kernel: 2.6.16-026test015


Smile
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5014 is a reply to message #5013] Tue, 08 August 2006 11:27 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Can you strace vzctl enter command, please?

Here is a small article how to do it:
http://wiki.openvz.org/Stracing_a_program
And post straces here!

Thanks.

P.S. Also, if you can provide temporary access to your node
it would be much quickly to resolve your problem. So, if you
have such possibility send login information through PM.
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5015 is a reply to message #5014] Tue, 08 August 2006 12:26 Go to previous messageGo to next message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
Here is the output.
Thank you
  • Attachment: strace-vzctl
    (Size: 11.98KB, Downloaded 220 times)


Smile
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5016 is a reply to message #5015] Tue, 08 August 2006 12:36 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Sorry, but this isn't the whole strace.
While vzctl works, it creates child processes.
These processes aren't straced in your case.

Read http://wiki.openvz.org/Stracing_a_program, please,
to create appropriate strace.

Thanks! Smile
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5017 is a reply to message #5016] Tue, 08 August 2006 12:43 Go to previous messageGo to next message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
sorry, i hope now it is the right thing.

Smile
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5019 is a reply to message #5017] Tue, 08 August 2006 13:03 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
There is BAD /dev/ptyp* entries inside VE in question. Please, copy them from working VE:
cp /vz/private/100/dev/ptyp* /vz/private/200/dev/
100 - working VE
200 - VE, where enter fails.

[Updated on: Tue, 08 August 2006 13:07]

Report message to a moderator

Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5023 is a reply to message #5019] Tue, 08 August 2006 16:31 Go to previous messageGo to next message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
That does not work, sorry
Maybe because the other VEs dont use udev.
could this be a way to solve the problem?
http://wiki.openvz.org/Gentoo_template_creation#Set_up_udev
or must we create a new template?


Smile
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5035 is a reply to message #5023] Wed, 09 August 2006 06:21 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
As far as I understand you are using precreated template
(gentoo-20060317-i686-stage3.tar.gz).
I've tried them and it works for me, so there is no need
now to recreate template.
We must discover first what's the reason, why it doesn' work.
Ok. Please do the following:
200 - VEID of VE, where enter fails.

ls -l /vz/private/200/dev/ptyp0
ls -l /vz/private/200/dev/ttyp0
ls -l /vz/private/200/dev/ptmx

ls - l /vz/private/200/lib/udev/devices/ptyp0
ls - l /vz/private/200/lib/udev/devices/ttyp0
ls - l /vz/private/200/lib/udev/devices/ptmx

ls -l /dev/ptyp0
ls -l /dev/ttyp0
ls -l /dev/ptmx

100 - VEID of some other VE, where enter passes:
ls -l /vz/private/100/dev/ptyp0
ls -l /vz/private/100/dev/ttyp0
ls -l /vz/private/100/dev/ptmx

Post the results here, please.
Thanks.
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5039 is a reply to message #5035] Wed, 09 August 2006 06:44 Go to previous messageGo to next message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
ls -l /vz/private/200/dev/ptyp0
crw-rw-rw- 1 root tty 2, 0 Mar 18 17:24 /vz/private/200/dev/ptyp0

ls -l /vz/private/200/dev/ttyp0
crw-rw-rw- 1 root tty 3, 0 Mar 18 17:24 /vz/private/200/dev/ttyp0

ls -l /vz/private/200/dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Mar 18 17:24 /vz/private/200/dev/ptmx

ls - l /vz/private/200/lib/udev/devices/ptyp0
ls: -: No such file or directory
ls: l: No such file or directory
/vz/private/200/lib/udev/devices/ptyp0

ls - l /vz/private/200/lib/udev/devices/ttyp0
ls: -: No such file or directory
ls: l: No such file or directory
/vz/private/200/lib/udev/devices/ttyp0

ls - l /vz/private/200/lib/udev/devices/ptmx
ls: -: No such file or directory
ls: l: No such file or directory
/vz/private/200/lib/udev/devices/ptmx

ls -l /dev/ptyp0
ls: /dev/ptyp0: No such file or directory

ls -l /dev/ttyp0
ls: /dev/ttyp0: No such file or directory

ls -l /dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Aug 9 08:40 /dev/ptmx

ls -l /vz/private/400/dev/ptyp0
crw-rw-rw- 1 root tty 2, 0 Dec 17 2005 /vz/private/400/dev/ptyp0

ls -l /vz/private/400/dev/ttyp0
crw-rw-rw- 1 root tty 3, 0 Dec 17 2005 /vz/private/400/dev/ttyp0

ls -l /vz/private/400/dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Dec 29 2005 /vz/private/400/dev/ptmx

VE 400 is a precreated template opensuse (opensuse-10-i386-default.tar.gz)

Thank You


Smile
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5042 is a reply to message #5039] Wed, 09 August 2006 07:30 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
The problem is that you've compiled kernel with
CONFIG_LEGACY_PTYS option off. Please turn it on
(CONFIG_LEGACY_PTYS=y) and everything will be OK. Smile

Good luck!
Re: VPS Tamplate: gentoo-20060317-i686-stage3 [message #5043 is a reply to message #5042] Wed, 09 August 2006 07:40 Go to previous message
stefan is currently offline  stefan
Messages: 7
Registered: August 2006
Location: Basel
Junior Member
We will try and report to you
Thanks.


Smile
Previous Topic: *SOLVED* NAT doesn't seem to work
Next Topic: Fully access to NIC
Goto Forum:
  


Current Time: Mon Aug 19 04:40:33 GMT 2024

Total time taken to generate the page: 0.02997 seconds