<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Host ifconfig.  The only strange thing here is virbr0, which has the same IP address as the virbr0 on the guest, and I'm not really sure what it does.  I did have to add a bridge and TAP interface for a different QEMU run, but that was on a different IP address,
 so I don't think it's related?  (<span data-code-lang="" data-ds--code--code-block="" class="prismjs css-10fl9lg"><code>ifconfig br0 192.168.2.1 netmask 255.255.255.0 promisc up;</code></span><span data-code-lang="" data-ds--code--code-block="" class="prismjs css-10fl9lg"><code>
</code></span><span data-code-lang="" data-ds--code--code-block="" class="prismjs css-10fl9lg"><code>ip tuntap add tap0 mode tap;</code></span><span data-code-lang="" data-ds--code--code-block="" class="prismjs css-10fl9lg"><code> ifconfig tap0 192.168.2.2/30</code></span>
 )  I think that go removed on a reboot.  Anyway, here's the Host ifconfig. :</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
<div>        inet 10.251.13.178  netmask 255.255.252.0  broadcast 10.251.15.255</div>
<div>        inet6 fe80::bbed:c35d:746a:309f  prefixlen 64  scopeid 0x20<link></div>
<div>        ether 6c:2b:59:e9:44:49  txqueuelen 1000  (Ethernet)</div>
<div>        RX packets 37451448  bytes 18352095515 (17.0 GiB)</div>
<div>        RX errors 15  dropped 130  overruns 0  frame 9</div>
<div>        TX packets 110265614  bytes 147787762125 (137.6 GiB)</div>
<div>        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</div>
<div>        device interrupt 16  memory 0x90380000-903a0000  </div>
<div><br>
</div>
<div>lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536</div>
<div>        inet 127.0.0.1  netmask 255.0.0.0</div>
<div>        inet6 ::1  prefixlen 128  scopeid 0x10<host></div>
<div>        loop  txqueuelen 1000  (Local Loopback)</div>
<div>        RX packets 539825  bytes 98281872 (93.7 MiB)</div>
<div>        RX errors 0  dropped 0  overruns 0  frame 0</div>
<div>        TX packets 539825  bytes 98281872 (93.7 MiB)</div>
<div>        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</div>
<div><br>
</div>
<div>virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500</div>
<div>        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255</div>
<div>        ether 52:54:00:40:58:59  txqueuelen 1000  (Ethernet)</div>
<div>        RX packets 0  bytes 0 (0.0 B)</div>
<div>        RX errors 0  dropped 0  overruns 0  frame 0</div>
<div>        TX packets 66  bytes 10560 (10.3 KiB)</div>
<span>        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">> Also, can you please post the <interface/> part of the 'virsh dumpxml'?</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt"><br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">Sorry, I couldn't figure this one out:</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt"></span></font>$ virsh dumpxml<br>
error: command 'dumpxml' requires <domain> option</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
# So which domain?</div>
$ virsh list --all
<div> Id   Name   State</div>
--------------------<br>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
$</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
# there don't seem to be any domains?  Even though the VM is currently running?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Jim<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Michal Prívozník <mprivozn@redhat.com><br>
<b>Sent:</b> Monday, July 12, 2021 2:52 AM<br>
<b>To:</b> Leek, Jim <leek2@llnl.gov>; virt-tools-list@redhat.com <virt-tools-list@redhat.com><br>
<b>Subject:</b> Re: RHEL 8 virt-manager with qemu-4.2.0, can't connect network</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hey,<br>
<br>
On 7/10/21 2:49 AM, Leek, Jim wrote:<br>
> This seems like it should be very easy, so I must be missing something,<br>
> but I cannot get my guest to communicate with my host or with the<br>
> internet.   I really jsut need some way to get files across, the guest<br>
> doesn't even need internet access.<br>
> The host is RHEL 8.4, the guest is CentOS 8.  <br>
> Everything is installed from the yum repos, so it's all default, but my<br>
> corporate IT environment is pretty locked down.  So that might be related.<br>
> I tried to use a shared drive, but apparently that is disabled in RHEL 8.<br>
> By default the network is 'NAT' with virtio.  <br>
> Here's my guest ifconfig:<br>
> enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>
>         ether 6c:2b:59:e9:44:50  txqueuelen 1000  (Ethernet)<br>
>         RX packets 38  bytes 4953 (4.8 KiB)<br>
>         RX errors 0  dropped 7  overruns 0  frame 0<br>
>         TX packets 0  bytes 0 (0.0 B)<br>
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br>
> <br>
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536<br>
>         inet 127.0.0.1  netmask 255.0.0.0<br>
>         inet6 ::1  prefixlen 128  scopeid 0x10<host><br>
>         loop  txqueuelen 1000  (Local Loopback)<br>
>         RX packets 1840  bytes 159880 (156.1 KiB)<br>
>         RX errors 0  dropped 0  overruns 0  frame 0<br>
>         TX packets 1840  bytes 159880 (156.1 KiB)<br>
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br>
> <br>
> virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500<br>
>         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255<br>
>         ether 52:54:00:a8:4e:b8  txqueuelen 1000  (Ethernet)<br>
>         RX packets 0  bytes 0 (0.0 B)<br>
>         RX errors 0  dropped 0  overruns 0  frame 0<br>
>         TX packets 0  bytes 0 (0.0 B)<br>
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br>
> <br>
<br>
I wonder what does your host ifconfig look like. I mean, 192.168.122.1<br>
is the default IP address of the libvirt's network and this might<br>
suggest that you have clashing addresses if the network on your host<br>
uses the same range. Also, can you please post the <interface/> part of<br>
the 'virsh dumpxml'?<br>
<br>
Michal<br>
<br>
</div>
</span></font></div>
</body>
</html>