wilas / vbkick

Tool for building and maintaining VirtualBox VMs described as a code in a single definition file.
Other
8 stars 5 forks source link

correctly installed guest-additions display different VBox version on the guest and on the host #35

Closed wilas closed 10 years ago

wilas commented 10 years ago

Context: virtualbox and virtualbox-guest-additions-iso installed from the debian-unstable repo on the host and guest-additions installed from the provided ISO on the guest (e.g. SL, Ubuntu). On the host:

$ VBoxManage --version
4.3.10_Debianr93012

On the guest:

$ VBoxControl --version
4.3.10r93012

As a consequence vbkick validate command fail a Virtualbox Guest Additions test.

Solution: extract leading virtualbox version number e.g.: 4.3.10 using regexpr instead of removing r* suffix in get_vb_version function.