Сделал Вы отключаете AutoMagic с:
svcadm disable network/physical:nwam
svcadm enable network/physical:default
Необходимо смочь настроить что-либо, как что Вы хотите вручную затем:
ifconfig e1000g0 plumb
ifconfig e1000g0 192.168.0.1/24 broadcast + up
Вы, вероятно, также захотите шлюз по умолчанию:
route add default 192.168.0.254
Дюйм/с замены по мере необходимости для Вашей сети.
You can lock the pages into memory in later versions of libvirt:-
http://libvirt.org/formatdomain.html#elementsMemoryBacking
Careful: This doesn't appear when using Fedora 19 as a hypervisor, nevertheless according to the changelog for the latest RPM (I can find) for EL6.5 libvirt this exists;
- Thu Jul 18 2013 Jiri Denemark - 0.10.2-21
- conf: Avoid NULL deref for pmsuspended domain state (rhbz#822306)
- libvirt: Define domain crash event types (rhbz#822306)
- qemu: Refactor processWatchdogEvent (rhbz#822306)
- qemu: Expose qemuProcessShutdownOrReboot() (rhbz#822306)
- qemu: Implement 'oncrash' events when guest panicked (rhbz#822306)
- qemu: Implement 'oncrash' coredump events when guest panicked (rhbz#822306)
- conf: Fix a memory leak when parsing nat port XML nodes (rhbz#851455)
- security_manager: Fix comparison (rhbz#984793)
- qemu: Prevent crash of libvirtd without guest agent configuration (rhbz#984821)
- qemu: Fix double free of returned JSON array in qemuAgentGetVCPUs() (rhbz#984821)
- qemu_agent: Add support for appending arrays to commands (rhbz#924400)
- Add support for locking domain's memory pages (rhbz#947118)
- qemu: Implement support for locking domain's memory pages (rhbz#947118)
- qemu: Check for -realtime mlock=on|off support (rhbz#947118)
- qemu: Move memory limit computation to a reusable function (rhbz#947118)
- util: New virCommandSetMax(MemLock|Processes|Files) (rhbz#947118)
- qemu: Set RLIMIT_MEMLOCK when memoryBacking/locked is used (rhbz#947118)
- Add Gluster protocol as supported network disk backend (rhbz#849796)
- qemu: Add support for gluster protocol based network storage backend. (rhbz#849796)
- tests: Add tests for gluster protocol based network disks support (rhbz#849796)
You can use cgroups, and set up swappiness per cgroup
http://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt
http://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt
A KVM virtual CPU is just a thread on the host, so it can be controlled as any other process.
Вот пошаговые инструкции для решения Мэтью:
virt-xml $ VMNAME - -edit --memorybacking locked = on
systemctl restart libvirtd
(не уверен, нужно ли это) , где $ VMNAME
- имя виртуальной машины.
Я успешно пропустил ситуацию, когда раньше моя ВМ была полностью отключена. Теперь процесс qemu виртуальной машины не имеет использования подкачки и реагирует.
Предостережение: согласно документации libvirt , вся память qemu будет заблокирована, она может непредсказуемо увеличиваться, и следует установить hard_limit
для защиты хост-системы (виртуальная машина будет отключена, если необходимо, чтобы не выходить за пределы лимита).
Изменить: Упрощенный шаг 2 (был virsh, отредактировал $ VMNAME
и добавил
после
)