<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>1. there is a directory missing in the path, sorry. It must be /sys/devices/system/cpu/cpu<id></div><div><br></div><div>2. yes :)</div><div><br></div><div>Regards,</div><div>Alexander Eichner</div><br><div><div>Alexey Eremenko wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Thu, Apr 22, 2010 at 5:29 AM, Alexander Eichner<br><<a href="mailto:Alexander.Eichner@sun.com">Alexander.Eichner@sun.com</a>> wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">any recent Linux kernel should support it. I used Ubuntu 9.10. Windows is<br></blockquote><blockquote type="cite">also supported but Windows Server 2008 R2 x64 Datacenter edition<br></blockquote><blockquote type="cite">implements CPU hot-add only.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The following commands configure the VM for CPU hotplugging:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Configuration:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VBoxManage modifyvm name --cpuhotplug on -- switches CPu hot-plugging on<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VBoxManage modifyvm name --cpus <nr> -- sets the maximum number of CPus the<br></blockquote><blockquote type="cite">VM can have<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VBoxManage modifyvm name --plugcpu <id> -- Adds the CPU with <id> to the VM<br></blockquote><blockquote type="cite">while it is off<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VBoxManage modifyvm name --unplugcpu <id> -- Removes the CPU with <id> from<br></blockquote><blockquote type="cite">the VM while it is off, CPU 0 can't be removed.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Initiating hot-add/hot-remove events:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VBoxManage controlvm name plugcpu <id> -- Adds CPU <id> while the VM is<br></blockquote><blockquote type="cite">running<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VBoxManage controlvm name unplugcpu <id> -- Removes CPU <id> while the VM is<br></blockquote><blockquote type="cite">running.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Linux doesn't make use of new CPUs by default. You either need to update the<br></blockquote><blockquote type="cite">guest additions which includes a service handling the events.<br></blockquote><blockquote type="cite">If you don't want to update the guest additions you can also execute the<br></blockquote><blockquote type="cite">following command as root:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">echo 1 > /sys/devices/cpus/cpu<id>/online<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">To eject a CPU without installed guest additions you have to do the<br></blockquote><blockquote type="cite">following before actually ejecting the CPU:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">echo 1 > /sys/devices/LNXSYSTEM:00/device:00/ACPI0004:<i>/LNXCPU:<i2>/eject<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The <i> and <i2> numbers don't need to be equal and they do not match the<br></blockquote><blockquote type="cite"><id> value used to enable a CPU. So you have to search for the right CPU<br></blockquote><blockquote type="cite">object unfortunately.<br></blockquote><blockquote type="cite">The reason behind is to prevent ejection of CPUs while the guest may still<br></blockquote><blockquote type="cite">use them. The above command will tell the kernel to disable the CPU.<br></blockquote><blockquote type="cite"><br></blockquote><br>hmm...<br><br>Using Mandriva Linux 2010 guest OS. (kernel 2.6.31)<br>I don't have "cpus" folder under: "/sys/devices/..."<br><br>1. any ideas?<br><br>2. First email was co-sent by "Alexander Eichner" and "Sebastian<br>Dyroff"... Does it mean Alex studying in "TU-Berlin" and also works at<br>Oracle ?<br><br>-- <br>-Alexey Eromenko "Technologov"<br><br>_______________________________________________<br>vbox-dev mailing list<br><a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>http://vbox.innotek.de/mailman/listinfo/vbox-dev<br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sitz der Gesellschaft:</div><div>Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten</div><div>Amtsgericht München: HRB 161028</div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer</span></div><div><font class="Apple-style-span" face="'Lucida Grande'">Vorsitzender des Aufsichstrates: Martin Häring</font></div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></body></html>