Closed muj85 closed 1 month ago
hi! checkout
https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/website/docs/r/network.markdown
if you find something otherwise we need to provide an example or research a bit. let me know
Hi, thx for the link - I already found that page, but as I understand this requires the configuration of a bridge on the host system, then linking the bridge to the vm using the bridge name: "The bridge network attribute is mandatory in this case"
yes, an example would be great!
hi @MalloZup! any chance to get some docs for this? thx and br
Hi @muj85 some upstream libvirt documentation: https://wiki.libvirt.org/VirtualNetworking.html What exactly do you mean by 'direct host access'?
Hi @scabala,
I solved it using bridge setup with script during kvm host boot process, later moved to systemd network config, works for me.
thank you!
System Information
HP Bare Metal Server
Linux distribution
NAME=Fedora VERSION="29 (Server Edition)"
Terraform version
Terraform v0.12.26
Description of Issue/Question
I would like to give some kvm guests direct network access. manual configuration of a vm guest works and creates the following (eno1 is main interface):
Setup
Installed docker and libvirt on the Host
virbr0 network is internal kvm network virbr1 network created using terraform for guest only communication
Question: how can I create a network config using terraform that uses direct host access (without creating a bridge on the host)?
Additional information:
selinux and firewall disabled