Also, ensure you are in the latest version..

vagrant version

:)


On Tue, Feb 10, 2015 at 10:09 PM, Alvaro Miranda Aguilera
<[email protected]> wrote:
> Nicola, always share the full vagrantfile please..
>
> On Tue, Feb 10, 2015 at 9:51 PM, Nicola <[email protected]> wrote:
>> Hello Alvaro, I try to do like your example bit I've this error:
>>
>> There are errors in the configuration of this machine. Please fix
>> the following errors and try again:
>>
>> Hyper-V:
>> * The following settings shouldn't exist: cpus, memory, vmname
>>
>> And my vagrantfile is this:
>>
>> config.vm.provider "hyperv" do |hv|
>>   hv.vmname = "vm_name"
>>   hv.cpus = "1"
>>   hv.memory = "512"
>> end
>>
>> Have you any idea?
>> Nicola
>>
>> Il giorno lunedì 9 febbraio 2015 21:21:21 UTC+1, Alvaro Miranda Aguilera ha
>> scritto:
>>>
>>> typo,.. missing a quote
>>>
>>> config.vm.provider "hyperv" do |hv|
>>>   hv.vmname = "testmachine"
>>> end
>>>
>>> On Tue, Feb 10, 2015 at 9:20 AM, Alvaro Miranda Aguilera
>>> <[email protected]> wrote:
>>> > Hello Nicola,
>>> >
>>> > In the vagrantfile you should be able to define a hyperv block to set
>>> > serveral options, one is the name on the gui
>>> >
>>> > https://docs.vagrantup.com/v2/hyperv/configuration.html
>>> >
>>> > vmname (string) - Name of virtual mashine as shown in Hyper-V manager.
>>> > Defaults is taken from box image XML.
>>> >
>>> > I haven't done it, so please try this:
>>> >
>>> > config.vm.provider "hyperv" do |hv|
>>> >   hv.vmname = testmachine"
>>> > end
>>> >
>>> >
>>> >
>>> >
>>> > On Mon, Feb 9, 2015 at 9:41 PM, Nicola <[email protected]> wrote:
>>> >> Hi to all,
>>> >> in my vagrant project  I've a gui where the users put into a box the
>>> >> name of
>>> >> the development environment. I want that this name is used in the
>>> >> vagrantfile to set the name for the hostname and for the name of the vm
>>> >> in
>>> >> hyperv. It's possible?
>>> >>
>>> >> Thanks
>>> >>
>>> >> Nicola
>>> >>
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "Vagrant" group.
>>> >> To unsubscribe from this group and stop receiving emails from it, send
>>> >> an
>>> >> email to [email protected].
>>> >> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to