Editing Guestmount

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lowercase}}
+
guestmount -a path_to_image.[[qcow2]] -i --ro /mount_point
<code>guestmount</code> command [[mount]] a guest filesystem on the host using [[FUSE]] and <code>[[libguestfs]]</code>. It is included in <code>[[libguestfs-tools]]</code> package.
 
*Man page: https://linux.die.net/man/1/guestmount
 
 
 
== Examples ==
 
* <code>[[guestmount -a]] path_to_image.[[qcow2]] -i --ro /mount_point</code>
 
* <code>guestmount -a path_to_image.[[qcow2]] -i --rw /mount_point</code>
 
 
 
Verify:
 
[[mount]]
 
.../...
 
[[/dev/fuse]] on /mount/path type [[fuse]] (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
 
.../...
 
 
 
-a your_image.[[qcow2]]
 
 
 
-i --inspector  inspect the disks looking for an operating system and mount filesystems as they would be mounted on the real virtual machine
 
-m [[mount]]
 
  
 
  guestmount -a path_to_image.[[qcow2]] -i --ro /mount_point
 
  guestmount -a path_to_image.[[qcow2]] -i --ro /mount_point
 +
guestmount: no operating system was found on this disk
  
  guestmount: no operating system was found on this disk
+
  If using guestfish '-i' option, remove this option and instead
   
+
use the commands 'run' followed by 'list-filesystems'.
  If using guestfish '-i' option, remove this option and instead
+
You can then mount filesystems you want by hand using the
  use the commands 'run' followed by 'list-filesystems'.
+
'mount' or 'mount-ro' command.
  You can then mount filesystems you want by hand using the
 
  'mount' or 'mount-ro' command.
 
 
  If using guestmount '-i', remove this option and choose the
 
  filesystem(s) you want to see by manually adding '-m' option(s).
 
  Use '[[virt-filesystems]]' to see what filesystems are available.
 
 
  If using other virt tools, this disk image won't work
 
  with these tools.  Use the guestfis
 
 
 
  
  libguestfs: error: findfs_uuid: findfs: unable to resolve '[[UUID]]=8bc77dbf-2217-11e9-bf56-525400670XXX'
+
  If using guestmount '-i', remove this option and choose the
 +
filesystem(s) you want to see by manually adding '-m' option(s).
 +
Use 'virt-filesystems' to see what filesystems are available.
  
  guestmount -a IMAGE.qcow2  --rw ./mount_point
+
  If using other virt tools, this disk image won't work
  guestmount: error: you must specify either -i at least one -m option.
+
  with these toolsUse the guestfis
  Try ‘guestmount --help’ for more information.
 
  
  
guestmount -a your_image.qcow2 -i --ro ./dest_path/
 
libguestfs: error: /usr/bin/[[supermin]] exited with error status 1.
 
To see full error messages you may need to enable debugging.
 
Do:
 
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
 
and run the command again.  For further information, read:
 
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
 
You can also run 'libguestfs-test-tool' and post the *complete* output
 
into a bug report or message to the libguestfs mailing list.
 
 
  Solution: execute as root user
 
  
== Related commands ==
 
* <code>[[virt-filesystems]] -a --all --long -h output.img</code>
 
* <code>[[virt-inspector]]</code>
 
* <code>[[findfs]]</code>
 
* <code>[[mount]]</code>
 
* <code>[[guestfish]]</code>
 
* <code>[[virt-rescue]]</code>
 
* <code>[[qemu-nbd]]</code>
 
  
 
== See also ==
 
== See also ==
 +
* {{KVM}}
 
* {{virt}}
 
* {{virt}}
* {{KVM}}
 
  
 
[[Category:KVM]]
 
[[Category:KVM]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: