Hello,
I need to be able to access a process on my host (CentOS 7.9) from a guest VM I created with virt-manager. I followed the steps here,
6.4. Bridged Networking
Procedure 6.1. Creating a bridge with virt-manager
that seemed to be what I was looking for. This is what I did,
- with the VM shutdown, edit > connection details > network interfaces
- click “+” to configure a new interface
- select “bridge” and click “forward”
- the name was br1 so I just left that, set “start mode” to “on boot”
- the instructions say to make necessary changes to “IP settings” or “Bridge settings”, there is no indication as to what those changes should be, under IP configuration the options are to copy the configuration or configure manually. I have no idea what to do here so I just let it as it was. It seems like it should at least have an address but I have no idea.
- choose the physical interface to connect to, the options are lo Ethernet or vibro-0-nic Ethernet. I chose vibro because I know that was installed with KVM and is running (at least some of the time) on the host.
- click “finish”
- the instructions say to select the new bridge from the list and click “apply” but the apply button is grayed out and doesn’t do anything. I just closed the window because there were no other options.
After completing these steps I opened my VM and clicked on the hardware details icon (light bulb). I clicked on the add hardware “+” and chose “network”. This VM was set up without a network adapter. For network source, I chose the new bridge adapter that now appears in the list with device model rtl8139 and whatever MAC was already listed and clicked on “finish”.
When I start the VM I immediately get the error,
Error starting domain: Cannot get interface MTU on 'br1': No such device
traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1506, in startup
self._backend.create()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1080, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Cannot get interface MTU on 'br1': No such device
I thought I was making progress. The output of ip a is
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 10:bf:48:7f:33:b1 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.27/24 brd 192.168.10.255 scope global noprefixroute dynamic eno1
valid_lft 207450sec preferred_lft 207450sec
inet6 fe80::df21:9a3e:254b:fd01/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:1f:1c:b3 brd ff:ff:ff:ff:ff:ff
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:1f:1c:b3 brd ff:ff:ff:ff:ff:ff
in case that is useful. I expect that I should see my new “br1” in this output but I don’t. I think that is a bad sign.
Can anyone let me know what to do next?
LMHmedchem