Re: OpenVZ and Gentoo [message #652 is a reply to message #651] |
Wed, 04 January 2006 14:26 |
wimalopaan
Messages: 15 Registered: January 2006
|
Junior Member |
|
|
Am Mittwoch, 4. Januar 2006 09:51 schrieb Kirill Korotaev:
> so you run Gentoo inside VPS yeah?
Well, I try to ...
> the problem seems to be in your initscripts, which didn't mount /proc on
> VPS start and didn't create /dev/ptyX entries for terminal devices.
> Looks like the only process in your VPS is init, strange...
I created the needed /dev/ttyp0 and /dev/ttyp0 by hand
in /vz/private/<id>/dev/ and mount also /proc by hand. Then it is possible to
enter the gentoo-VPS:
gs ~ # vzctl enter 2001
entered into VPS 2001
ovz01 / # ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1368 480 ? Ss 17:06 0:00 ini
root 14644 0.0 0.3 1740 780 ? Ss 17:14 0:00 vzctl: ttyp0
root 15669 0.5 0.5 2244 1288 ttyp0 Ss 17:14 0:00 bash -i
root 15671 0.0 0.3 2376 836 ttyp0 R+ 17:14 0:00 ps aux
ovz01 / #
I also copied /etc/init.d/net.lo to the VPS and some additional scripts, which
are apparently missing.
But in the gentoo-VPS I get still:
ovz01 / # /etc/init.d/net.venet0 start
* Starting
* no interface module has been loaded
ovz01 / #
ovz01 / # /sbin/ifconfig -a
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2660 (2.5 Kb) TX bytes:2660 (2.5 Kb)
venet0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
BROADCAST POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ovz01 / #
If I try that with a debian-guest on the gentoo-host, I get:
gs ~ # vzctl enter 2002
entered into VPS 2002
root@ovz02:/# ifconfig -a
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2660 (2.5 KiB) TX bytes:2660 (2.5 KiB)
venet0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0
Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:252 (252.0 b) TX bytes:252 (252.0 b)
venet0:0 Link encap:UNSPEC HWaddr
00-00-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.39.22 P-t-P:192.168.39.22 Bcast:0.0.0.0
Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
root@ovz02:/#
So the interface venet0:0 is missing in the gentoo-guest.
>
> kir@ who is in charge of Gentoo will be available after Jan 7 only, but
> I can check what's wrong with your VPS if you provide me the credentials
> in private email.
>
> Kirill
>
> > Hi,
> >
> > I want to use OpenVZ with Gentoo. I did the install of OpenVZ as
> > described in
> >
> > http://dev.croup.de/proj/gentoo-vps/wiki
> >
> > When I try to enter, I get:
> >
> > gs ~ # vzctl start 2001
> > Starting VPS ...
> > VPS is mounted
> > Setting CPU units: 1000
> > VPS start in progress...
> > gs ~ # vzctl status 2001
> > VPSID 2001 exist mounted running
> > gs ~ # vzctl enter 2001
> > Unable to open pty: No such file or directory
> > enter failed
> > gs ~ #
> >
> > and
> >
> > gs ~ # vzctl exec 2001 ps aux
> > Error, do this: mount -t proc proc /proc
> > gs ~ # vzctl exec 2001 mount -t proc none /proc
> > gs ~ # vzctl exec 2001 ps aux
> > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> > root 1 0.0 0.1 1368 480 ? Ss 00:30 0:00 ini
> > root 22894 0.0 0.3 2372 832 ? Rs 00:31 0:00 ps aux
> > gs ~ #
> >
> > Any hints?
> > --
> > Wilhelm Meier
> > email: meier@informatik.fh-kl.de
--
--
Wilhelm Meier
email: meier@informatik.fh-kl.de
|
|
|