Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimize.sh leads to unexpected error in packer (vagrant 1.7.2) #320

Closed
ghost opened this issue Feb 11, 2015 · 5 comments
Closed

minimize.sh leads to unexpected error in packer (vagrant 1.7.2) #320

ghost opened this issue Feb 11, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 11, 2015

    vmware-iso: ++ /sbin/blkid -o value -l -s UUID -t TYPE=swap
    vmware-iso: + readonly swapuuid=cdfcfa00-8e5d-4b2f-a06b-4ae627b8c198
    vmware-iso: + swapuuid=cdfcfa00-8e5d-4b2f-a06b-4ae627b8c198
    vmware-iso: ++ readlink -f /dev/disk/by-uuid/cdfcfa00-8e5d-4b2f-a06b-4ae627b8c198
    vmware-iso: + readonly swappart=/dev/dm-1
    vmware-iso: + swappart=/dev/dm-1
    vmware-iso: + /sbin/swapoff /dev/dm-1
    vmware-iso: + dd if=/dev/zero of=/dev/dm-1 bs=1M
    vmware-iso: dd: writing `/dev/dm-1': No space left on device
    vmware-iso: 929+0 records in
    vmware-iso: 928+0 records out
    vmware-iso: 973078528 bytes (973 MB) copied, 1.53027 s, 636 MB/s
    vmware-iso: + echo 'dd exit code 1 is suppressed'
    vmware-iso: dd exit code 1 is suppressed
    vmware-iso: + /sbin/mkswap -U cdfcfa00-8e5d-4b2f-a06b-4ae627b8c198 /dev/dm-1
    vmware-iso: mkswap: /dev/dm-1: warning: don't erase bootbits sectors
    vmware-iso: on whole disk. Use -f to force.
    vmware-iso: Setting up swapspace version 1, size = 950268 KiB
    vmware-iso: no label, UUID=cdfcfa00-8e5d-4b2f-a06b-4ae627b8c198
    vmware-iso: + dd if=/dev/zero of=/EMPTY bs=1M
    vmware-iso: dd: writing `/EMPTY': No space left on device
    vmware-iso:
    vmware-iso:
    vmware-iso:
    vmware-iso: 7523+0 records in
    vmware-iso:
    vmware-iso: 7522+0 records out
    vmware-iso:
    vmware-iso:
    vmware-iso:
    vmware-iso: 7887540224 bytes (7.9 GB) copied, 10.4424 s, 755 MB/s
==> vmware-iso: Stopping virtual machine...
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Script exited with non-zero exit status: 1```
@xacaxulu
Copy link

xacaxulu commented May 7, 2015

+1

@cheeseplus
Copy link
Contributor

Does this happen with any specific platforms?
Is it still happening?
Does the update to vagrant 1.7.4 resolve the issue?

Any further detail or clarification that can be provided would be helpful.

@cheeseplus
Copy link
Contributor

There isn't enough information here to determine if this is a packer error or an error in the script. If you would like to re-open with more detail please do but I am closing this due to lack of response.

@jperry
Copy link

jperry commented Mar 9, 2018

Did anyone figure out how to fix this? I'm running into this now on Centos 7.4 using latest packer and vagrant on vmware fusion.

    vmware-iso: + swappart=/dev/dm-1
    vmware-iso: + /sbin/swapoff /dev/dm-1
    vmware-iso: + dd if=/dev/zero of=/dev/dm-1 bs=1M
    vmware-iso: dd: error writing ‘/dev/dm-1’: No space left on device
    vmware-iso: 2049+0 records in
    vmware-iso: dd exit code 1 is suppressed

I also checked the disk

[root@localhost ~]# df -h /dev/zero
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        486M     0  486M   0% /dev
[root@localhost ~]# df -h /dev/dm-1
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        486M     0  486M   0% /dev

@jperry
Copy link

jperry commented Mar 9, 2018

I just noticed that the minimize.sh actually suppresses any failures from this command so probably a moot point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants