李笳平
2015-Nov-06 02:34 UTC
[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'/> <backingStore/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> 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. Thanks! Best Regards From Jiaping LI 保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!
Dominique Ramaekers
2015-Nov-06 07:41 UTC
Re: [libvirt-users] How could I do the guest mount operation from the host?
Why not ssh? Van: libvirt-users-bounces@redhat.com [mailto:libvirt-users-bounces@redhat.com] Namens ??? Verzonden: vrijdag 6 november 2015 3:34 Aan: libvirt-users@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'/> <backingStore/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> 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. Thanks! Best Regards From Jiaping LI 保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!
李笳平
2015-Nov-06 09:13 UTC
[libvirt-users] 答复: How could I do the guest mount operation from the host?
Hi, Thanks for your response! But when I use the ssh, I need to know the guest password, and actually it belongs to network communication. I don’t know if the libvirt has some means just like to control the domain to implement the operation? Best Regards From Jiaping LI 发件人: Dominique Ramaekers [mailto:dominique.ramaekers@cometal.be] 发送时间: 2015年11月6日 15:41 收件人: 李笳平; libvirt-users@redhat.com 主题: RE: [libvirt-users] How could I do the guest mount operation from the host? Why not ssh? Van: libvirt-users-bounces@redhat.com<mailto:libvirt-users-bounces@redhat.com> [mailto:libvirt-users-bounces@redhat.com]<mailto:[mailto:libvirt-users-bounces@redhat.com]> Namens ??? Verzonden: vrijdag 6 november 2015 3:34 Aan: libvirt-users@redhat.com<mailto:libvirt-users@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'/> <backingStore/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> 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. Thanks! Best Regards From Jiaping LI 保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢! 保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!
Maybe Matching Threads
- 答复: How could I do the guest mount operation from the host?
- 答复: How could I do the guest mount operation from the host?
- How could I do the guest mount operation from the host?
- Re: How could I do the guest mount operation from the host?
- Re: How could I do the guest mount operation from the host?