Ask Your Question

Revision history [back]

where you added the vcpu_pin_set = 1 to nova.conf? the [DEFAULT] section or just at the end of nova.conf? if you didn't add it to the correct [DEFAULT] section, it will be invalid. you can try ot add it like this: ubuntu@wp-devstack:/opt/stack/nova$ head /etc/nova/nova.conf

[DEFAULT] vcpu_pin_set = 1 log_dir=/var/log/nova compute_driver = libvirt.LibvirtDriver firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver

2013-06-27

Wangpan

发件人:Peeyush Gupta question231384@answers.launchpad.net 发送时间:2013-06-27 13:26 主题:Re: [Question #231384]: How to set cpuset attribute in vcpu element in instance xml? 收件人:"hzwangpan"hzwangpan@corp.netease.com 抄送:

Question #231384 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+question/231384

Status: Answered => Open

Peeyush Gupta is still having a problem: Hi wangpan, thanks for the reply. I am running Ubuntu 12.04 as a VM on Fedora 18 host. Here are the details:

  1. I am using kvm.
  2. I have 3 pcpus.
  3. I set vcpu_pin_set = 2 in nova.conf
  4. Here is the xml:

<domain type="qemu"> <name>instance-00000009</name> <uuid>08c556d1-1e23-484e-94b2-e973eeb1b936</uuid> <memory>524288</memory> <currentmemory>524288</currentmemory> <vcpu>1</vcpu> <sysinfo type="smbios"> <system> <entry name="manufacturer">OpenStack Foundation</entry> <entry name="product">OpenStack Nova</entry> <entry name="version">2013.2</entry> <entry name="serial">bd348807-a480-1b3f-eb66-65b2d88cba58</entry> <entry name="uuid">08c556d1-1e23-484e-94b2-e973eeb1b936</entry> </system> </sysinfo> <os> <type arch="x86_64" machine="pc-1.0">hvm</type> <boot dev="hd"/> <smbios mode="sysinfo"/> </os> <features> <acpi/> <apic/> </features> <clock offset="utc"/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none"/> <source file="/opt/stack/data/nova/instances/08c556d1-1e23-484e-94b2-e973eeb1b936/disk"/> <target dev="vda" bus="virtio"/>

</disk> <interface type="bridge"> <mac address="fa:16:3e:79:07:c0"/> <source bridge="br100"/> <model type="virtio"/> <driver name="qemu"/> <filterref filter="nova-instance-instance-00000009-fa163e7907c0"/>
</interface> <serial type="file"> <source path="/opt/stack/data/nova/instances/08c556d1-1e23-484e-94b2-e973eeb1b936/console.log"/> <target port="0"/> </serial> <serial type="pty"> <target port="1"/> </serial> <console type="file"> <source path="/opt/stack/data/nova/instances/08c556d1-1e23-484e-94b2-e973eeb1b936/console.log"/> <target type="serial" port="0"/> </console> <input type="tablet" bus="usb"/> <input type="mouse" bus="ps2"/> <graphics type="vnc" port="-1" autoport="yes" listen="127.0.0.1" keymap="en-us"> <listen type="address" address="127.0.0.1"/> </graphics> <video> <model type="cirrus" vram="9216" heads="1"/>
</video> <memballoon model="virtio">
</memballoon> </devices> </domain>

1,1 Top

--
You received this question notification because you are a direct subscriber of the question.