[libvirt-users] How could I do the guest mount operation from the host?

Dominique Ramaekers dominique.ramaekers at cometal.be
Fri Nov 6 07:41:12 UTC 2015

Why not ssh?

Van: libvirt-users-bounces at redhat.com [mailto:libvirt-users-bounces at redhat.com] Namens ???
Verzonden: vrijdag 6 november 2015 3:34
Aan: libvirt-users at redhat.com
Onderwerp: [libvirt-users] How could I do the guest mount operation from the host?

Hi all,
       When I attach a disk like this:
<disk type='file' device='disk'>
        <driver name='qemu' type='qcow2' cache='none'/>
        <source file='/kvmdata/disk/dk389_581.img'/>
        <target dev='vda' bus='virtio'/>
        <alias name='virtio-disk0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
And then I use “fdisk -l” on the guest, can find the disk info, if I want to mount a disk, I should log on the guest and use the command just like:
mount /dev/vda1 /mnt
       Does Libvirt has some API which can send the guest operation(like mount/umount) from host to guest?
Thus I can do the operation on host and need not to log on guest to do the operation.

Best Regards

From Jiaping LI

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20151106/ac232784/attachment.htm>

More information about the libvirt-users mailing list