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

Cannot vagrant up with IP in public network #1786

Open
comminutus opened this issue Oct 30, 2023 · 0 comments
Open

Cannot vagrant up with IP in public network #1786

comminutus opened this issue Oct 30, 2023 · 0 comments

Comments

@comminutus
Copy link

Describe the bug
I am trying to run vagrant up on a box with a public_network and would like to manually set the IP. I get the following exception when I invoke vagrant up:

/usr/share/gems/gems/fog-libvirt-0.9.0/lib/fog/libvirt/requests/compute/vm_action.rb:7:in `create': Call to virDomainCreateWithFlags failed: error creating macvtap interface macvtap0@enp115s0 (52:54:00:2c:2d:c0): Operation not permitted (Libvirt::Error)

To Reproduce

  1. Create a directory with the Vagrantfile described below
  2. Run vagrant up inside that directory
  3. Observe exception

Expected behavior
The vagrant up command should succeed without an error. The virtual machine created should be accessible on the IP address specified in the Vagrantfile on my local network. It should be accessible by other machines on the same network.

Versions (please complete the following information)::

  • Libvirt version: 0.7.0 system
  • Vagrant version [output of vagrant version]: v2.2.19
  • Vagrant flavour [Upstream or Distro]: Distro (Fedora Silverblue, installed via rpm-ostree install vagrant)
  • Vagrant plugins versions (including vagrant-libvirt) [output of vagrant plugin list]: (only vagrant-libvirt listed above)

Debug Log
Attach Output of VAGRANT_LOG=debug vagrant ... --provider=libvirt >vagrant.log 2>&1

[vagrant.log](https://github.com/vagrant-libvirt/vagrant-libvirt/files/13206617/vagrant.log)

A Vagrantfile to reproduce the issue:

Vagrant.configure('2')  do |config|
  config.vm.box = 'bento/almalinux-8.8'
  config.vm.network 'public_network', dev: 'enp115s0', ip: '10.100.0.15'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant