<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
vzctl doesn't have it, but there is &quot;vzmlocal&quot; utility that does the trick.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
We're working on libvirt though, supposedly libvirt-related utilities should be able to cover functionality that was available through prlctl (virsh, virt-* tools, etc).</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div><br>
</div>
<div>Best Regards,</div>
<div>--</div>
<div>Pavel Vokhmyanin</div>
<div>Management and Integrations</div>
<div>Virtuozzo</div>
</div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>妍找:</b> jehan Procaccia &lt;jehan.procaccia@imtbs-tsp.eu&gt;<br>
<b>妍找扭把忘志抖快扶抉:</b> 4 技忘攸 2022 忍. 17:45<br>
<b>妞抉技批:</b> OpenVZ users &lt;users@openvz.org&gt;; Pavel Vokhmyanin &lt;pvokhmyanin@virtuozzo.com&gt;<br>
<b>妥快技忘:</b> Re: [Users] Equivalent &quot;virsh&quot; commands to set container parameters like &quot;prlctl set&quot;</font>
<div>&nbsp;</div>
</div>
<div>
<p>Hello, <br>
</p>
<p>I have the same remark/question regarding prlctl depreciation</p>
<p>what should we use to clone a CT ?</p>
<p>I used to <br>
</p>
<p><i><font size="2">prlctl clone ct-templvz8 --name myvz8server</font></i></p>
<p><i><font size="2"><br>
</font></i></p>
<p>nor vzctl nor virsh seems to do the job for cloning a CT, it still works with prlctl , but what should we use now and when prlctl will be really deprecated .</p>
<p>all these change are just a question of terminology or it is because of a breakthrough towards new API/libvirt etc ...?<br>
</p>
<p><br>
</p>
<p>Thanks <br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">Le 22/04/2022 角 12:42, Pavel Vokhmyanin a 谷crit&nbsp;:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hello Paulo,</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Virsh itself doesn't really have a &quot;create&quot; command. It can define domain based on xml.</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
You either compose this xml yourself, or use virt-install to compose it for you. You can also use vzctl or install prl-disp-service and use prlctl.</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
If we're talking about OpenVZ9, you can use these commands for virt-install:</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I.e.&nbsp;<span style="font-family:&quot;Open Sans&quot;,sans-serif; font-size:12pt">To create a container do the following:</span>
<ol class="x_arabic" style="margin:0px 0px 0px 40px; padding:0px
          0px 10px; font-family:&quot;Open Sans&quot;,sans-serif; list-style:none; clear:left; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<li style="margin:0px 0px 10px">
<p style="margin:0px 0px 20px">Create a disk image with<span>&nbsp;</span><code class="x_docutils x_literal x_notranslate" style="margin:0px; padding:1px 4px; font-family:Inconsolata,serif; background:rgb(235,235,235)"><span class="x_pre" style="margin:0px">vzpkg</span></code>.
 For example:</p>
<div class="x_highlight-text x_notranslate" style="margin:0px
              0px 20px; padding:10px 20px; border:1px solid rgb(235,235,235); line-height:24px; font-family:Inconsolata,serif; overflow-x:auto; background:rgb(245,245,245); box-sizing:border-box">
<div class="x_highlight" style="margin:0px">
<pre style="margin:0px"><span style="margin:0px"></span># mkdir -p /vz/mylinuxct
# vzpkg create image centos-7-x86_64 /vz/mylinuxct/mylinuxct.hdd
Creating Container root image at /vz/mylinuxct/mylinuxct.hdd (centos-7-x86_64)
&lt;...&gt;
Image was succesfully created at /vz/mylinuxct/mylinuxct.hdd
</pre>
</div>
</div>
</li><li style="margin:0px 0px 10px">
<p style="margin:0px 0px 20px">Create the container based on the disk image. For example:</p>
<div class="x_highlight-text x_notranslate" style="margin:0px
              0px 20px; padding:10px 20px; border:1px solid rgb(235,235,235); line-height:24px; font-family:Inconsolata,serif; overflow-x:auto; background:rgb(245,245,245); box-sizing:border-box">
<div class="x_highlight" style="margin:0px">
<pre style="margin:0px"><span style="margin:0px"></span># virt-install \
--connect vzct:///system \
--name mylinuxct \
--memory 2048 \
--disk 'path=/vz/mylinuxct/mylinuxct.hdd,boot_order=1,size=64' \
--graphics vnc,port=5903,listen=0.0.0.0
&lt;...&gt;
Starting install...
Domain creation completed.
You can restart your domain by running:
&nbsp; virsh --connect vzct:///system start mylinuxct</pre>
</div>
</div>
</li></ol>
</div>
<div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Note, that is &quot;vzct&quot; driver, not &quot;vz&quot; or &quot;openvz&quot;. It's a new driver implementation that uses libvzctl and vzevent instead of prl-disp-service integration.</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Speaking of configuration you mentioned, they are not well documented at the moment. Easiest way for you to figure out how it translates into domain.xml is to use vzctl for configuration, and see how it reflects in the configuration file. Settings were designed
 to reuse VM (QEMU) configuration schema where possible.&nbsp;</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
</div>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div><br>
</div>
<div>Best Regards,</div>
<div>--</div>
<div>Pavel Vokhmyanin</div>
<div>Management and Integrations</div>
<div>Virtuozzo</div>
</div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>妍找:</b>
<a class="x_moz-txt-link-abbreviated" href="mailto:users-bounces@openvz.org">users-bounces@openvz.org</a>
<a class="x_moz-txt-link-rfc2396E" href="mailto:users-bounces@openvz.org">&lt;users-bounces@openvz.org&gt;</a> 抉找 我技快扶我 Paulo Coghi - Coghi IT
<a class="x_moz-txt-link-rfc2396E" href="mailto:paulocoghi@gmail.com">&lt;paulocoghi@gmail.com&gt;</a><br>
<b>妍找扭把忘志抖快扶抉:</b> 1 忘扭把快抖攸 2022 忍. 8:41<br>
<b>妞抉技批:</b> OpenVZ users <a class="x_moz-txt-link-rfc2396E" href="mailto:users@openvz.org">
&lt;users@openvz.org&gt;</a><br>
<b>妥快技忘:</b> [Users] Equivalent &quot;virsh&quot; commands to set container parameters like &quot;prlctl set&quot;</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">Hello OpenVZ community,<br>
<div><br>
</div>
<div>Now that new OpenVZ versions have officially&nbsp;migrated to virsh as the main management tool, I would like to ask which are the equivalent commands in vitsh to set parameters provided by &quot;prlctl set&quot;, like --cpulimit, --cpuunits, --nodemask, --ioprio, --ioprio,
 --iolimit, --rate, --ratebound.<br>
<br>
Also, is there any important step on virsh to ensure the creation of a container instead of a vm, like prlctl create&nbsp; --vmtype ct?<br>
<br>
<br>
Cordially,<br>
Paulo Coghi</div>
</div>
</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Users mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</body>
</html>