[pve-devel] balloon stats on win2008r2 working

Alexandre DERUMIER aderumier at odiso.com
Wed Dec 19 12:40:07 CET 2012


mmmm,
seem that windows ballon driver doesn't get stats-polling-interval at start, and sometimes also when running...

vm start with polling interval 2:

(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-polling-interval
{u'return': 2}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}


(QEMU) qom-set path=/machine/peripheral/balloon0 property=stats-polling-interval value=2
{u'return': {}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-set path=/machine/peripheral/balloon0 property=stats-polling-interval value=2
{u'return': {}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'return': 1770397696}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'return': 1770397696}


...

----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 19 Décembre 2012 12:05:06 
Objet: [pve-devel] balloon stats on win2008r2 working 

- I have just installed a win2008R2 (X64) 

install ballon driver 

-go to hardware devices management, find pci device without driver. 
-> update driver->choose disk 

then using 0.48 virtio driver, choose the whl directory 



then install service (I put files in c:\program files\balloon) 

#cd c:\program files\balloon 
#blnsrv --install 

#reboot 

then stats works 

(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-polling-interval 
{u'return': 0} 
(QEMU) qom-set path=/machine/peripheral/balloon0 property=stats-polling-interval value=10 
{u'return': 10} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-polling-interval 
{u'return': 10} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-last-update 
{u'return': 1355914831} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-last-update 
{u'return': 1355914841} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory 
{u'return': 1765306368} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-total-memory 
{u'return': 2147074048} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-swap-in 
{u'return': 2440} 
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-swap-out 
{u'return': 0} 
(QEMU) 


I didn't have tested it with setting polling interval at start, 
I'll try with your last qemu-serve today 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list