OpenVZ Forum


Home » General » Support » Anyone make a working Gentoo Template?
icon4.gif  Anyone make a working Gentoo Template? [message #580] Wed, 21 December 2005 17:47 Go to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

I'm wondering if anyone has made a working Gentoo 2005 or 2005.1 template. I have been working on Gentoo for quite a few days now and have gotten nowhere. If I vzctl start 123 the start up appears normal as if I was using lets say Centos but the VPS does not start. There is nothing in the log file that I can find as an error on the host system. This particular template doesn't have system log installed as of yet. How do I find out why the VPS is not starting? If anyone has a working template please tell me any information that might be pertinent.

EDIT: I have two gentoo templates I am working on. I just checked the other template and there is an error!! it is as follows:

2005-12-21T12:05:01-0600 venetclean : VPS 101 : VPS died, clear ips: 72.23$

Where do I go from here?


Just Because You Have One, Doesn't Mean You Have To Be One!

[Updated on: Wed, 21 December 2005 18:07]

Report message to a moderator

Re: Anyone make a working Gentoo Template? [message #665 is a reply to message #580] Thu, 05 January 2006 10:55 Go to previous messageGo to next message
wimalopaan is currently offline  wimalopaan
Messages: 15
Registered: January 2006
Junior Member
Did you try this:

http://dev.croup.de/proj/gentoo-vps/wiki/OpenvzHowto

with the mentioned stage3-tarball?

-
Wilhelm
Re: Anyone make a working Gentoo Template? [message #666 is a reply to message #665] Thu, 05 January 2006 11:50 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

I have tried the vserver template and a Xen template and a UML template and starting from scratch with stages and portage. I can not seem to get networking up and running. I have spent more hours than I wish to admit trying to get a template up and running, I'm open to any information which might assist me in getting this template finalized. The other problem is that env-update has to be done each time I enter the VPS. It doesn't seem to save.

Just Because You Have One, Doesn't Mean You Have To Be One!

[Updated on: Thu, 05 January 2006 11:52]

Report message to a moderator

Re: Anyone make a working Gentoo Template? [message #668 is a reply to message #666] Thu, 05 January 2006 13:28 Go to previous messageGo to next message
wimalopaan is currently offline  wimalopaan
Messages: 15
Registered: January 2006
Junior Member
Hi,

the gentoo-network scripts net.lo seems to be broken. Instead of linking net.venet0 to net.lo I use the attached script (change appropriate). Then my networking is fine.

BTW, how do I bind-mount something into the VPS, e.g. /usr/portage of the host to the VPS

-
wilhelm
  • Attachment: net.venet0
    (Size: 0.20KB, Downloaded 520 times)
Re: Anyone make a working Gentoo Template? [message #678 is a reply to message #580] Thu, 05 January 2006 17:53 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

You Sir are a gentleman and a scholar Very Happy
This is the closest I have gotten so far. I can ping outside IP addresses but emerge for incoming traffic doesn't seem to function. my ifconfig is as follows:

localhost / # /sbin/ifconfig -a
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
venet0 Link encap:UNSPEC HWaddr 07-40-00-6A-12-40-80-70-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

Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
venet0:0 Link encap:UNSPEC HWaddr 00-00-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00
inet addr:72.232.xxx.xxx P-t-P:72.232.xxx.xxx Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1


Any Idea how to solve the cannot open /proc/net/dev error??

Thanks so much for your assistance so far.

*EDIT* As a side note I can ping the guest IP from the outside world

*EDIT* In my haste I neglected to make or copy a resolv.conf to /etc After doing that I can reach the outside world. I would still like to fix the error though.


Just Because You Have One, Doesn't Mean You Have To Be One!

[Updated on: Thu, 05 January 2006 17:58]

Report message to a moderator

Re: Anyone make a working Gentoo Template? [message #679 is a reply to message #678] Thu, 05 January 2006 18:17 Go to previous messageGo to next message
wimalopaan is currently offline  wimalopaan
Messages: 15
Registered: January 2006
Junior Member
Just mount /proc inside the VPS:

mount -t proc none /proc
Re: Anyone make a working Gentoo Template? [message #680 is a reply to message #580] Fri, 06 January 2006 17:50 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

Thanks wimalopaan, that solved that problem Very Happy Now for the next one!

My Gentoo Template seems to be working fine except for if I type "reboot" The vps shuts down fine but never comes back up. I tried manually running the reboot cron job and it still did not start. I created a CentOS guest and rebooted that vps and it did come back up so It's not a problem with the cron job. There must be something which has to be added to the gentoo template or the gentoo scripts in /etc/sysconfig/vz-scripts/dists/scripts

Anyone have any suggestions?


Just Because You Have One, Doesn't Mean You Have To Be One!
Re: Anyone make a working Gentoo Template? [message #698 is a reply to message #665] Sat, 07 January 2006 02:36 Go to previous messageGo to next message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
I gave that a shot, but when I try to enter the VE, It kicks out this error:

[root@vz-test template]# vzctl enter 1001
Unable to open pty: No such file or directory
enter failed

Seen that yet?



Re: Anyone make a working Gentoo Template? [message #699 is a reply to message #698] Sat, 07 January 2006 02:42 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

Create the pty or any such device by the following:

cd /vz/root/111/dev; /vz/root/111/sbin/MAKEDEV pty

For some reason swsoft told me to try and create it that way instead of through /vz/private/111.

Good Luck


Just Because You Have One, Doesn't Mean You Have To Be One!
Re: Anyone make a working Gentoo Template? [message #701 is a reply to message #699] Sat, 07 January 2006 02:47 Go to previous messageGo to next message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
That makes sense, but I'm not sure about running it on the host machine, shouldn't we try this through vzctl exec?

Re: Anyone make a working Gentoo Template? [message #702 is a reply to message #699] Sat, 07 January 2006 02:53 Go to previous messageGo to next message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
That worked. Here's what I ran:

vzctl exec 1001 "cd /dev; /sbin/MAKEDEV pty"


[root@vz-test root]# vzctl exec 1001 "cd /dev; /sbin/MAKEDEV pty"
/sbin/MAKEDEV: warning: can't read /proc/devices
/sbin/MAKEDEV: warning: can't read /proc/devices
[root@vz-test root]# vz enter 1001
entered into VPS 1001
localhost / #
localhost / #
localhost / #


Thanks Smile Now on to figuring out this networking issue!



Re: Anyone make a working Gentoo Template? [message #703 is a reply to message #580] Sat, 07 January 2006 03:00 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

Look up in this post, wimalopaan, attached an attachment which worked very well. Just replace the 192... IP with your vps IP. Then do "rc-update add net.venet0 default" to have the script start at boot

Good Luck!


Just Because You Have One, Doesn't Mean You Have To Be One!
Re: Anyone make a working Gentoo Template? [message #705 is a reply to message #703] Sat, 07 January 2006 03:18 Go to previous message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
Cool, I got the networking to work Smile

Thanks,



Previous Topic: compiling
Next Topic: command to see all running ve's
Goto Forum:
  


Current Time: Mon Nov 11 13:45:22 GMT 2024

Total time taken to generate the page: 0.03687 seconds