Article ID: 116595, created on Jul 31, 2013, last review on Apr 13, 2016

  • Applies to:
  • Virtuozzo

Information

To speed up updates installation on the number of Virtuozzo hosts, it is possible to create a local mirror with the updates.

Creating a Virtuozzo mirror

  1. Install yum-utils and createrepo packages:

    For CentOS / RHEL:

    # yum install yum-utils createrepo
    

    For Debian / Ubuntu:

    # apt-get install yum-utils createrepo
    

    NOTE: you might have to configure additional repository to be able to install these packages on a Debian-based system.

  2. Create repository file:

    # touch /etc/yum.repos.d/virtuozzo.repo
    

    Copy data from original repository file /etc/yum.repos.d/virtuozzo.repo located on one of the Virtuozzo hosts to repo file you just created. By default the file has following contents:

    [virtuozzo]
    name=Virtuozzo Base
    mirrorlist=http://updates.virtuozzo.com/mirrors/cloudserver/6.0/base
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/PARALLELS_GPG_KEY
    
    [virtuozzo-updates]
    name=Virtuozzo Updates
    mirrorlist=http://updates.virtuozzo.com/mirrors/cloudserver/6.0/updates
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/PARALLELS_GPG_KEY
    
    [virtuozzo-debuginfo]
    name=Virtuozzo Debug and Devel packages
    mirrorlist=http://updates.virtuozzo.com/mirrors/cloudserver/6.0/debug
    # Debug info repository will be enabled either by debuginfo-install or by parallels-devel-tools.sh
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/PARALLELS_GPG_KEY
    
  3. Create folder where mirror will be located:

    # mkdir /myrepo/virtuozzo
    

    If you want to create updates repository as well, you should create additional folder for virtuozzo-updates repodata.

  4. Fetch packages from repository:

    # reposync -r virtuozzo -p /myrepo/virtuozzo
    

    If you want to create updates repository as well, you should repeat this command for virtuozzo-updates repo id.

  5. Create repository:

    # createrepo /myrepo/virtuozzo
    

    If you want to create updates repository as well, you should repeat this command for virtuozzo-updates repository location.

Creating a VirtuozzoLinux mirror

Starting from Virtuozzo update 11, the default operating system is VurtuozzoLinux. To create a VirtuozzoLinux local repository, repeat the previous steps for virtuozzolinux-base and virtuozzolinux-updates repositories. The default repo file has the following content:

[virtuozzolinux-base]
name=VirtuozzoLinux-$releasever - Base
#mirrorlist=http://repo.virtuozzolinux.com/virtuozzolinux/mirrorlists/virtuozzolinux-$releasever-$basearch-os.mirrorlist
baseurl=http://repo.virtuozzo.com/vzlinux/6/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/PARALLELS_GPG_KEY

#released updates
[virtuozzolinux-updates]
name=VirtuozzoLinux-$releasever - Updates
#mirrorlist=http://repo.virtuozzolinux.com/virtuozzolinux/mirrorlists/virtuozzolinux-$releasever-$basearch-updates.mirrorlist
baseurl=http://repo.virtuozzo.com/vzlinux/6/$basearch/updates/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/PARALLELS_GPG_KEY

[virtuozzolinux-base-debuginfo]
name=VirtuozzoLinux-$releasever - Base
#mirrorlist=http://repo.virtuozzolinux.com/virtuozzolinux/mirrorlists/virtuozzolinux-$releasever-$basearch-os.mirrorlist
baseurl=http://repo.virtuozzo.com/vzlinux/6/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/PARALLELS_GPG_KEY

Search Words

parallels-cloud-server-updates

reposync

repository

virtuozzolinux

virtuozzo repo

virtuozzo

repo

mirror

parallels-cloud-server

virtuozzo repository

createrepo

yum-utils

virtuozzolinux repo

0dd5b9380c7d4884d77587f3eb0fa8ef 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF