Hoe kunnen wij u vandaag helpen?

How to configure Linux Based Operating Systems for Graceful Shutdown of KVM guest OSs

Issue:

In Linux-based operating systems, the KVM guests do not shut down gracefully when initiating a host OS shutdown.


Product Line:

PowerChute Network Shutdown (PCNS), PowerChute Serial Shutdown (PCSS), and PowerChute Business Edition (PCBE).


Environment:
Linux-based operating systems with KVM enabled (virtual machine installed).

Symptoms:
The KVM Guests are not shutting down gracefully with PCNS, PCSS & PCBE

Resolution:

    Resolution:

    1. Open Terminal in the Linux Host OS and Navigate to /etc/sysconfig/libvirt-guests file
    2. Uncomment and edit the lines as shown below. Use ‘vi’ command.

    ON_BOOT=start

    ON_SHUTDOWN=shutdown

    SHUTDOWN_TIMEOUT=300

    Note: If the libvirt-guests file is not available under /etc/sysconfig

    1. Create the new file using “ sudo nano /etc/sysconfig/ libvirt-guests “and add the lines below, and save the file.

    ON_BOOT=start

    ON_SHUTDOWN=shutdown

    SHUTDOWN_TIMEOUT=300

    1. Install the libvirt / libvirt-daemon package using the command below.
    • sudo dnf install libvirt libvirt-daemon

    1. Verify that the qemu-kvm package is installed. If it is not installed, install it using the command below.
    • sudo dnf install qemu-kvm

    1. Enable and start the libvirtd and libvirt-guests service with the following commands.
    • systemctl enable libvirtd                (To enable the libvirtd service).
    • systemctl start libvirtd                   (To start the libvirtd service).
    • systemctl enable libvirt-guests     (To enable the libvirt-guests service).
    • systemctl start libvirt-guests        (To start the libvirt-guests service).
    1. Reboot the operating system to ensure that the configuration changes are applied.

    Schneider Electric Belgium

    Ontdek meer
    Productfamilie
    Ontdek meer
    Productfamilie

    Hulp nodig?

    Hulp nodig?

    Selecteer zelf het juiste product

    Selecteer zelf het juiste product

    Vind snel en eenvoudig de juiste producten en toebehoren voor uw toepassingen.

    Offerte aanvragen

    Offerte aanvragen

    Dien uw aanvraag online in en een expert zal contact met u opnemen.

    Verkooppunten

    Verkooppunten

    Vind eenvoudig de dichtstbijzijnde distributeur van Schneider Electric op uw locatie.

    Help Center

    Help Center

    Vind de antwoorden die u nodig heeft via bladeren door veelgestelde vragen over onderwerpen.

    • Productdocumentatie
    • Software & firmware
    • Productselector
    • Productvervanging
    • Help- en Contact Center
    • Vind onze kantoren
    • Offerte aanvragen?
    • Verkooppunten
    • Schneider Electric Community
    • Werken bij
    • Bedrijfsprofiel
    • Wangedrag melden
    • Toegankelijkheid
    • Newsroom
    • Investeerders
    • EcoStruxure
    • Vacature zoeken
    • Blog
    • Als eerste op de hoogte nieuws?
    • Privacybeleid
    • Cookieverklaring
    • Gebruiksvoorwaarden
    • Algemene verkoop- en inkoopvoorwaarden
    • Change your cookie settings