Installing something on a VM provisioned with Vagrant?

261 views
Skip to first unread message

Peeyush Gupta

unread,
Nov 28, 2013, 1:49:53 AM11/28/13
to vagra...@googlegroups.com
Hi all,

I have provisioned a Fedora 19 VM through vagrant. Now, I am trying to install something on the machine. I am trying to do it through shell script. So, I edited the Vagrantfile and in the shell script I wrote "yum install xxxxx". Now, it didn't install the software. Instead the output I got is:

Total download size: 449 k
Installed size: 1.4 M
Is this ok [y/d/N]: Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2013-11-28.06-36.wCp12B.yumtx

Then I tried with "sudo yum xxxx", but it didn't work either(same output). Can you please help me resolve this issue?

Thanks,
Peeyush Gupta

Nathan Fisher

unread,
Nov 28, 2013, 5:27:35 AM11/28/13
to vagra...@googlegroups.com
You need to specify -y for your initial command.
--
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 vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
Nathan Fisher

Peeyush Gupta

unread,
Nov 28, 2013, 5:58:14 AM11/28/13
to vagra...@googlegroups.com
Thanks you Nathan, that works!



--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/4YdPPstnYoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
~Peeyush Gupta

S shetty

unread,
Nov 7, 2015, 3:40:40 AM11/7/15
to Vagrant
Hi nathan, i need to do the same but i have a windows7 vm through vagrant. What commands should i write in the shell script


On Thursday, November 28, 2013 at 5:27:35 AM UTC-5, Nathan Fisher wrote:
You need to specify -y for your initial command.

On Thursday, 28 November 2013, Peeyush Gupta wrote:
Hi all,

I have provisioned a Fedora 19 VM through vagrant. Now, I am trying to install something on the machine. I am trying to do it through shell script. So, I edited the Vagrantfile and in the shell script I wrote "yum install xxxxx". Now, it didn't install the software. Instead the output I got is:

Total download size: 449 k
Installed size: 1.4 M
Is this ok [y/d/N]: Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2013-11-28.06-36.wCp12B.yumtx

Then I tried with "sudo yum xxxx", but it didn't work either(same output). Can you please help me resolve this issue?

Thanks,
Peeyush Gupta

--
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 vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Alvaro Miranda Aguilera

unread,
Nov 9, 2015, 3:30:26 AM11/9/15
to vagra...@googlegroups.com
Hello,

For windows, you need to provide the command line required to make the
installation silent.

Some products work with MSI installer, but you should check the
documentation for the software you want to install.

Note: You did reply to an email from 2013.

You are very welcome to share your questions, just have in mind that
Vagrant will automate or run things on your behalf, but you need to
have the commands that you want Vagrant to run for you.

Thanks
Alvaro.

On Sat, Nov 7, 2015 at 9:40 PM, S shetty <shetty.s...@gmail.com> wrote:
> Hi nathan, i need to do the same but i have a windows7 vm through vagrant.
> What commands should i write in the shell script
>
> On Thursday, November 28, 2013 at 5:27:35 AM UTC-5, Nathan Fisher wrote:
>>
>> You need to specify -y for your initial command.
>>
>> On Thursday, 28 November 2013, Peeyush Gupta wrote:
>>>
>>> Hi all,
>>>
>>> I have provisioned a Fedora 19 VM through vagrant. Now, I am trying to
>>> install something on the machine. I am trying to do it through shell script.
>>> So, I edited the Vagrantfile and in the shell script I wrote "yum install
>>> xxxxx". Now, it didn't install the software. Instead the output I got is:
>>>
>>> Total download size: 449 k
>>> Installed size: 1.4 M
>>> Is this ok [y/d/N]: Is this ok [y/d/N]: Exiting on user command
>>> Your transaction was saved, rerun it with:
>>> yum load-transaction /tmp/yum_save_tx.2013-11-28.06-36.wCp12B.yumtx
>>>
>>> Then I tried with "sudo yum xxxx", but it didn't work either(same
>>> output). Can you please help me resolve this issue?
>>>
>>> Thanks,
>>> Peeyush Gupta
>>>
>>> --
>>> 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 vagrant-up+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>> --
>> Nathan Fisher
>> w: http://junctionbox.ca/
>>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> 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 vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/593df6d7-5dcd-47e4-b701-09c69a2689f5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages