Ask Your Question
1

How can I grant qemu access to an image on an external HDD?

asked 2017-07-26 10:32:39 -0600

Demi gravatar image

How can I grant qemu access to an image on an external HDD?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-07-26 15:40:47 -0600

ssieb gravatar image

updated 2017-07-26 16:30:57 -0600

If the external drive is EXT4, then you can do chcon -t virt_image_t /path/to/file.

If the drive is something else, it's more difficult. The other filesystems don't support permissions, so the default permissions are 644 and can't be modified. If you need to be able to write to the image, you will have to mount the drive with a different umask.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-07-26 10:32:39 -0600

Seen: 47 times

Last updated: Jul 26 '17