Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows box doesn't support LibVirt #596

Open
gildasio opened this issue Jun 19, 2023 · 3 comments
Open

Windows box doesn't support LibVirt #596

gildasio opened this issue Jun 19, 2023 · 3 comments
Labels

Comments

@gildasio
Copy link

Issue Description

Right now Vagrant file configures win2k8 box to run using libvirt provider but as I can see in Vagrant Cloud there is no such provider available:

image

Host System

  • OS: ArchLinux
  • Packer Version: v1.9.1
  • Vagrant Version: 2.3.6
  • VirtualBox Version: 7.0.8

Command Output

So one that try to get this box up get the error:

$ vagrant up win2k8
Bringing machine 'win2k8' up with 'libvirt' provider...
==> win2k8: Box 'rapid7/metasploitable3-win2k8' could not be found. Attempting to find and install...
    win2k8: Box Provider: libvirt
    win2k8: Box Version: >= 0
==> win2k8: Loading metadata for box 'rapid7/metasploitable3-win2k8'
    win2k8: URL: https://vagrantcloud.com/rapid7/metasploitable3-win2k8
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.

Name: rapid7/metasploitable3-win2k8
Address: https://vagrantcloud.com/rapid7/metasploitable3-win2k8
Requested provider: [:libvirt]

But running it through VirtualBox seems to works:

$ vagrant up --provider=virtualbox win2k8
Bringing machine 'win2k8' up with 'virtualbox' provider...
==> win2k8: Box 'rapid7/metasploitable3-win2k8' could not be found. Attempting to find and install...
    win2k8: Box Provider: virtualbox
    win2k8: Box Version: >= 0
==> win2k8: Loading metadata for box 'rapid7/metasploitable3-win2k8'
    win2k8: URL: https://vagrantcloud.com/rapid7/metasploitable3-win2k8
==> win2k8: Adding box 'rapid7/metasploitable3-win2k8' (v0.1.0-weekly) for provider: virtualbox
    win2k8: Downloading: https://vagrantcloud.com/rapid7/boxes/metasploitable3-win2k8/versions/0.1.0-weekly/providers/virtualbox.box
Progress: ...
@jmartin-tech
Copy link
Contributor

A libvirt build is not currently published to vagrant cloud, only vmware and virtualbox are published by the automation. The Vagrantfile support is there for users who build the VM from scratch on a libvirt environment at this time.

@gildasio
Copy link
Author

gildasio commented Aug 5, 2023

Umm got it. It would be good to have this documented somewhere so others can easily find it.

@bannsec
Copy link

bannsec commented Mar 10, 2024

Agreed, just wasted some time trying to get this stuff to run. The default Vagrantfile should really be updated because, well, by default it's completely broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants