containers / youki

A container runtime written in Rust

Home Page:https://containers.github.io/youki/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrantfile does not work

minegishirei opened this issue · comments

Hello! this is first time to make issue.

I tried to run youki with vagrant. ( To understand what is container and container runtime)
But it caused 404 error.

Below is the error log.

> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'fedora/33-cloud-base' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 33.20201019.0
==> default: Loading metadata for box 'fedora/33-cloud-base'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/fedora/33-cloud-base
==> default: Adding box 'fedora/33-cloud-base' (v33.20201019.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/fedora/boxes/33-cloud-base/versions/33.20201019.0/providers/virtualbox/unknown/vagrant.box
Download redirected to host: download.fedoraproject.org
    default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 404

And I tried to add image to vagrant box.
It also caused error.

vagrant box add fedora/33-cloud-base
PS C:\Users\mineg\myworking\myworking\code\myworking\code\youki> vagrant box add fedora/33-cloud-base
==> box: Loading metadata for box 'fedora/33-cloud-base'
    box: URL: https://vagrantcloud.com/api/v2/vagrant/fedora/33-cloud-base
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) libvirt
2) virtualbox

Enter your choice: 2
==> box: Adding box 'fedora/33-cloud-base' (v33.20201019.0) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/fedora/boxes/33-cloud-base/versions/33.20201019.0/providers/virtualbox/unknown/vagrant.box
Download redirected to host: download.fedoraproject.org
    box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 40

From this situation, I thought that I should change base image in Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
    config.vm.box = "fedora/33-cloud-base"
    config.vm.box_version = "33.20201019.0"

If that, Should I find any box image and send pull request ?

Hey, can you try with the containerd2youki vagrantfile with

VAGRANT_VAGRANTFILE=Vagrantfile.containerd2youki vagrant up

and see if that works?

In the meantime I'll see what the issue is with default one. Thanks!

Thank you for your reply.
It seems to be started successfuly!

I think fedora/33-cloud-base is not valid box image now.
So I try to use centos image temporarily.

And It also seems to work on my pc.

image

If there is any new progress, I'll contact you.