Install on centos 6.5 on ovh vps

# yum --enablerepo=* clean all
Loaded plugins: fastestmirror
Cleaning repos: C6.0-base C6.0-centosplus C6.0-contrib C6.0-extras C6.0-updates
              : C6.1-base C6.1-centosplus C6.1-contrib C6.1-extras C6.1-updates
              : C6.2-base C6.2-centosplus C6.2-contrib C6.2-extras C6.2-updates
              : C6.3-base C6.3-centosplus C6.3-contrib C6.3-extras C6.3-updates
              : C6.4-base C6.4-centosplus C6.4-contrib C6.4-extras C6.4-updates
              : base c6-media centos-base centos-updates centosplus contrib
              : debug extras fasttrack nethserver-base nethserver-testing
              : nethserver-updates updates
Cleaning up Everything
Cleaning up list of fastest mirrors
# yum --enablerepo=* repolist --verbose
Loading "fastestmirror" plugin
Config time: 0.013
Yum Version: 3.2.29
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-base

Ok thank you for your patience. It seems like yum is not parsing the repo configuration correctly.

I guess the file /etc/yum.repos.d/NethServer.repo can be corrupted. Could you compare it with this?

Also output of rpm -Vf /etc/yum.repos.d/* can help.

I have to thank you for help.

I compared link with NethServer.repo on my server and are the same.

This is output

]#  rpm -Vf /etc/yum.repos.d/*
S.5....T.  c /etc/issue
S.5....T.  c /etc/yum.repos.d/CentOS-Base.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Debuginfo.repo
.......T.  c /etc/yum.repos.d/CentOS-Media.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Vault.repo
.......T.  c /etc/yum.repos.d/CentOS-fasttrack.repo
.......T.  c /etc/yum/vars/infra
file /etc/yum.repos.d/CentOS-Base.repo.rpmnew is not owned by any package
S.5....T.  c /etc/issue
S.5....T.  c /etc/yum.repos.d/CentOS-Base.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Debuginfo.repo
.......T.  c /etc/yum.repos.d/CentOS-Media.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Vault.repo
.......T.  c /etc/yum.repos.d/CentOS-fasttrack.repo
.......T.  c /etc/yum/vars/infra
file /etc/yum.repos.d/CentOS-Debuginfo.repo.rpmnew is not owned by any package
S.5....T.  c /etc/issue
S.5....T.  c /etc/yum.repos.d/CentOS-Base.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Debuginfo.repo
.......T.  c /etc/yum.repos.d/CentOS-Media.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Vault.repo
.......T.  c /etc/yum.repos.d/CentOS-fasttrack.repo
.......T.  c /etc/yum/vars/infra
S.5....T.  c /etc/issue
S.5....T.  c /etc/yum.repos.d/CentOS-Base.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Debuginfo.repo
.......T.  c /etc/yum.repos.d/CentOS-Media.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Vault.repo
.......T.  c /etc/yum.repos.d/CentOS-fasttrack.repo
.......T.  c /etc/yum/vars/infra
S.5....T.  c /etc/issue
S.5....T.  c /etc/yum.repos.d/CentOS-Base.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Debuginfo.repo
.......T.  c /etc/yum.repos.d/CentOS-Media.repo
S.5....T.  c /etc/yum.repos.d/CentOS-Vault.repo
.......T.  c /etc/yum.repos.d/CentOS-fasttrack.repo
.......T.  c /etc/yum/vars/infra
file /etc/yum.repos.d/CentOS-Vault.repo.rpmnew is not owned by any package

Digging around it seems OVH does not provide a vanilla CentOS installation on its VMs. Anybody can confirm it?

I’m almost sure the YUM configuration is different from what NethServer expects, but I can’t say where. Maybe its CentOS-Base.repo, or /etc/yum/vars contents…

This is centos base.repo

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

in etc/yum/vars there are 2 filese
distroversion that conaint simply - 6.6
and infra that have only - stock

[root@ yum.repos.d]# cd /etc/yum.repos.d
[root@ yum.repos.d]# ls -l
total 44
-rw-r–r-- 1 root root 1926 Mar 25 16:09 CentOS-Base.repo
-rw-r–r-- 1 root root 1991 Mar 25 16:09 CentOS-Base.repo.rpmnew
-rw-r–r-- 1 root root 638 Mar 25 16:09 CentOS-Debuginfo.repo
-rw-r–r-- 1 root root 647 Mar 25 16:09 CentOS-Debuginfo.repo.rpmnew
-rw-r–r-- 1 root root 289 Mar 25 16:09 CentOS-fasttrack.repo
-rw-r–r-- 1 root root 630 Mar 25 16:09 CentOS-Media.repo
-rw-r–r-- 1 root root 4528 Mar 25 16:09 CentOS-Vault.repo
-rw-r–r-- 1 root root 5394 Mar 25 16:09 CentOS-Vault.repo.rpmnew
-rw-r–r-- 1 root root 1681 Mar 18 09:37 NethServer.repo

That’s puzzling!

What’s the content of that file?

What’s the output of

curl -v -L 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os'
# curl -v -L 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os'
* About to connect() to mirrorlist.centos.org port 80 (#0)
*   Trying 2a02:2498:1:3d:5054:ff:fed3:e91a... connected
* Connected to mirrorlist.centos.org (2a02:2498:1:3d:5054:ff:fed3:e91a) port 80 (#0)
> GET /?release=6&arch=x86_64&repo=os HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: mirrorlist.centos.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.0.15
< Date: Thu, 26 Mar 2015 15:23:32 GMT
< Content-Type: text/plain
< Connection: keep-alive
< Content-Length: 507
<
http://mirror-fr1.bbln.org/centos/6/os/x86_64/
http://mirrors.ircam.fr/pub/CentOS/6/os/x86_64/
http://ftp.rezopole.net/centos/6/os/x86_64/
http://ftp.ciril.fr/pub/linux/centos/6/os/x86_64/
http://centos.mirrors.ovh.net/ftp.centos.org/6/os/x86_64/
http://mirrors.modern.host/CentOS/6/os/x86_64/
http://mirror-fr2.bbln.org/centos/6/os/x86_64/
ftp://mirror.aarnet.edu.au/pub/centos/6/os/x86_64/
ftp://mirror.us.oneandone.net/linux/distributions/centos/6/os/x86_64/
http://ftp.heanet.ie/pub/centos/6/os/x86_64/
* Connection #0 to host mirrorlist.centos.org left intact
* Closing connection #0

So, gave up with ovh.

Someone used another vps for testing ?

Just for fun I’ve tried to install NS on Amazon EC2 and I’ve found it pretty easy to do.

I don’t know if it is of your iinterest, but I’ve write a simple How to of the steps here

1 Like

If someone can give me SSH access to a running clean machine, I can give it a try!

I set you a Message with credential. Server has been reseted.

I just successfully installed NethServer on OVH, but there are some problems accessing centos-base and centos-updates from NethServer.repo.

OVH machines resolve host names with IPv6 and CentOS mirror report different answers if queried with IPv4 or IPv6.

To install NethServer on OVH:

yum localinstall -y http://mirror.nethserver.org/nethserver/nethserver-release-6.6.rpm
rpm --import /etc/pki/rpm-gpg/*
yum --disablerepo=* --enablerepo=nethserver-base,nethserver-updates,base,updates install @nethserver-iso
/sbin/e-smith/signal-event system-init
eorepo nethserver-base nethserver-updates base updates

Also, at the end of the system-init event the machine was stuck and required a reboot.

At the end, I would suggest Digital Ocean over OVS at least for NethServer installations.

Thanks to @enrilor for the collaboration :smile:

P.S. If someone needs more technical details about the problem, please feel free to ask.

4 Likes

I tried few times to install NethServer over CentOS 6.6 x64
with the OVH Kernel, with the distribution Kernel,…
everytime it finishing by an unrebootable server (I think I have a kernel panic)

I also figure this : /sbin/e-smith/signal-event system-init eorepo nethserver-base nethserver-updates base updates
was one line :wink:

And finaly I figured, how to install CentOS from scratch with those instructions
http://forum.ovh.co.uk/showthread.php?4991-CentOS-Stock-Install-Kimsufi-OVH-VNC-Method
and now NethServer working well on my OVH :smiley_cat:

BTW: In what DigitalOcean is different, I means why It’s easier with them ?

1 Like

These seems small howto for NethServer on ovh, nice!

Never had a single problem installing on DigitalOcean, maybe they use a standard CentOS…

I moved a post to a new topic: Install NetServer on OVH

yes but on digitalocean you have no storage space…ok ssd is cool but if i need a sata/sas disk ? something like >500GB

Just buy a bigger machine! :grin:

1 Like

I moved a post to a new topic: Using NethServer on vCloud of VMWare

A post was split to a new topic: Pb vith NethServer 6,7 and Vserve