Updated CentOS Vagrant Images Available (v1905.01)

Sunday, 7, July 2019 Laurențiu Păncescu announcement 16 Comments

We are pleased to announce new official Vagrant images of CentOS Linux 6.10 and CentOS Linux 7.6.1810 for x86_64. All included packages have been updated to May 30th, 2019.

Known Issues

  1. The VirtualBox Guest Additions are not preinstalled; if you need them for shared folders, please install the vagrant-vbguest plugin and add the following line to your Vagrantfile:
    config.vm.synced_folder ".", "/vagrant", type: "virtualbox"

    We recommend using NFS instead of VirtualBox shared folders if possible; you can also use the vagrant-sshfs plugin, which, unlike NFS, works on all operating systems.

  2. Since the Guest Additions are missing, our images are preconfigured to use rsync for synced folders. Windows users can either use SMB for synced folders, or disable the sync directory by adding the line
    config.vm.synced_folder ".", "/vagrant", disabled: true

    to their Vagrantfile, to prevent errors on "vagrant up".

  3. Installing open-vm-tools is not enough for enabling shared folders with Vagrant’s VMware provider. Please follow the detailed instructions in https://github.com/mvermaes/centos-vmware-tools
  4. Some people reported "could not resolve host" errors when running the centos/7 image for VirtualBox on Windows hosts. We don't have access to any Windows computer, but some people reported that adding the following line to the Vagrantfile fixed the problem:
    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]

Recommended Setup on the Host

Our automatic testing is running on a CentOS Linux 7 host, using Vagrant 1.9.4 with vagrant-libvirt and VirtualBox 5.1.20 (without the Guest Additions) as providers. We strongly recommend using the libvirt provider when stability is required.

Downloads

The official images can be downloaded from Vagrant Cloud. We provide images for HyperV, libvirt-kvm, VirtualBox and VMware.

If you never used our images before:

vagrant box add centos/6 # for CentOS Linux 6, or...
vagrant box add centos/7 # for CentOS Linux 7

Existing users can upgrade their images:

vagrant box update --box centos/6
vagrant box update --box centos/7

Verifying the integrity of the images

The SHA256 checksums of the images are signed with the CentOS 7 Official Signing Key. First, download and verify the checksum file:

$ curl http://cloud.centos.org/centos/7/vagrant/x86_64/images/sha256sum.txt.asc -o sha256sum.txt.asc
$ gpg --verify sha256sum.txt.asc

Once you are sure that the checksums are properly signed by the CentOS Project, you have to include them in your Vagrantfile (Vagrant unfortunately ignores the checksum provided from the command line). Here's the relevant snippet from my own Vagrantfile, using v1803.01 and VirtualBox:

Vagrant.configure(2) do |config|
  config.vm.box = "centos/7"

  config.vm.provider :virtualbox do |virtualbox, override|
    virtualbox.memory = 1024
    override.vm.box_download_checksum_type = "sha256"
    override.vm.box_download_checksum = "b24c912b136d2aa9b7b94fc2689b2001c8d04280cf25983123e45b6a52693fb3"
    override.vm.box_url = "https://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-1803_01.VirtualBox.box"
  end
end

Feedback

If you encounter any unexpected issues with the Vagrant images, feel free to ask on the centos-devel mailing list, or in #centos on Freenode IRC.

Ackowledgements

I would like to warmly thank Brian Stinson, Fabian Arrotin and Thomas Oulevey for their work on the build infrastructure, as well as Patrick Lang from Microsoft for testing and feedback on the Hyper-V images. I would also like to thank the CentOS Project Lead, Karanbir Singh, without whose years of continuous support we wouldn't have had the Vagrant images in their present form.

I would also like to thank the following people (in alphabetical order):

16 thoughts on "Updated CentOS Vagrant Images Available (v1905.01)"

  1. nqb says:

    Hello,

    Where can I read the changelog between previous version of box.

    I'm not able to find it on http://app.vagrantup.com and I didn't find where you host source code for this images.

    Thanks

    1. Saad Malik says:

      Were you able to find where the host source code is for these images? I would like to see how they're built as well.

      1. Please see the 'vagrant' directory in https://github.com/CentOS/sig-cloud-instance-build, which contain the kickstarts and a shell script that calls Red Hat's Image factory, see imgfac.org, which we use to generate the images for all hypervisors from a single Kickstart installation. Unfortunately, the documentation for ImageFactory is rather thin, so if you'd like to generate your own images, it might be easier to use Packer (I have two branches in my own fork of the official repo, https://github.com/lpancescu/sig-cloud-instance-build that use Packer with VirtualBox and libvirt-kvm for generating unofficial images).

    2. There isn't any single changelog besides the first part of the blog posts announcing the release of a new version. Then again, there haven't been any changes for the last months; we are rebuilding the images to include the latest updates, but there's nothing you wouldn't get by running 'yum update' in an older image. I hope to provide a Vagrant image for CentOS 8 soon after the official ISO becomes available.

  2. nqb says:

    Unfortunately no !

    Any updates ?

  3. Gertjan Bijl says:

    The CentOS6-image for Hyper-V is not booting correctly by default. I need to blacklist the hyperv_fb driver (append hyperv_fb.blacklist=yes to kernel) in order to make it boot OR enable RemoteFX for the VM, otherwise it hangs with some blue blur at the screen.

    VirtualBox version works well, and CentOS7 works well on both Hyper-V and VirtualBox.

    1. Thanks, didn't know that. I'll try to get this in the next release.

  4. Miran says:

    Can you fix issue described here:
    https://bugs.centos.org/view.php?id=16408.

    "After some moment cant start centos7 box in Vagrant. Its messaging what some file miss on the mirror:
    http://vault.centos.org/7.6.1810/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

    I was checked link manually from internet browser and file is really missing there"

  5. willzhang says:

    #i can get box url when i run box add command :

    vagrant box add centos/7

    i will see the url is :
    https://vagrantcloud.com/centos/boxes/7/versions/1905.1/providers/virtualbox.box

    but it's very slowly for chinese to add a box,we hava great firewalld, i want download it from browser,the network will faster.

    so can you provide a url directory? thanks!

  6. George Soros says:

    1. The vagrant page says this image is based on 7.6.1811 (and not 7.6.1810 as this page says)

    2. I cannot manage to import into vagrant this or any of the previous boxes with the vbguest plugin activated because installing the kernel devel packages fails. For some reason yum wants to get them from vault.centos.org and not the main mirror site.

    ```
    The following SSH command responded with a non-zero exit status.
    Vagrant assumes that this means the command failed!

    yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updates
    ```

    1. jack says:

      I got the same issue, vagrant up will faield due to the follwing script:
      yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updates

  7. tomexsans says:

    Having hard time with ssh keeps popping up.

    Disconnected: no supported authentication methods available (server sent: publickey.gssapi-keyex.gssapi-with-mic)

  8. Wayne Drury says:

    Cant SSH login the box once Vagrant bring up.

    Using MobaXTerm->SSH
    Login: vagrant

    ERROR: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

    I dont have this issue with other linux distro like RHEL, Unbuntu, is CentOS7 not setup to same pattern?

    1. JL says:

      Use insecure_private_key to login

    2. Add to your vagrant shell script to allow ssh password login:

      sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config

  9. David Summers says:

    Is there any update to CentOS 7.9 available? Currently the latest one is CentOS 7.8 2004.

    This is causing some issues with trying to use vagrant to install the VirtualBOx Guest Additions.

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *