Differences between revisions 1 and 14 (spanning 13 versions)
Revision 1 as of 2017-11-11 22:35:24
Size: 360
Editor: shran
Comment:
Revision 14 as of 2017-12-13 13:26:06
Size: 1412
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Your domain is virtual hardware. This hardware is described in an XML file. There is one file for each domain. In a physical computer it is not a good idea to replace hardware while the computer is running. The same can be said for the virtual domain. Start by shutting down the guest, Then edit the domain Your domain is virtual hardware. This hardware is described in an XML file. The XML file is stored in `/etc/libvirt/qemu/`. There is one file for each domain. It is possible to use virsh to dump the XML.

{{{
virsh dumpxml clone
}}}
In a physical computer it is not a good idea to replace hardware while the computer is running. The same can be said for the virtual domain. Start by shutting down the guest, then edit the domain.
Line 8: Line 13:

== Console ==

During installation it is usefull to have access to the console of the domain. After the installation this is no longer needed. The following section can be removed from the configuration to disable access to the domain console.

{{{#!hilight xml
<graphics type='spice' autoport='yes' listen='192.168.1.33'>
  <listen type='address' address='192.168.1.33'/>
  <image compression='off'/>
</graphics>
}}}

== Memory ==

Increase or decrease the memory by editing this line.

{{{
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
}}}

== Network Interface ==

Check you MAC address
{{{
<interface type='bridge'>
  <mac address='52:54:00:52:de:25'/>
  <source bridge='br0'/>
  <target dev='vnet1'/>
  <model type='virtio'/>
  <alias name='net0'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
}}}

Domain Editing

Your domain is virtual hardware. This hardware is described in an XML file. The XML file is stored in /etc/libvirt/qemu/. There is one file for each domain. It is possible to use virsh to dump the XML.

virsh dumpxml clone

In a physical computer it is not a good idea to replace hardware while the computer is running. The same can be said for the virtual domain. Start by shutting down the guest, then edit the domain.

virsh edit clone

Console

During installation it is usefull to have access to the console of the domain. After the installation this is no longer needed. The following section can be removed from the configuration to disable access to the domain console.

<graphics type='spice' autoport='yes' listen='192.168.1.33'>
  <listen type='address' address='192.168.1.33'/>
  <image compression='off'/>
</graphics>

Memory

Increase or decrease the memory by editing this line.

<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>

Network Interface

Check you MAC address

<interface type='bridge'>
  <mac address='52:54:00:52:de:25'/>
  <source bridge='br0'/>
  <target dev='vnet1'/>
  <model type='virtio'/>
  <alias name='net0'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

None: Domain Editing (last edited 2021-02-19 19:14:12 by Kristian Kallenberg)