Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvm - libvirt - clock and cpu settings for windows guests #1003

Open
sperlab opened this issue Oct 20, 2014 · 3 comments
Open

kvm - libvirt - clock and cpu settings for windows guests #1003

sperlab opened this issue Oct 20, 2014 · 3 comments

Comments

@sperlab
Copy link

sperlab commented Oct 20, 2014

The xml produced by veewe should include

    <pae/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='4095'/>
    </hyperv>

and

  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup' track='guest'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>

for windows guests for them to reduce cpu usage and to handle clock properly.

@mpapis
Copy link
Collaborator

mpapis commented Oct 20, 2014

looks like something around here https://github.com/jedi4ever/veewee/blob/master/lib/veewee/provider/kvm/box/create.rb#L39-L53 - can you experiment and open a pull request if you find proper way to do this?

@sperlab
Copy link
Author

sperlab commented Oct 20, 2014

Seems unsupported from ruby libvirt API.
Will try the "XML Nokogiri" style to stick with ruby.
Should do the trick, having already done such with command line sed.

@mpapis
Copy link
Collaborator

mpapis commented Nov 13, 2014

any progress on this? is there anything that can be done in veewee?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants