Installation guide

Chapter 34. Troubleshooting
310
3. Find the network interface section of the configuration. This section resembles the snippet below:
<interface type='network'>
[output truncated]
<model type='rtl8139' />
</interface>
4. Change the type attribute of the model element from 'rtl8139' to 'virtio'. This will change
the driver from the rtl8139 driver to the e1000 driver.
<interface type='network'>
[output truncated]
<model type='virtio' />
</interface>
5. Save the changes and exit the text editor
6. Restart the guest operating system.
Creating new guests using other network drivers
Alternatively, new virtualized guests can be created with a different network driver. This may be
required if you are having difficulty installing guests over a network connection. This method requires
you to have at least one virtualized guest already created (possibly installed from CD or DVD) to use
as a template.
1. Create an XML template from an existing virtualized guest (in this example, named Guest1):
# virsh dumpxml Guest1 > /tmp/guest-template.xml
2. Copy and edit the XML file and update the unique fields: virtual machine name, UUID, disk image,
MAC address, and any other unique parameters. Note that you can delete the UUID and MAC
address lines and virsh will generate a UUID and MAC address.
# cp /tmp/guest-template.xml /tmp/new-guest.xml
# vi /tmp/new-guest.xml
Add the model line in the network interface section:
<interface type='network'>
[output truncated]
<model type='virtio' />
</interface>
3. Create the new virtual machine:
# virsh define /tmp/new-guest.xml
# virsh start new-guest