Linux Virtualization Configuration

From NovaOrdis Knowledge Base
Revision as of 20:43, 27 June 2017 by Ovidiu (talk | contribs) (→‎/etc/sysconfig/libvirt-guests)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

/etc/sysconfig/libvirtd

The configuration file of the libvirtd service.

/etc/sysconfig/libvirt-guests

The configuration file of the libvirt-guests service. Note that the service is not automatically enabled.

Configure Guests to Gracefully Shut Down

ON_SHUTDOWN=shutdown
SHUTDOWN_TIMEOUT=300

Configure Guests to Start at Boot

All guests that were running on shutdown can be configured to automatically start on boot, regardless of their autostart settings:

ON_BOOT=start

Virtual Switch Configuration

NAT IP Masquerading

Shut down the virtual switch before modifying the iptables configuration.

The public IP ranges for forward mode NAT, in order to create a port masquerading range can be set by running:

iptables -j SNAT --to-source [start-ip]-[end-ip]

Organizatorium