Marc
2011-Jun-08 13:13 UTC
[Puppet Users] Installing Virtualbox on Mac osx with pkg dmg provider
Hello
I can''t manage to install VB on osx via puppet and pkgdmg provider.
puppet client : 2.6.8 on osx snow leopard 10.6.7
puppetmaster : 2.6.8-1~bpo60+1 on debian squeeze
The puppet logs say :
[...]
debug: Puppet::Type::Package::ProviderPkgdmg: Executing ''/usr/bin/curl
-o
/tmp/VirtualBox-4.0.8-71778-OSX.dmg -C - -k -s --url
https://web3/apps/VirtualBox-4.0.8-71778-OSX.dmg''
debug: Success: curl transfered [VirtualBox-4.0.8-71778-OSX.dmg]
debug: Puppet::Type::Package::ProviderPkgdmg: Executing
''/usr/bin/hdiutil
mount -plist -nobrowse -readonly -noidme -mountrandom /tmp
/tmp/VirtualBox-4.0.8-71778-OSX.dmg''
debug: Puppet::Type::Package::ProviderPkgdmg: Executing
''/usr/sbin/installer
-pkg /private/tmp/dmg.5hKSb9/VirtualBox.mpkg -target /''
debug: Puppet::Type::Package::ProviderPkgdmg: Executing
''/usr/bin/hdiutil
eject /private/tmp/dmg.5hKSb9''
err:
/Stage[main]/Aptitude::Info/Pkginstall[VirtualBox-4.0.8-71778-OSX.dmg]/Package[VirtualBox-4.0.8-71778-OSX.dmg]/ensure:
change from absent to present failed: Execution of ''/usr/sbin/installer
-pkg
/private/tmp/dmg.5hKSb9/VirtualBox.mpkg -target /'' returned 1:
installer:
Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install failed (Le programme d’installation a rencontré une
erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du
logiciel pour obtenir de l’aide.)
The /var/log/install.log :
Jun 8 15:02:16 info-starbuck installer[85815]: JS: Hardware architecture
detected: i386
Jun 8 15:02:16 info-starbuck installer[85815]: JS: OS version detected:
10.6.7
Jun 8 15:02:17 info-starbuck installer[85815]:
-[IFDInstallController(Private) _buildInstallPlan]: location =
file://localhost
Jun 8 15:02:17 info-starbuck installer[85815]:
-[IFDInstallController(Private) _buildInstallPlan]:
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg
Jun 8 15:02:17 info-starbuck installer[85815]:
-[IFDInstallController(Private) _buildInstallPlan]:
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxStartupItems.pkg
Jun 8 15:02:17 info-starbuck installer[85815]:
-[IFDInstallController(Private) _buildInstallPlan]:
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg
Jun 8 15:02:17 info-starbuck installer[85815]:
-[IFDInstallController(Private) _buildInstallPlan]:
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBoxCLI.pkg
Jun 8 15:02:17 info-starbuck runner[85823]: Administrator authorization
granted.
Jun 8 15:02:17 info-starbuck installer[85815]: Will use PK session
Jun 8 15:02:17 info-starbuck installer[85815]: Starting installation:
Jun 8 15:02:17 info-starbuck installer[85815]: Configuring volume
"OsX"
Jun 8 15:02:17 info-starbuck installer[85815]: Preparing disk for local
booted install.
Jun 8 15:02:17 info-starbuck installer[85815]: Free space on "OsX":
474.14
Go (474139660288 bytes).
Jun 8 15:02:17 info-starbuck installer[85815]: Create temporary directory
"/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-//Install.85815HtcZhN"
Jun 8 15:02:17 info-starbuck installer[85815]: IFPKInstallElement (4
packages)
Jun 8 15:02:17 info-starbuck installer[85815]: PackageKit: ----- Begin
install -----
Jun 8 15:02:17 info-starbuck installer[85815]: PackageKit:
request=PKInstallRequest <4 packages, destination=/>
Jun 8 15:02:17 info-starbuck installer[85815]: PackageKit: packages=(\n
"PKJaguarPackage
<file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg>",\n
"PKJaguarPackage
<file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxStartupItems.pkg>",\n
"PKJaguarPackage
<file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg>",\n
"PKJaguarPackage
<file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBoxCLI.pkg>"\n)
Jun 8 15:02:17 info-starbuck installer[85815]: PackageKit: Extracting
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg
(destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun 8 15:02:18 info-starbuck installer[85815]: PackageKit: Extracting
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxStartupItems.pkg
(destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun 8 15:02:19 info-starbuck installer[85815]: PackageKit: Extracting
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg
(destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun 8 15:02:27 info-starbuck installer[85815]: PackageKit: Extracting
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBoxCLI.pkg
(destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun 8 15:02:28 info-starbuck installer[85815]: PackageKit: Shoving
/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At
Startup/PKInstallSandbox-tmp/Root (3 items) to /
Jun 8 15:02:28 info-starbuck installer[85815]: PackageKit: Executing script
"./postflight" in
/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg/Contents/Resources
Jun 8 15:02:29 info-starbuck installer[85815]: PackageKit: Executing script
"./postflight" in
/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg/Contents/Resources
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxBalloonCtrl =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxBalloonCtrl-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxDD2GC.gc =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxDD2GC.gc-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxDDGC.gc =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxDDGC.gc-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxExtPackHelperApp =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxExtPackHelperApp-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxManage =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxManage-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxNetAdpCtl =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxNetAdpCtl-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxNetDHCP =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxNetDHCP-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxSVC =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxSVC-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VBoxXPCOMIPCD =>
/Applications/VirtualBox.app/Contents/MacOS/VBoxXPCOMIPCD-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VMMGC.gc =>
/Applications/VirtualBox.app/Contents/MacOS/VMMGC.gc-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VirtualBox =>
/Applications/VirtualBox.app/Contents/MacOS/VirtualBox-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM =>
/Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight:
/Applications/VirtualBox.app/Contents/MacOS/vboxwebsrv =>
/Applications/VirtualBox.app/Contents/MacOS/vboxwebsrv-x86
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Python found:
python, installing bindings...
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running build
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
build_py
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: copying
vboxapi/__init__.py -> build/lib/vboxapi
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install_lib
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: copying
build/lib/vboxapi/__init__.py -> /Library/Python/2.6/site-packages/vboxapi
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: byte-compiling
/Library/Python/2.6/site-packages/vboxapi/__init__.py to __init__.pyc
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install_egg_info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Removing
/Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Writing
/Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Python found:
python2.5, installing bindings...
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running build
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
build_py
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install_lib
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: copying
build/lib/vboxapi/__init__.py -> /Library/Python/2.5/site-packages/vboxapi
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: byte-compiling
/Library/Python/2.5/site-packages/vboxapi/__init__.py to __init__.pyc
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install_egg_info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Removing
/Library/Python/2.5/site-packages/vboxapi-1.0-py2.5.egg-info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Writing
/Library/Python/2.5/site-packages/vboxapi-1.0-py2.5.egg-info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Python found:
python2.6, installing bindings...
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running build
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
build_py
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install_lib
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: running
install_egg_info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Removing
/Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Writing
/Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
*Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: Register file
extensions for *
*Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: sudo: unknown
user: *
Jun 8 15:02:29 info-starbuck installer[85815]: PackageKit: Install Failed:
PKG: post-flight scripts for "org.virtualbox.pkg.virtualbox"\nError
Domain=PKInstallErrorDomain Code=112 UserInfo=0x1040056b0 "Une erreur s’est
produite pendant l’exécution des scripts du paquet « VirtualBox.pkg »." {\n
NSFilePath = "./postflight";\n NSLocalizedDescription =
"Une erreur
s\U2019est produite pendant l\U2019ex\U00e9cution des scripts du paquet
\U00ab\U00a0VirtualBox.pkg\U00a0\U00bb.";\n NSURL =
"./Contents/Packages/VirtualBox.pkg --
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/";\n
PKInstallPackageIdentifier = "org.virtualbox.pkg.virtualbox";\n}
Jun 8 15:02:29 info-starbuck installer[85815]:
install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112
UserInfo=0x1040056b0 "Une erreur s’est produite pendant l’exécution des
scripts du paquet « VirtualBox.pkg »."
Jun 8 15:02:29 info-starbuck installer[85815]: Install failed: Le programme
d’installation a rencontré une erreur qui a provoqué l’échec de
l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.
If I download the package, mount the dmg and then run the command by the
hand :
$ sudo -s
# /usr/bin/curl -o /tmp/VirtualBox-4.0.8-71778-OSX.dmg -C - -k -s --url
https://web3/apps/VirtualBox-4.0.8-71778-OSX.dmg
# /usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom
/tmp /tmp/VirtualBox-4.0.8-71778-OSX.dmg
# /usr/sbin/installer -pkg /private/tmp/dmg.OT7NZT/VirtualBox.mpkg -target /
The install is ok. And in the /var/log/install.log :
[...]
Jun 7 12:44:17 info-roslin installer[6404]: ./postflight: Writing
/Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
*Jun 7 12:44:17 info-roslin installer[6404]: ./postflight: Register file
extensions for root*
Jun 7 12:44:17 info-roslin installer[6404]: ./postflight:
ThrottleProcessIO: throttling disk i/o
Jun 7 12:44:17: --- last message repeated 1 time ---
Jun 7 12:44:17 info-roslin installer[6404]: PackageKit: Registered bundle
file://localhost/Applications/VirtualBox.app/
Jun 7 12:44:17 info-roslin installer[6404]: PackageKit: Registered bundle
file://localhost/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/
Jun 7 12:44:17 info-roslin installer[6404]: PackageKit: Registered bundle
file://localhost/Applications/VirtualBox.app/Contents/Resources/vmstarter.app/
Jun 7 12:44:17 info-roslin installer[6404]: Installed "Oracle VM
VirtualBox" ()
Jun 7 12:44:17 info-roslin installer[6404]: PackageKit: ----- End install
-----
Jun 7 12:44:18 info-roslin installer[6404]: Running install actions
Jun 7 12:44:18 info-roslin installer[6404]: Removing temporary directory
"/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-//Install.6404E6eqEN"
Jun 7 12:44:18 info-roslin installer[6404]: Finalize disk "OsX"
Jun 7 12:44:18 info-roslin installer[6404]: Notifying system of updated
components
Jun 7 12:44:19 info-roslin installer[6404]:
Jun 7 12:44:19 info-roslin installer[6404]: **** Summary Information ****
Jun 7 12:44:19 info-roslin installer[6404]: Operation Elapsed time
Jun 7 12:44:19 info-roslin installer[6404]: -----------------------------
Jun 7 12:44:19 info-roslin installer[6404]: disk 0.01 seconds
Jun 7 12:44:19 info-roslin installer[6404]: script 0.00 seconds
Jun 7 12:44:19 info-roslin installer[6404]: zero 0.00 seconds
Jun 7 12:44:19 info-roslin installer[6404]: install 13.01 seconds
Jun 7 12:44:19 info-roslin installer[6404]: -total- 13.02 seconds
Jun 7 12:44:19 info-roslin installer[6404]:
Do you know if there is a solution ?
Thanks for your help
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/bElRb3oxNTlIRWdK.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Jun-08 17:50 UTC
Re: [Puppet Users] Installing Virtualbox on Mac osx with pkg dmg provider
On Wed, Jun 8, 2011 at 6:13 AM, Marc <marcolefo@gmail.com> wrote:> Hello > > I can''t manage to install VB on osx via puppet and pkgdmg provider.*Jun 8 > 15:02:29 info-starbuck installer[85815]: * >> *./postflight: Register file extensions for * >> *Jun 8 15:02:29 info-starbuck installer[85815]: ./postflight: sudo: > unknown user: * > > >This is your problem. The postflight scripts aren''t correctly dealing with "headless installation" without an interactive session. If you look at postflight, it''s probably doing something dumb that should be fixed. Those lines above indicate that it''s not finding a user when you compare it to the interactive install. *Jun 7 12:44:17 info-roslin installer[6404]: ./postflight: Register file extensions for root* * * -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.