<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
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";
mso-fareast-language:ZH-CN;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:SimSun;
mso-fareast-language:ZH-CN;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:ZH-CN;}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-mailStijl20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Why not ssh?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></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""> libvirt-users-bounces@redhat.com
[mailto:libvirt-users-bounces@redhat.com] <b>Namens </b>???<br>
<b>Verzonden:</b> vrijdag 6 november 2015 3:34<br>
<b>Aan:</b> libvirt-users@redhat.com<br>
<b>Onderwerp:</b> [libvirt-users] How could I do the guest mount operation from the host?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Hi all,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"> When I attach a disk like this:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><disk type='file' device='disk'></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> <driver name='qemu' type='qcow2' cache='none'/></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> <source file='/kvmdata/disk/dk389_581.img'/></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> <backingStore/></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> <target dev='vda' bus='virtio'/></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> <alias name='virtio-disk0'/></span><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"></disk></span><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">mount /dev/vda1 /mnt</span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"> Thanks!</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Best Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">From Jiaping LI</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
</div>
<div style="border:none;border-top:solid #999999 1.0pt;padding:0cm 0cm 0cm 0cm">
<p><span lang="ZH-CN">保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!</span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>