Jump to content


Photo

Xenserver 7.0 Repositories

Started by Andre Freire , 16 June 2016 - 07:53 PM
14 replies to this topic

Best Answer Willem Boterenbrood , 21 June 2016 - 10:05 AM

Edit repositories

vi /etc/yum.repos.d/CentOS-Base.repo

 

change #baseurl lines of the repo's you want:

1) uncomment baseurl line (remove #)

2) replace $releasever with 7.2.1511

 

enable repo's you want:

1) change enabled=0 to enabled=1

 

save the file (i=insert, escape=stop_insert_mode, :wq=save and exit)

 

check repositories:

yum -v repolist all

 

install xfsprogs

yum -i xfsprogs

 

done

Andre Freire Members

Andre Freire
  • 4 posts

Posted 16 June 2016 - 07:53 PM

Hy,

 

I use xenserver 6.5 in my production environment, but I start tests with xenserver 7.0 and I need install some packges using YUM. When I try yum update I receive "Cannot find a valid base url for repo: base/7-2.1511.el7.centos.2.10/x86_64.

 

I enable BASE repo but don't work.

 

Anyone can help me, please.

 

Kind Regards.

 

 

 

 

 



Boby John Members

Boby John
  • 782 posts

Posted 17 June 2016 - 10:57 AM

Hi Andre,

 

Citrix does not support any yum installation on the dom0 - so that could be the main reason.

 

In XenServer 6.5 I see that there is a Citrix repo inside /etc/yum.repos.d

But in 7.0 , we dont see any repo with that name at all.

 

Even in XenServer 6.5 , the base-url was pointing to a non-working link. In Xenserver 7.0 , I see all the repos are disabled.

 

[root@xenserver7 yum.repos.d]# yum repolist all
Loaded plugins: fastestmirror
repo id                                    repo name                    status
base/7-2.1511.el7.centos.2.10/x86_64       CentOS-7-2.1511.el7.centos.2 disabled
base-debuginfo/x86_64                      CentOS-7 - Debuginfo         disabled
base-source/7-2.1511.el7.centos.2.10       CentOS-7-2.1511.el7.centos.2 disabled
centosplus/7-2.1511.el7.centos.2.10/x86_64 CentOS-7-2.1511.el7.centos.2 disabled
centosplus-source/7-2.1511.el7.centos.2.10 CentOS-7-2.1511.el7.centos.2 disabled
extras/7-2.1511.el7.centos.2.10/x86_64     CentOS-7-2.1511.el7.centos.2 disabled
extras-source/7-2.1511.el7.centos.2.10     CentOS-7-2.1511.el7.centos.2 disabled
updates/7-2.1511.el7.centos.2.10/x86_64    CentOS-7-2.1511.el7.centos.2 disabled
updates-source/7-2.1511.el7.centos.2.10    CentOS-7-2.1511.el7.centos.2 disabled
repolist: 0

 

There are 2 things that you can try.

 

1. Change the current Repositories from disabled o enabled.

 

2. Create a custom Repository.



Andre Freire Members

Andre Freire
  • 4 posts

Posted 17 June 2016 - 12:04 PM

Hi Boby,

 

How I say in first post I enable the repository but don't work. I see that Citrix repositories don't exist but CentOS exist.

 

