mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Add feature-complete /domain/clock support
Feature reference: https://libvirt.org/formatdomain.html#time-keeping
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<spinlocks state='on' retries='4096' />
|
||||
</hyperv>
|
||||
</features>
|
||||
<clock offset='variable'>
|
||||
<clock offset='variable' basis='localtime' adjustment='-31536000'>
|
||||
<timer name='t1'/>
|
||||
<timer name='t2' track='b' tickpolicy='c' frequency='d' mode='e' present='yes'/>
|
||||
</clock>
|
||||
|
||||
@@ -62,7 +62,8 @@ describe 'templates/domain' do
|
||||
domain.cpu_mode = 'custom'
|
||||
domain.cpu_feature(name: 'AAA', policy: 'required')
|
||||
domain.hyperv_feature(name: 'BBB', state: 'on')
|
||||
domain.clock_offset = 'variable'
|
||||
domain.clock_adjustment = -(365 * 24 * 60 * 60)
|
||||
domain.clock_basis = 'localtime'
|
||||
domain.clock_timer(name: 't1')
|
||||
domain.clock_timer(name: 't2', track: 'b', tickpolicy: 'c', frequency: 'd', mode: 'e', present: 'yes')
|
||||
domain.hyperv_feature(name: 'spinlocks', state: 'on', retries: '4096')
|
||||
|
||||
Reference in New Issue
Block a user