Page 1 of 1

Console Extension Pack installation

PostPosted: 2. Sep 2011, 17:18
by PChott
Is there any way to install VM VirtualBox Extension Pack directly from command line console? I have not find any instructions for that :(

Re: Console Extension Pack installation

PostPosted: 2. Sep 2011, 17:29
by Perryg
Its listed in your VirtualBox usrs guide.
Code: Select all   Expand viewCollapse view
VBoxManage extpack install [--replace] <tarball> |
                   uninstall [--force] <name> |
                   cleanup

Re: Console Extension Pack installation

PostPosted: 2. Sep 2011, 17:30
by PChott
Thx for quick reply

Re: Console Extension Pack installation

PostPosted: 2. Sep 2011, 20:23
by Sasquatch
May want to use my script for upgrades:
Code: Select all   Expand viewCollapse view
#!/bin/bash
version=$(vboxmanage -v)
echo $version
var1=$(echo $version | cut -d 'r' -f 1)
echo $var1
var2=$(echo $version | cut -d 'r' -f 2)
echo $var2
file="Oracle_VM_VirtualBox_Extension_Pack-$var1-$var2.vbox-extpack"
echo $file
wget http://download.virtualbox.org/virtualbox/$var1/$file -O /tmp/$file
#sudo VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
sudo VBoxManage extpack install /tmp/$file --replace

The second to last line is commented because it didn't work with 4.1.0 due to a bug. 4.1.2 still has a bug that you need to enter --replace after the tarball. 4.1.4, the next maintenance release, will have that fixed so it doesn't matter if --replace goes before or after the tarball. You can uncomment the line if you want and not use the --replace option. When you get a new major release, which would most likely be 4.2.0, the ExtPack of 4.1 has to be removed first, it can't be replaced. At least I had that problem when going from 4.0 to 4.1. We'll have to wait and see if it's required with the --replace option.

Re: Console Extension Pack installation

PostPosted: 3. Sep 2011, 04:00
by CharlesA
Does that script need to be run as root?

Guessing it doesn't since you have sudo in there.

Re: Console Extension Pack installation

PostPosted: 3. Sep 2011, 12:49
by Sasquatch
Correct. But if your user is not in the sudoers file or group, then remove the sudo command from it and run it as root.

Re: Console Extension Pack installation

PostPosted: 28. Oct 2015, 04:17
by pcready.cl
Sasquatch wrote:May want to use my script for upgrades:
Code: Select all   Expand viewCollapse view
#!/bin/bash
version=$(vboxmanage -v)
echo $version
var1=$(echo $version | cut -d 'r' -f 1)
echo $var1
var2=$(echo $version | cut -d 'r' -f 2)
echo $var2
file="Oracle_VM_VirtualBox_Extension_Pack-$var1-$var2.vbox-extpack"
echo $file
wget ***: download. virtualbox. org/virtualbox/$var1/$file -O /tmp/$file
#sudo VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
sudo VBoxManage extpack install /tmp/$file --replace

The second to last line is commented because it didn't work with 4.1.0 due to a bug. 4.1.2 still has a bug that you need to enter --replace after the tarball. 4.1.4, the next maintenance release, will have that fixed so it doesn't matter if --replace goes before or after the tarball. You can uncomment the line if you want and not use the --replace option. When you get a new major release, which would most likely be 4.2.0, the ExtPack of 4.1 has to be removed first, it can't be replaced. At least I had that problem when going from 4.0 to 4.1. We'll have to wait and see if it's required with the --replace option.


works perfect, thank you very much!