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

guestmount failing on ubuntu #30

Closed
NathanTP opened this issue Jun 5, 2019 · 1 comment
Closed

guestmount failing on ubuntu #30

NathanTP opened this issue Jun 5, 2019 · 1 comment

Comments

@NathanTP
Copy link
Contributor

NathanTP commented Jun 5, 2019

Marshal may fail with a somewhat cryptic error on ubuntu systems. This is a known issue and it's being documented here for posterity:

Reproduce:
./marshal build test/command.json

Symptom (e.g.):

subprocess.CalledProcessError: Command 'guestmount -a /scratch/nathanp/firesim/sw/firesim-software/images/br-base.img -m /dev/sda /scratch/nathanp/firesim/sw/firesim-software/disk-mount' returned non-zero exit status 1

In the detailed logs you'll see:

libguestfs: error: /usr/bin/supermin exited with error status 1.

This is an issue with guestmount and ubuntu (marshal uses guestmount to manipulate target filesystems without requiring sudo). The bugs are documented here and here. The solution is to add read privileges to the kernel (e.g. sudo chmod +r /boot/vmlinuz-*).

@NathanTP NathanTP closed this as completed Jun 5, 2019
@NathanTP
Copy link
Contributor Author

NathanTP commented Jun 5, 2019

Closed because we can't fix it from mashal, it must be fixed by your sysadmin.

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

1 participant