SCIENTIFIC-LINUX-USERS Archives

May 2016

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Karel Lang AFD <[log in to unmask]>
Reply To:
Karel Lang AFD <[log in to unmask]>
Date:
Wed, 11 May 2016 09:58:33 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (85 lines)
Hi,
what i do is:

virsh list --all (to list machine-names)
virsh autostart machine-name
virsh list --autostart (to confirm machine was added to autostarting list)


-- 
*Karel Lang*
*Unix/Linux Administration*
[log in to unmask] | +420 731 13 40 40
AUFEER DESIGN, s.r.o. | www.aufeerdesign.cz


On 05/11/2016 09:37 AM, ToddAndMargo wrote:
>>> On May 11, 2016 05:47, "ToddAndMargo" <[log in to unmask]
>>> <mailto:[log in to unmask]>> wrote:
>>>
>>>      > ________________________________________
>>>      > From: [log in to unmask]
>>>     <mailto:[log in to unmask]>
>>>     <[log in to unmask]
>>>     <mailto:[log in to unmask]>> on behalf
>>>     of ToddAndMargo <[log in to unmask]
>>> <mailto:[log in to unmask]>>
>>>      > Sent: Tuesday, May 10, 2016 10:01:04 PM
>>>      > To: scientific-linux-users
>>>      > Subject: What is the best way to start a KVM VM at boot?
>>>      >
>>>      > Hi All,
>>>      >
>>>      > I am finding server articles with DuckDuckGo on how start
>>>      > a KVM virtual machine at (host) boot, but they are over 5
>>>      > years old.
>>>      >
>>>      > Is there a best practice way to do this?
>>>      >
>>>      > Also, when the host shuts down, I know KVM saves the
>>>      > machine. Is there a way to send the shutdown command to the
>>>      > machine instead when someone hits reboot or shutdown?
>>>      >
>>>      > Many thanks,
>>>      > -T
>>>      >
>>>
>>>
>>>     On 05/10/2016 08:10 PM, Steven C Timm wrote:
>>>
>>>         You can start any KVM VM at boot time by use of the
>>>         libvirt-guests service, by putting a link to the xml
>>>         file for the vm in /etc/libvirt/qemu/auto
>>>
>>>
>>>     Hi Steve,
>>>
>>>     Is that the same thing as the check-e-do box in the virt manager
>>>     of the vm under boot options?
>>>
>>>         You can choose to shut down rather than suspend the VM at
>>>         shutdown by changing the settings of libvirt-quests.
>>>
>>>
>>>     quests or guests?  Was that a typo?  (Typos???  I never make typos.
>>>     What ?!?!?   Okay, okay, maybe 2 or 3 hundred every so often.)
>>>
>>>     Not finding how to alter libvirt-guests.
>>>
>>>     Also, I sent the "shutdown" command from the console and
>>>     the vm ignored me.  Does this mean I should stay with "suspend"?
>>>
>
>
> On 05/10/2016 11:01 PM, Francesco M. Taurino wrote:
>> Be sure Acpi or similar are installed in your guests
>>
>
> Hi Francesco,
>
> I am not seeing that as an option in the kvm console.  Am
> I missing something?
>
> -T
>

ATOM RSS1 RSS2