Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have inherited a Xen setup. The dom0 and domU's are all linux. dom0 has 8 cores (or CPUs, I'm not sure). We want to run more stuff on one domU. I want to make it a multicore CPU, ie so that the domU will see 2 cores.

How do I do this in xen?

I don't care about forcing it to run on 2 specific CPUs (if that's an acceptable solution, that's fine). We're using a generic domU kernel (from somewhere). I don't know if this kernel can support multicore cpus (or if that's even an issue), it's relatively recent, 2.6.26.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

I believe you just add vcpus=2 to the guest's config file.

share|improve this answer

You need to add/modify the vcpus line in the guest's config, however you should be aware that some of the more recent versions of Xen manage the configuration via a backend buried somewhere in /var so you will require more than just a restart of the Guest for it to pick up the configuration changes. It may work fine with a simple restart of the xend service or a reboot. If that doesn't work, an xm destroy then xm create of the Guest should suffice.

(Usual caveat, back up your configs before something permanent like an xm destroy)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.