Home » Linux OS and Software » How-To » Upgrade Gentoo to Baselayout 2 + OpenRC
Tue, 10 May 2011 08:08 Go to next message
Registered: May 2011
Messages: 2
Hi,

I would like to know if someone upgraded a Gentoo VPS to latest stable Baselayout 2 + OPENRC.

I tried the upgrade on 9 May, following this guide [url=http://www.gentoo.org/doc/en/openrc-migration.xml], but without success.

I fixed /etc/rc.conf and /etc/conf.d/net but I was not able to login after reboot.

VPSville support confirmed the server was not able to bind to network interfaces.

Moreover I don't know if the new syntax for /etc/conf.d/net is fine, as it seems that file is overwritten after each boot.

Anyone experienced on OPENRC with GENTOO on VPSVILLE?

Best Regards

Lorenzo
Tue, 10 May 2011 20:54 Go to previous messageGo to next message
Registered: April 2009
Messages: 14
Yes, I'm experienced with it, though I've migrated to a different host. I used to run openrc and baselayout2 from ~x86 for about a year with vpsville so it's definitely possible (or at least it was).

What I remember is that leaving /etc/conf.d/net in the old format still worked with openrc, though that might not be the case now as they're migrating it to x86. And yes, VPSville generates that file for you so you bind to the right address, not sure if there's a better way for them to do static bindings.

I also don't remember having to do anything fancy in rc.conf, I think i only turned on logging and left it at that.

I still have my old backups so if you think seeing some of my old files might help ask and i'll consult my archives.

Patrik
Mon, 16 May 2011 06:19 Go to previous message
Registered: May 2011
Messages: 2
I did another try as Patrick suggested, leaving the /etc/conf.d/net in the old format and I finally could upgrade to Baselayout 2 + OpenRC.

Indeed, it was quite simple:
I have just changed the subsystem type in /etc/rc.conf, I enabled ip_forwarding in sysctl and reboot.

Everything is running fine and updated.

I am including changes I did in /etc/rc.conf and /etc/sysctl.conf for your convenience.

Regards

lorenzo

--

--- /etc/rc.conf.orig   2011-05-14 12:02:13.000000000 +0200
+++ /etc/rc.conf        2011-05-15 12:43:43.000000000 +0200
@@ -45,7 +45,7 @@
 # /var/log/rc.log
 # NOTE: Linux systems require the devfs service to be started before
 # logging can take place and as such cannot log the sysinit runlevel.
-#rc_logger="YES"
+rc_logger="YES"

 # By default we filter the environment for our running scripts. To allow other
 # variables through, add them here. Use a * to allow all variables through.
@@ -131,7 +131,7 @@
 #
 # This should be set to the value representing the environment this file is
 # PRESENTLY in, not the virtualization the environment is capable of.
-#rc_sys=""
+rc_sys="openvz"

 ##############################################################################
 # LINUX SPECIFIC OPTIONS


--- /etc/sysctl.conf.old 2011-05-14 12:03:02.000000000 +0200
+++ /etc/sysctl.conf     2011-05-15 12:27:01.000000000 +0200
@@ -10,7 +10,7 @@
 #

 # Disables packet forwarding
-net.ipv4.ip_forward = 0
+net.ipv4.ip_forward = 1
 # Disables IP dynaddr
 #net.ipv4.ip_dynaddr = 0
 # Disable ECN


Previous Topic:How do I transfer files between 2 VPS
Next Topic:HIB firewall
Goto Forum:
  


Current Time: Sat Oct 21 19:04:32 EDT 2017
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2006 FUD Forum Bulletin Board Software