[vbox-dev] createHardDisk and createBaseStorage

Nikolay Igotti Nikolay.Igotti at Sun.COM
Mon Aug 10 09:19:09 PDT 2009


 It means exactly that :). Could you please post relevant pieces of code 
(ideally as shell extension),otherwise it's pretty hard to guess. 
Machine shall be mutable (i.e. with opened session) to perform 
modifications - see shell commands changing VM persistent state.

  Nikolay

Frédéric SOSSON wrote:
> after using addStorageController, I got this message: The machine is
> not mutable (state is 1)
>
> what does it mean?
>
> 2009/8/10 Frédéric SOSSON <fsosson at gmail.com>:
>   
>> OK, thanx for the piece of code provided by Nikolay
>>
>> 2009/8/10 Klaus Espenlaub <Klaus.Espenlaub at sun.com>:
>>     
>>> Frédéric SOSSON wrote:
>>>       
>>>> do you mean vboxshell ?
>>>>         
>>> no, I usually don't mean vboxshell if I type VBoxManage ;)
>>>
>>> I know that many python programmers are highly allergic to C++ code, but
>>> with VirtualBox it's just a fact that the vast majority of code which uses
>>> the API is C++. And it should give you at least a hint what the usual
>>> sequence of API calls is.
>>>
>>> Nikolay provided python code which does the job, but the same information
>>> could be easily distilled out of VBoxManageDisk.cpp in the VirtualBox
>>> sources. Or by looking at the API documentation.
>>>
>>> Klaus
>>>
>>>       
>>>> 2009/8/10 Klaus Espenlaub <Klaus.Espenlaub at sun.com>:
>>>>         
>>>>> Frédéric SOSSON wrote:
>>>>>           
>>>>>> Hello,
>>>>>>
>>>>>> I try to create hard disk and to use createBaseStorage...
>>>>>>
>>>>>> Do you have a small sample ?
>>>>>>             
>>>>> The usual "sample" is VBoxManage. The total tool is relatively big, but
>>>>> each
>>>>> subcommand is usually pretty straightforward.
>>>>>
>>>>> Klaus
>>>>>
>>>>>
>>>>>           
>>>>
>>>>         
>>> --
>>> Dr. Klaus Espenlaub
>>> Sun Microsystems GmbH
>>> Werkstrasse 24
>>> 71384 Weinstadt
>>> Germany
>>>
>>> =====================================================================
>>> Sitz der Gesellschaft:
>>> Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
>>> Amtsgericht Muenchen: HRB 161028
>>> Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
>>> Vorsitzender des Aufsichtsrates: Martin Haering
>>> =====================================================================
>>>
>>>       
>>
>> --
>> Frédéric SOSSON
>> Tél.: 0032 496 29 29 88
>>
>>     
>
>
>
>   





More information about the vbox-dev mailing list