{"action":"created","issue":{"url":"https://api.github.com/repos/andsens/bootstrap-vz/issues/209","labels_url":"https://api.github.com/repos/andsens/bootstrap-vz/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/andsens/bootstrap-vz/issues/209/comments","events_url":"https://api.github.com/repos/andsens/bootstrap-vz/issues/209/events","html_url":"https://github.com/andsens/bootstrap-vz/issues/209","id":67325594,"number":209,"title":"df: Warning: cannot read table of mounted file systems","user":{"login":"jniggemann","id":1318059,"avatar_url":"https://avatars.githubusercontent.com/u/1318059?v=3","gravatar_id":"","url":"https://api.github.com/users/jniggemann","html_url":"https://github.com/jniggemann","followers_url":"https://api.github.com/users/jniggemann/followers","following_url":"https://api.github.com/users/jniggemann/following{/other_user}","gists_url":"https://api.github.com/users/jniggemann/gists{/gist_id}","starred_url":"https://api.github.com/users/jniggemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniggemann/subscriptions","organizations_url":"https://api.github.com/users/jniggemann/orgs","repos_url":"https://api.github.com/users/jniggemann/repos","events_url":"https://api.github.com/users/jniggemann/events{/privacy}","received_events_url":"https://api.github.com/users/jniggemann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-09T09:59:13Z","updated_at":"2015-04-09T16:55:46Z","closed_at":null,"body":"I'm trying to bootstrap Debian Wheezy 32bit on a 32bit Wheezy system. In the end, I get a vagrant box that seems to be running fine, but where do the warnings / errors below come from?\r\n\r\n* df: Warning: cannot read table of mounted file systems: No such file or directory\r\n* invoke-rc.d: policy-rc.d denied execution of start\r\n* (modprobe vboxguest failed)\r\n\r\n```\r\nAdding commands required for reducing volume size\r\nChecking whether the VirtualBox Guest Additions image exists\r\nAdding commands required for formatting\r\nAdding default release sources\r\nAdding grub package\r\nAdding image packages required for virtualbox\r\nAdding openssh package\r\nAdd packages that vagrant depends on\r\nChecking if the vagrant box file already exists\r\nAdding commands required for partitioning the volume\r\nAdding locale package to bootstrap installation\r\nAdding commands required for bootstrapping Debian\r\nChecking availability of external commands\r\nCreating workspace\r\nCreating directory for the vagrant box\r\nCreating a loopback volume\r\nAttaching the volume\r\nPartitioning the volume\r\nMapping volume partitions\r\nFormatting the volume\r\nmke2fs 1.42.5 (29-Jul-2012)\r\nmkswap: /dev/mapper/nbd0p2: warning: don't erase bootbits sectors\r\non whole disk. Use -f to force.\r\nmke2fs 1.42.5 (29-Jul-2012)\r\nTuning the bootstrap volume filesystem\r\nCreating mountpoint for the root partition\r\nMounting the root partition\r\nCreating mountpoint for the boot partition\r\nMounting the boot partition\r\nInstalling Debian\r\nMounting folders for writing temporary and cache data\r\nMounting special block devices\r\nWriting aptitude sources to disk\r\nAdding packages to support Guest Additions installation\r\nGenerating the selected locale\r\nDisabling daemon autostart\r\nUpdating the package cache\r\nUpgrading packages and fixing broken dependencies\r\n\r\nCurrent default time zone: 'Etc/UTC'\r\nLocal time is now:      Thu Apr  9 09:06:25 UTC 2015.\r\nUniversal Time is now:  Thu Apr  9 09:06:25 UTC 2015.\r\nRun 'dpkg-reconfigure tzdata' if you wish to change it.\r\n\r\nGenerating locales (this might take a while)...\r\nen_US.UTF-8... done\r\nGeneration complete.\r\nInstalling packages\r\nExtracting templates from packages: 100%\r\nMoving old data out of the way\r\nRunning depmod.\r\nExamining /etc/kernel/postinst.d.\r\nrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-686-pae /boot/vmlinuz-3.2.0-4-686-pae\r\nupdate-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae\r\ndf: Warning: cannot read table of mounted file systems: No such file or directory\r\ninvoke-rc.d: policy-rc.d denied execution of start.\r\nExamining /etc/kernel/header_postinst.d.\r\nrun-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae\r\nCreating SSH2 RSA key; this may take some time ...\r\nCreating SSH2 DSA key; this may take some time ...\r\nCreating SSH2 ECDSA key; this may take some time ...\r\ninvoke-rc.d: policy-rc.d denied execution of restart.\r\n\r\nCreating config file /etc/idmapd.conf with new version\r\n\r\nCreating config file /etc/default/nfs-common with new version\r\ninvoke-rc.d: policy-rc.d denied execution of start.\r\n\r\nCreating config file /etc/default/grub with new version\r\ndf: Warning: cannot read table of mounted file systems: No such file or directory\r\nInstalling the VirtualBox Guest Additions\r\nmount: block device /root/images/VBoxGuestAdditions_4.3.26.iso is write-protected, mounting read-only\r\ndf: Warning: cannot read table of mounted file systems: No such file or directory\r\nVirtualBox Guest Additions installer\r\nCopying additional installer modules ...\r\nInstalling additional modules ...\r\nRemoving existing VirtualBox DKMS kernel modules ...done.\r\nRemoving existing VirtualBox non-DKMS kernel modules ...done.\r\nBuilding the VirtualBox Guest Additions kernel modules ...done.\r\nDoing non-kernel setup of the Guest Additions ...done.\r\nStarting the VirtualBox Guest Additions ...fail!\r\n(modprobe vboxguest failed)\r\nInstalling the Window System drivers\r\nCould not find the X.Org or XFree86 Window System, skipping.\r\nCreating a snapshot of the bootstrapped volume\r\nA copy of the bootstrapped volume was created. Path: /root/images/workspace/volume-79e6335f.vmdk.backup\r\nDisabling sshd remote host name lookup\r\nCreating the vagrant user\r\nAdding vagrant insecure public key\r\nAdding partitions to the fstab\r\nConfiguring grub\r\nAdding SSH private key generation init scripts\r\nSetting the selected timezone\r\nAllowing the vagrant user to use sudo without a password\r\nSetting the root password to `vagrant'\r\nInstalling grub\r\nGenerating grub.cfg ...\r\nFound linux image: /boot/vmlinuz-3.2.0-4-686-pae\r\nFound initrd image: /boot/initrd.img-3.2.0-4-686-pae\r\ndone\r\nWriting hostname into the hostname file\r\nInstalling startup scripts\r\nRemoving resolv.conf\r\nEnabling shadowconfig\r\nConfiguring network interfaces\r\nRemoving folder mounts for temporary and cache data\r\nClearing the aptitude cache\r\nSecurely deleting ssh hostkeys\r\nRemoving unused packages\r\nClearing the MOTD\r\nRe-enabling daemon autostart after installation\r\nRemoving temporary files\r\nUnmounting the bootstrap volume\r\nDeleting mountpoint for the bootstrap volume\r\nZeroing unused blocks on the root partition\r\nRemoving volume partitions mapping\r\nDetaching the volume\r\nPackaging the volume as a vagrant box\r\nThe vagrant box has been placed at /root/images/workspace/debian-wheezy-i386-150409.box\r\nDeleting the volume\r\nRemoving the vagrant box directory\r\nDeleting workspace\r\nSuccessfully completed bootstrapping\r\n```\r\n\r\nEdit: This was the first run with the prebootstrapped plugin enabled, earlier runs had the same issue.\r\n\r\nMy manifest file is as follows (slightly modified vanilla manifest):\r\n```\r\n{\r\n        \"provider\": \"virtualbox\",\r\n        \"bootstrapper\": {\r\n                \"workspace\":       \"/root/images/workspace\",\r\n                \"guest_additions\": \"/root/images/VBoxGuestAdditions.iso\",\r\n                \"mirror\":          \"http://httpredir.debian.org/debian\"\r\n        },\r\n        \"image\": {\r\n                \"name\":        \"debian-{system.release}-{system.architecture}-{%y}{%m}{%d}\",\r\n                \"description\": \"Debian {system.release} {system.architecture}\"\r\n        },\r\n        \"system\": {\r\n                \"release\":      \"wheezy\",\r\n                \"architecture\": \"i386\",\r\n                \"bootloader\":   \"grub\",\r\n                \"timezone\":     \"UTC\",\r\n                \"locale\":       \"en_US\",\r\n                \"charmap\":      \"UTF-8\",\r\n                \"hostname\":     \"localhost\"\r\n        },\r\n        \"packages\": {},\r\n        \"volume\": {\r\n                \"backing\": \"vmdk\",\r\n                \"partitions\": {\r\n                        \"type\": \"msdos\",\r\n                        \"boot\": {\r\n                                \"size\":       \"64MiB\",\r\n                                \"filesystem\": \"ext2\"\r\n                        },\r\n                        \"root\": {\r\n                                \"size\":       \"1856MiB\",\r\n                                \"filesystem\": \"ext4\"\r\n                        },\r\n                        \"swap\": {\"size\": \"128MiB\"}\r\n                }\r\n        },\r\n        \"plugins\": {\r\n                \"prebootstrapped\": {\r\n                },\r\n                \"vagrant\": {\r\n                },\r\n                \"minimize_size\": {\r\n                        \"zerofree\": true\r\n                }\r\n        }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/andsens/bootstrap-vz/issues/comments/91289953","html_url":"https://github.com/andsens/bootstrap-vz/issues/209#issuecomment-91289953","issue_url":"https://api.github.com/repos/andsens/bootstrap-vz/issues/209","id":91289953,"user":{"login":"andsens","id":342823,"avatar_url":"https://avatars.githubusercontent.com/u/342823?v=3","gravatar_id":"","url":"https://api.github.com/users/andsens","html_url":"https://github.com/andsens","followers_url":"https://api.github.com/users/andsens/followers","following_url":"https://api.github.com/users/andsens/following{/other_user}","gists_url":"https://api.github.com/users/andsens/gists{/gist_id}","starred_url":"https://api.github.com/users/andsens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andsens/subscriptions","organizations_url":"https://api.github.com/users/andsens/orgs","repos_url":"https://api.github.com/users/andsens/repos","events_url":"https://api.github.com/users/andsens/events{/privacy}","received_events_url":"https://api.github.com/users/andsens/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T16:55:46Z","updated_at":"2015-04-09T16:55:46Z","body":"Yup, that's what I meant. Then there's nothing to worry about, I think it's simply the vbox installer that spits out the wrong error message.\r\n\r\nYou should really use the shrink option in `minimize_size` btw. With it, I can get a barebones debian machine (without guest additions) down to 100MB :-)"}}