<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">在 2015年11月12日,下午11:30,lyt_yudi <<a href="mailto:lyt_yudi@icloud.com" class="">lyt_yudi@icloud.com</a>> 写道:</div><div class=""><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">thanks, </div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">I want to direct use the block device, not use mount a disk  to  the directory inside the container</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">the resize feature isn’t so important for me, because here to use the whole disk .</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div></div></blockquote></div><div class=""><br class=""></div>hi, this feature isn’t planned? and isn’t  support too in future ?<div class=""><br class=""></div><div class="">in this post: </div><div class="">add device option for lxc.</div><div class=""><a href="http://askubuntu.com/questions/528161/how-to-make-a-hdd-device-file-dev-sdxy-available-in-lxc-container" class="">http://askubuntu.com/questions/528161/how-to-make-a-hdd-device-file-dev-sdxy-available-in-lxc-container</a></div><div class=""><br class=""></div><div class=""><pre class=""><font face="Helvetica" class=""><span style="white-space: normal;" class="">——————————</span></font></pre></div><div class=""><p class="">If you really need access to your device, you can make it available in your container:</p>

<pre class=""><code class="">$ grep devices /var/lib/lxc/ubuntu-trusty-amd64/config
lxc.cgroup.devices.allow = b 8:1 rwm</code></pre><p class="">This will make /dev/sda1 available in your container (8:1 is the block device major:minor).</p><div class=""><pre class=""><font face="Helvetica" class=""><span style="white-space: normal;" class="">——————————</span></font></pre><pre class=""><font face="Helvetica" class=""><span style="white-space: normal;" class="">so, I think, the pve-lxc is only support:  shared directory option </span></font></pre><pre class=""><font face="Helvetica" class=""><span style="white-space: normal;" class="">and no support: device option</span></font></pre></div><div class="">if like the KVM, can add the whole block disk for the vm, it’s a pretty good feature. </div><div class=""><br class=""></div><div class="">Thanks.</div></div></body></html>