c0c0n3 / kitt4sme.live

On a mission to bring AI to the shop floor: https://kitt4sme.eu/
MIT License
1 stars 28 forks source link

VM kitt4sme.collab-cloud.eu creation in windows 10 error #202

Open INVENTIOai opened 1 year ago

INVENTIOai commented 1 year ago

Describe the bug

A clear and concise description of what the bug is. When I try to create VM by Vagrant (see tutorial: https://github.com/c0c0n3/kitt4sme.live/blob/main/docs/bootstrap.md), in Windows 10 OS I have follow error:

Microsoft Windows [Versione 10.0.22621.1413] ==> kitt4sme: Adding box 'kitt4sme/single_node_cluster' (v0.1.0) for provider: virtualbox kitt4sme: Downloading: https://vagrantcloud.com/kitt4sme/boxes/single_node_cluster/versions/0.1.0/providers/virtualbox.box kitt4sme: ==> kitt4sme: Successfully added box 'kitt4sme/single_node_cluster' (v0.1.0) for 'virtualbox'! ==> kitt4sme: Importing base box 'kitt4sme/single_node_cluster'... Progress: 70%There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "\\?\C:\Users\enric\.vagrant.d\boxes\kitt4sme-VAGRANTSLASH-single_node_cluster\0.1.0\virtualbox\box.ovf", "--vsys", "0", "--vmname", "kitt4sme_1678971946803_15122", "--vsys", "0", "--unit", "10", "--disk", "C:/Users/enric/VirtualBox VMs/kitt4sme_1678971946803_15122/box-disk001.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting \?\C:\Users\enric.vagrant.d\boxes\kitt4sme-VAGRANTSLASH-single_node_cluster\0.1.0\virtualbox\box.ovf... OK. 0%...E_INVALIDARG VBoxManage.exe: error: Appliance import failed VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) (extended info not available) VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 1416 of file VBoxManageAppliance.cpp

doing same action in Ubuntu 20 OS, the VM works fine

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    • install vagrant with virtualbox provider
    • go in vm folder
    • run: vagrant up
    • ERROR

Expected behavior

A clear and concise description of what you expected to happen.

Avalability to run the VM kitt4sme.collab-cloud.eu in a Win10 system

Additional context

Add any other context about the problem here.

c0c0n3 commented 1 year ago

Hi @INVENTIOai :-)

It looks like Vagrant is trying to download a prebuilt Kitt4sme image? Possibly an old image we used two years ago for demos. You should not use that image, but rather build the cluster as explained in the bootstrap procedure. An easy way to do that for testing purposes is to use Multipass as explained in the bootstrap docs.

c0c0n3 commented 1 year ago

@karikolehmainen @kostasgrevenitis we need to improve docs for open call devs. This issue is just another instance of someone bumping in a dark corner. Not sure where @INVENTIOai got the idea of using Vagrant, but we probably have some docs somewhere that mention the old Vagrant image we built two years ago.

Speaking of docs woes, see also: #201, #177

INVENTIOai commented 1 year ago

We followed the tutorial of the virtual machine in order to do a quick setup and to make an first evaluation of the platform. The next steps will be to create an installation as suggested in same tutorial. Do you confirm that the paragraph:

_

Cluster Bootstrap One-off procedure to build & set up your KITT4SME mesh infra.

We're going to put together a single-node MicroK8s cluster to host the KITT4SME platform. What we'll build is pretty much the same as in the Demo Cluster, but we're swapping out Minikube for MicroK8s so we can still start small but then easily add more nodes in the future.

We've got an Ubuntu VM at kitt4sme.collab-cloud.eu to host the platform. (Ubuntu 20.04.1 LTS, GNU/Linux 5.4.0-42-generic x86_64, 8 CPUs, 16GB RAM/4GB swap, 120GB storage.) You can SSH into the box with e.g.

$ ssh martel@kitt4sme.collab-cloud.eu The instructions below tell you what to do to build the platform on this box, but if you want to try this at home any Ubuntu box with the same specs will do. If you have Multipass, you can spin up a 20.4 Ubuntu VM

$ multipass launch --name kitt4sme --cpus 2 --mem 4G --disk 40G 20.04 $ multipass shell kitt4sme and then follow the instructions below. Keep in mind, depending on what you'll do with your toy platform later, you might need more RAM and storage. _

shall be ignored because not more update?

c0c0n3 commented 1 year ago

hi @INVENTIOai :-)

If you just want to try out the platform, install Multipass on your Windows machine

Then create an Ubuntu VM to host a one-node cluster

multipass launch --name kitt4sme --cpus 4 --mem 16G --disk 80G 20.04

and shell into the VM

multipass shell kitt4sme

(I haven't tried those commands on Windows so you might have to tweak something, please have a look at the Multipass docs if you have any trouble.)

Once you're in the VM, follow the bootstrap procedure from the Tools section onwards

Keep in mind you'll need to generate the initial secrets to use with the new cluster as explained in the security how-to.

At the end of the procedure you'll have a clone of our kitt4sme reference cluster implementation running on kitt4sme.collab-cloud.eu. The ArgoCD in your clone will monitoring

for updates and deploy them to your VM. Not sure this is what you want? Probably the best thing to do is ask your mentor for advice. Most likely you'll have to create your own repo instead of using https://github.com/c0c0n3/kitt4sme.live?

Hope this helps!