<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
@font-face
        {font-family:宋体}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:9.0pt;
        font-family:"Calibri","sans-serif"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif"}
span.emailstyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle20
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.Char
        {font-family:"Calibri","sans-serif"}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt; color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt; color:#1F497D">       Thanks for your response!
</span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US" style="font-size:12.0pt; color:#1F497D">But when I use the ssh, I need to know the guest password, and actually it</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt; color:#1F497D">belongs to network communication. I don’t know if the libvirt has some means just</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt; color:#1F497D">like to control the domain to implement the operation?</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt; color:#1F497D">Best Regards</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt; color:#1F497D">From Jiaping LI</span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span style="font-size:10.0pt; font-family:宋体">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt; font-family:宋体"> Dominique Ramaekers [mailto:dominique.ramaekers@cometal.be]
<br>
</span><b><span style="font-size:10.0pt; font-family:宋体">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt; font-family:宋体"> 2015</span><span style="font-size:10.0pt; font-family:宋体">年<span lang="EN-US">11</span>月<span lang="EN-US">6</span>日<span lang="EN-US">
 15:41<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> </span>李笳平<span lang="EN-US">; libvirt-users@redhat.com<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> RE: [libvirt-users] How could I do the guest mount operation from the host?</span></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="NL-BE" style="font-size:11.0pt; color:#1F497D">Why not ssh?</span></p>
<p class="MsoNormal"><span lang="NL-BE" style="font-size:11.0pt; color:#1F497D"> </span></p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="NL" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">Van:</span></b><span lang="NL" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">
<a href="mailto:libvirt-users-bounces@redhat.com">libvirt-users-bounces@redhat.com</a>
<a href="mailto:[mailto:libvirt-users-bounces@redhat.com]">[mailto:libvirt-users-bounces@redhat.com]</a>
<b>Namens </b>???<br>
<b>Verzonden:</b> vrijdag 6 november 2015 3:34<br>
<b>Aan:</b> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<b>Onderwerp:</b> [libvirt-users] How could I do the guest mount operation from the host?</span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="NL-BE"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Hi all,</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">       When I attach a disk like this:</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><disk type='file' device='disk'></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">        <driver name='qemu' type='qcow2' cache='none'/></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">        <source file='/kvmdata/disk/dk389_581.img'/></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">        <backingStore/></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">        <target dev='vda' bus='virtio'/></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">        <alias name='virtio-disk0'/></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">        <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/></span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"></disk></span><span lang="NL-BE"></span></p>
<p class="MsoNormal" style="text-indent:28.0pt"><span lang="EN-US" style="font-size:14.0pt">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:</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">mount /dev/vda1 /mnt</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">       Does Libvirt has some API which can send the guest operation(like mount/umount) from host to guest?</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Thus I can do the operation on host and need not to log on guest to do the operation.</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">       Thanks!</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"> </span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Best Regards</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"> </span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">From Jiaping LI</span><span lang="NL-BE"></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span><span lang="NL-BE"></span></p>
</div>
<div style="border:none; border-top:solid #999999 1.0pt; padding:0cm 0cm 0cm 0cm">
<p>保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!<span lang="NL-BE"></span></p>
</div>
</div>
</div>
<div style="border-top:1px #999999 solid">
<p>保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!</p>
</div>
</body>
</html>