Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Running Artix in a VM. Can't get virtio NAT connection. (libvirt/virt-manager) (Read 264 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Running Artix in a VM. Can't get virtio NAT connection. (libvirt/virt-manager)

I'm not sure if the question fits in here since I'm running Artix inside a VM. 
Host is Manjaro Linux. 

For whatever reason the NAT connection is lost. 
This time even creating a my VM again from scratch is no longer working. 
An e1000e connection does work.

On guest:

ip addr on guest


virt-manager connection in xml
Code: [Select]
<interface type="network">
  <mac address="52:54:00:8d:cd:66"/>
  <source network="default" portid="94cebc1a-2b7b-41ba-91a4-22958fe3aef4" bridge="virbr0"/>
  <target dev="vnet4"/>
  <model type="virtio"/>
  <alias name="net0"/>
  <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>

On host:

ip addr on host
Code: [Select]
$ ip addr
...
4: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:54:00:8c:9c:74 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
9: vnet4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN group default qlen 1000
    link/ether fe:54:00:8d:cd:66 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fe8d:cd66/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever

sudo virsh net-dumpxml default

Code: [Select]
<network connections="1">
  <name>default</name>
  <uuid>b728bff2-6215-4472-8d38-a5a797d328aa</uuid>
  <forward mode="nat">
    <nat>
      <port start="1024" end="65535"/>
    </nat>
  </forward>
  <bridge name="virbr0" stp="on" delay="0"/>
  <mac address="52:54:00:8c:9c:74"/>
  <ip address="192.168.122.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.122.2" end="192.168.122.254"/>
    </dhcp>
  </ip>
</network>

Re: Running Artix in a VM. Can't get virtio NAT connection. (libvirt/virt-manager)

Reply #1
I solved it. 
This thread can be deleted as it had nothing to do with Artix, as I don't see how I could do it. 

The issue is that for some reason my virt-manager network interface options does not include virtio-net, only virtio. 
I edited the correct model in xml.