Re: virt-xml/start: Temporarily use another boot configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/12/19 3:46 AM, Marc Hartmayer wrote:
> On Thu, Jan 10, 2019 at 06:42 PM +0100, Cole Robinson <crobinso@xxxxxxxxxx> wrote:
>> On 01/09/2019 06:41 AM, Marc Hartmayer wrote:
>>> On Wed, Dec 12, 2018 at 10:16 AM +0100, Marc Hartmayer <mhartmay@xxxxxxxxxxxxx> wrote:
>>>> On Tue, Dec 11, 2018 at 08:22 PM +0100, Cole Robinson <crobinso@xxxxxxxxxx> wrote:
> 
> […snip…]
> 
>>
>> No objections, indeed if you want general purpose edit+start then
>> extending virt-xml is the place to improve things.
>>
>> Originally it was a design decision to have virt-xml only operate on
>> single blocks of XML classes at a time. This is fixable but things get
>> ambiguous. Consider currently editing cpu, you'll do
>>
>>    virt-xml $VM --edit --cpu FOO
> 
> Thanks for the feedback!
> 
> How should 'virt-xml $VM --edit target=vda --disk="boot_order=1" --start'
> command behave?
> 
>  1. only start the domain (=> creation of a transient domain)?
>  2. or shall it also define the domain (=> definition + start)?
> 
> In case 1, there would already be a way to enforce the definition of
> this domain:
> 
> virt-xml $VM --edit target=vda --disk="boot_order=1" --start --define
> 
> For a start only, in case 2, we have to introduce an additional flag
> (e.g. '--no-define') to ensure that no definition takes place (=>
> transient domain):
> 
> e.g.
> 
> virt-xml $VM --edit target=vda --disk="boot_order=1" --start --no-define
> 
> Which of these do you prefer?

I think --no-define is good. We have --transient in virt-install but it
would be ambiguous in the virt-xml context (does it make the VM suddenly
transient?). Maybe something like --start-once but that's not any more
clear. So sounds like:

--start == --start --define == CreateXML() + DefineXML()
--start --no-define == CreateXML()

Thanks,
Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux