View previous topic :: View next topic |
Author |
Message |
Jt0 n00b
Joined: 28 Oct 2018 Posts: 33
|
Posted: Wed Apr 24, 2019 1:06 pm Post subject: Unable to set up networking in virt manager for Fedora VM |
|
|
I'm trying to set up networking for a Fedora 30 VM in virt-manager but none of the options work for me. I'm on a laptop that is currently connected to the local network via wifi.
I tried setting up the wireless adapter as follows:
Network source: "Host device wlo1: macvtap"
Source mode: "Bridge"
Device model: "virtio"
I've tried this with "Passthrough" source mode too but I get an error when trying to start the VM with that setup:
Code: | Error starting domain: Cannot set interface MAC to aa:bb:cc:11:22:33 on 'wlo1': Device or resource busy
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 66, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1400, in startup
self._backend.create()
File "/usr/lib64/python3.6/site-packages/libvirt.py", line 1089, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: Cannot set interface MAC to aa:bb:cc:11:22:33 on 'wlo1': Device or resource busy |
Originally, bridge mode didn't work either (it gave an "operation not supported" error) but after I built and installed the kernel with the macvtap modules referenced in this answer on StackExchange the error went away. Now when I start up Fedora, Network Manager will try to connect to "Wired Connection 1" for a couple of minutes with the message "Settng network address" shown beneath the network in the Network Manager menu. After this it gives up.
What else do I need to do to get networking functioning for this VM? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54320 Location: 56N 3W
|
Posted: Wed Apr 24, 2019 6:23 pm Post subject: |
|
|
Jt0,
Do you have USE=virt-network set on app-emulation/libvirt on the host?
I use bridge mode in the guests. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jt0 n00b
Joined: 28 Oct 2018 Posts: 33
|
Posted: Wed Apr 24, 2019 8:13 pm Post subject: |
|
|
Yes, one of the things I tried before enabling the macvtap modules was looking at the USE flags for virt-manager, libvirt, and qemu (not sure if qemu is relevant when using virt-manager, but I checked for any networking-related flags anyway). Setting it and recompiling didn't change anything. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54320 Location: 56N 3W
|
Posted: Wed Apr 24, 2019 8:40 pm Post subject: |
|
|
Jt0,
I run a HP Microserver (Gen 7) as a host for KVMs
Its kernel .config is stripped down the the bare essentials for doing nothing else.
Everything that the machine runs is in a KVM.
Its unlikely you can use it as is but looking if over may give you some ideas.
As my guests are Gentoo I use virtio everywhere. I don't know if Fedora 30 supports that.
QEMU supports emulated hardware for guests. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|