[libvirt-users] libvirt networking

Did something happen in the last day or two that would have screwed up libvirt networking? I just started up a VM that I last ran on Sunday and it has suddenly developed issues with communication with the host machine. Call it VM1 and VMHOST (the libvirt network) and VMHOST_EXT VM1 ping -> Internet works VM1 ssh -> Internet works VM1 ping -> VMHost single ping goes through VM1 ssh -> VMHost works VMHOST_EXT ping -> VM1 works VMHOST_EXT ssh -> VM1 fails The only things that have changed were Ubuntu security updates to VMHOST (It is an Oneiric). The VM1 is intentionally kept unchanging to avoid breaking some software which will not work on newer releases (jaunty). Again, I was using the VM and mounting fs from VMHOST on it as recently as Sunday. Either there is something deep inside Ubuntu that has gotten deeply confused or someone has released an update that breaks things.

On Tue, Aug 21, 2012 at 09:52:42PM -0700, Dale Amon wrote:
Did something happen in the last day or two that would have screwed up libvirt networking? I just started up a VM that I last ran on Sunday and it has suddenly developed issues with communication with the host machine.
Call it VM1 and VMHOST (the libvirt network) and VMHOST_EXT
VM1 ping -> Internet works VM1 ssh -> Internet works
VM1 ping -> VMHost single ping goes through VM1 ssh -> VMHost works
VMHOST_EXT ping -> VM1 works VMHOST_EXT ssh -> VM1 fails
The only things that have changed were Ubuntu security updates to VMHOST (It is an Oneiric).
The VM1 is intentionally kept unchanging to avoid breaking some software which will not work on newer releases (jaunty).
Again, I was using the VM and mounting fs from VMHOST on it as recently as Sunday.
Either there is something deep inside Ubuntu that has gotten deeply confused or someone has released an update that breaks things.
No answers but just as well because I found the answer. A partition I left mounted over night got caught in a cron job updatedb and filled the root disk. Seems to be back to normal now and I have taken measures to avoid this in the future. If anyone scratched their head of this one, thanks for the thoughts.

hi,all Does any of you know how to get the vnc port of a running vm through libvirt API instead of virsh vncdisplay ? I can't find any relevent API from libvirt, many thanks! regards, zhang zhang

[please drop spurious in-reply-to headers when starting a new thread. Also, your mailer needs to learn to wrap long lines] On 08/22/2012 09:57 PM, 张章 wrote:
hi,all Does any of you know how to get the vnc port of a running vm through libvirt API instead of virsh vncdisplay ? I can't find any relevent API from libvirt, many thanks!
Looking at the source code of virsh, 'vncdisplay' boils down to a call to virDomainGetXMLDesc followed by scraping the XML for the XPath /domain/devices/graphics[@type='vnc']/@port -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

hi,all Does any of you know how to get the vnc port of a running vm through libvirt API instead of virsh vncdisplay ? I can't find any relevent API from libvirt, many thanks! regards, zhang zhang

hi,all Does any of you know how to get the vnc port of a running vm through libvirt API instead of virsh vncdisplay ? I can't find any relevent API from libvirt, many thanks! regards, zhang zhang
participants (3)
-
Dale Amon
-
Eric Blake
-
张章