for example if I want install xfsprogs to create a local SR with xfs file system I cannot because repositories still don`t work.



Pedro Borges Members

Pedro Borges
  • 3 posts

Posted 20 June 2016 - 05:13 PM

Hi,

 

I have exacly the same problem. I tried to enable the CentOS's repositories too, but it didn't work.

 

Can anybory work around it?



Willem Boterenbrood Members

Willem Boterenbrood
  • 119 posts

Posted 21 June 2016 - 10:05 AM

Edit repositories

vi /etc/yum.repos.d/CentOS-Base.repo

 

change #baseurl lines of the repo's you want:

1) uncomment baseurl line (remove #)

2) replace $releasever with 7.2.1511

 

enable repo's you want:

1) change enabled=0 to enabled=1

 

save the file (i=insert, escape=stop_insert_mode, :wq=save and exit)

 

check repositories:

yum -v repolist all

 

install xfsprogs

yum -i xfsprogs

 

done


Best Answer

Pedro Borges Members

Pedro Borges
  • 3 posts

Posted 21 June 2016 - 12:13 PM

Hi Willen,

 

Thanks a lot for the tip. I'd just needed to adjust the release to '7.2.1511' (the yum didn't find the 7.2.11), and then, I managed to install the packets!

 

The problem was solved to me.

 

Best regards.



Andre Freire Members

Andre Freire
  • 4 posts

Posted 21 June 2016 - 12:28 PM

Hi Willen,

 

Thanks, work to me too.

 

Kind regards.



Willem Boterenbrood Members

Willem Boterenbrood
  • 119 posts

Posted 21 June 2016 - 01:20 PM

Sorry for the typo. I fixed it now.

Good to hear it works for you also.



Nash Oudha Citrix Employees

Nash Oudha
  • 5 posts

Posted 07 October 2016 - 08:20 AM

Modifying dom0 by installing any non Citrix software will break any support contract you go with Citrix. so be careful.



Tobias Kreidl CTP Member
  • #10

Tobias Kreidl
  • 18,448 posts

Posted 07 February 2017 - 09:17 PM

Getting repos to work again under XS 7.0 involves updating the base repo version this time from from 7.2.1511 to 7.3.1511. So far, so good. But the attempts to get Dell firmware still do not work for the command: yum install dell_ft_install

 

after running: wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi |bash

(actually, using 143.166.244.62 as the URL instead because of the inability of XenServer to resolve a lot of names for some reason).

 

In any case, listing the repos shows:

dell-system-update_dependent/7-2.1511.el7.centos.2.10/x86_64 d enabled:       56
dell-system-update_independent                               d enabled:      52

 

and I have a file "dell-system-update.repo" in the yum repos area. I'm using a proxy to get to yum externally, but that doesn't seem to be the issue. In fact, I can run this same command on pretty much any Linux box, including RHEL 6, and get the same error message:

# yum install dell_ft_install
Loaded plugins: fastestmirror
dell-system-update_dependent                             | 2.3 kB     00:00     
http://143.166.224.62/com/repo/hardware/latest/os_independent/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

Loading mirror speeds from cached hostfile
No package dell_ft_install available.
Error: Nothing to do

 

Did something drastic change with the Dell firmware updating mechanism? Any ideas what else to try?

 

-=Tobias



Tobias Kreidl CTP Member
  • #11

Tobias Kreidl
  • 18,448 posts

Posted 07 February 2017 - 09:18 PM

Sorry, duplicate post: deleted.



Jonathan Temple Members
  • #12

Jonathan Temple
  • 2 posts

Posted 13 February 2017 - 07:44 PM

Hey Tobias,

 

Try changing your baseurl for the base repo to http://mirror.centos.org/centos/7/os/$basearch/

 

I ran into this same issue after some updates and this is what resolved it for me.

 

Best of luck.



Tobias Kreidl CTP Member
  • #13

Tobias Kreidl
  • 18,448 posts

Posted 14 February 2017 - 02:40 AM

The dsu utility installs fine and is much more flexible, thought it does also take these "fixes": to make access to the Dell utilities possible. Instead, run:

 

wget -q -O - http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash

yum install dell-system-update

 

and use the dsu utility for various upgrade, downgrade and listing options.



Martin Berard Members
  • #14

Martin Berard
  • 159 posts

Posted 24 February 2017 - 06:13 PM

An now 7.3.1611.

 

Why not just using 7, as stated in the readme file? 

 

Martin



Tobias Kreidl CTP Member
  • #15

Tobias Kreidl
  • 18,448 posts

Posted 24 February 2017 - 07:12 PM

I have come up with another, simpler way to accomplish this for XenServer 7.X.  See this:  https://www.mycugc.org/blog/direct-updating-of-modern-dell-server

 

-=Tobias