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

libvirt & guestfish : Cannot run the image : Original error from libvirt: Cannot access storage file '/root/debian-9.1.1-20170725-openstack-amd64.qcow2' (as uid:107, gid:107): Permission denied [code=38 int1=13] #68

Open
AJNOURI opened this issue Aug 5, 2017 · 2 comments
Assignees

Comments

@AJNOURI
Copy link
Owner

AJNOURI commented Aug 5, 2017

I would like to change the password of the default login username on Xenial from the image using guestfish

[root@devstack1 ~]# guestfish --rw -a debian-9.1.1-20170725-openstack-amd64.qcow2

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell

run
◓ 25% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒════════════════════════════════════════════════════════════════════════⟧ --:--
libguestfs: error: could not create appliance through libvirt.

Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct

Original error from libvirt: Cannot access storage file '/root/debian-9.1.1-20170725-openstack-amd64.qcow2' (as uid:107, gid:107): Permission denied [code=38 int1=13]

@AJNOURI AJNOURI self-assigned this Aug 5, 2017
@AJNOURI
Copy link
Owner Author

AJNOURI commented Aug 5, 2017

I moved the images to /var/lib/libvirt/images
as instructed here http://www.cloudkb.net/change-root-password-kvm-qcow2-image/

mv debian-9.1.1-20170725-openstack-amd64.qcow2 /var/lib/libvirt/images/debian-9.1.1-20170725-openstack-amd64.qcow2

Now I got another error:

[root@devstack1 images]# guestfish --rw -a debian-9.1.1-20170725-openstack-amd64.qcow2

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell

run
libguestfs: error: could not create appliance through libvirt.

Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct

Original error from libvirt: internal error: process exited while connecting to monitor: qemu-kvm: /builddir/build/BUILD/qemu-2.6.0/target-i386/kvm.c:1736: kvm_put_msrs: Assertion `ret == n' failed. [code=1 int1=-1]

@Masber
Copy link

Masber commented Mar 13, 2019

Hi,
did you got around this issue?

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

2 participants