Console Extension Pack installation

Discussions related to using VirtualBox on Linux hosts.

Console Extension Pack installation

Postby PChott » 2. Sep 2011, 17:18

Is there any way to install VM VirtualBox Extension Pack directly from command line console? I have not find any instructions for that :(
PChott
 
Posts: 2
Joined: 2. Sep 2011, 17:13
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Linux, Windows

Re: Console Extension Pack installation

Postby Perryg » 2. Sep 2011, 17:29

Its listed in your VirtualBox usrs guide.
Code: Select all   Expand viewCollapse view
VBoxManage extpack install [--replace] <tarball> |
                   uninstall [--force] <name> |
                   cleanup
Perryg
Site Moderator
 
Posts: 34372
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Console Extension Pack installation

Postby PChott » 2. Sep 2011, 17:30

Thx for quick reply
PChott
 
Posts: 2
Joined: 2. Sep 2011, 17:13
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Linux, Windows

Re: Console Extension Pack installation

Postby Sasquatch » 2. Sep 2011, 20:23

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Console Extension Pack installation

Postby CharlesA » 3. Sep 2011, 04:00

Does that script need to be run as root?

Guessing it doesn't since you have sudo in there.
CharlesA
 
Posts: 14
Joined: 18. Mar 2011, 02:29
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: *nix/Windows

Re: Console Extension Pack installation

Postby Sasquatch » 3. Sep 2011, 12:49

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Console Extension Pack installation

Postby pcready.cl » 28. Oct 2015, 04:17

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!
pcready.cl
 
Posts: 1
Joined: 28. Oct 2015, 04:14


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 8 guests