Qemu Command Wrapper
The qemu system comes with powerful tools, such as qemu-img and qemu-nbd which are used here to build up kvm images.
Pass in the mnt dict returned from nbd_mount to unmount and disconnect the image from nbd. If all of the partitions are unmounted return an empty dict, otherwise return a dict containing the still mounted partitions
CLI Example:
salt '*' qemu_nbd.clear '{"/mnt/foo": "/dev/nbd0p1"}'
Activate nbd for an image file.
CLI Example:
salt '*' qemu_nbd.connect /tmp/image.raw
Mount the named image via qemu-nbd and return the mounted roots
CLI Example:
salt '*' qemu_nbd.init /srv/image.qcow2
Pass in the nbd connection device location, mount all partitions and return a dict of mount points
CLI Example:
salt '*' qemu_nbd.mount /dev/nbd0
Generated on December 02, 2024 at 20:43:35 UTC.
You are viewing docs for the previous stable release, 3006.9. Switch to docs for the latest stable release, 3007.1, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy