[Libvir] XVDA
I have on question...when I go to grab blockStats...why do I have use XVDA vs. HDA? Just wondering if there was something I was missing. I have all of my Xen Domu's set up to use HDA is there some compelling reason to change over? -- Spencer Parker ___ if you can't go to heaven, may you at least die in Ireland. ___ -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [Libvir] API confusion...
When I pull out network stats...it just gives me a tuple. Is there any documentation on what this is actually displaying so I can format accordingly? On Wed, Apr 9, 2008 at 12:12 AM, Richard W.M. Jones [EMAIL PROTECTED] wrote: On Tue, Apr 08, 2008 at 03:47:05PM -0600, Spencer Parker wrote: Since I am kind of an idiot and don't know what I am doing...I am having trouble with getting network stats to work in Python. I have everything correct...but I am just not sure exactly what it is looking for. I get this error: libvir: Xen error : invalid argument in xenHypervisorDomainInterfaceStats: invalid path, should be vifdomid.n. I guess I just need some kind of example to work from on this. As described in the error message, try setting the path to something like vif1.0 where 1 is the domain ID and 0 is the interface number. You can enumerate interfaces available by dumping the domain XML. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v http://et.redhat.com/%7Erjonesvirt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2vhttp://et.redhat.com/%7Erjones/virt-p2v -- Spencer Parker ___ if you can't go to heaven, may you at least die in Ireland. ___ -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [Libvir] Web Interface Question
I am actually in the process of trying to develop one of these in Python. Since I am pretty new to python or programming in general, it has been a really good learning experience. I haven't really gotten very far yet...since its all learning about basically everything...its been fun. I have made some basic calls to the API and had the info shoved into a MySQL database...but thats about...nothing grand. On Mon, Apr 7, 2008 at 12:44 PM, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Mon, Apr 07, 2008 at 02:38:17PM +0100, Richard W.M. Jones wrote: On Sat, Apr 05, 2008 at 09:35:33PM +0100, Henri Cook wrote: I'm designing a web interface for libvirt so that my customers can manage their DomUs - unless you know of a good one that already exists??? I'm thinking that the best way to run this is have the web server connected to libvirtd - but I can't find any documentation about the API it presents - can you help? I sort of gathered from IRC that you are using Perl Dan's Perl bindings. This is the right approach. In order to be able to contact libvirtd without needing to run anything as root you (may) need to change the permissions on the libvirtd socket (normally /var/run/libvirt/libvirt-sock). If your libvirt was configured to use PolicyKit you may also need to edit the configuration file /etc/PolicyKit/PolicyKit.conf to allow your web server user access to the privilege 'org.libvirt.unix.manage'. PolicyKit is one option - you'd need to edit /etc/PolicyKit/PolicyKit.conf to add an explicit rule allowing the httpd user access. Alternatively you could switch the UNIX socket to use SASL as its auth method, and setup a SASL username password There's some docs here http://libvirt.org/auth.html Dan. -- |: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/:| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/http://search.cpan.org/%7Edanberr/:| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list -- Spencer Parker ___ if you can't go to heaven, may you at least die in Ireland. ___ -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[Libvir] Not able to access the network.
I have set up a machine using virsh, but I can't access it over the network. It has valid IP and everything like that. It is all running over eth1 and not eth0. Any idea as to why I can't get network access on it? I have assigned it a valid bridge. I try to ping the IP I gave it and I get nothing. -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[Libvir] Updating to the newest libvirt
I am running CentOS 5 on a 64 bit system and when I try to install via Yum...the newest version I can get is 0.2.3-9.el5. When I try to install with RPM's it just throws up conflicts. is there a newer version of libvirt that I can install onto CentOS 5...or am I just confusing things. Thanks again for helping this newbie out... spencer parker -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[Libvir] Trouble getting console
I have setup a virtual machine, but am not able to connect to the console for it. I type in virsh console name and it give me a new line with no output...I hit enter a few time to see it kicks in, but nothing. here is my xml file: domain type='xen' nametest1/name uuid4dea22b31d52d8f32516782e98ab3fa0/uuid os typehvm/type loader/usr/lib/xen/boot/hvmloader/loader boot dev='hd'/ /os memory262144/memory vcpu1/vcpu on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashrestart/on_crash features pae/ acpi/ apic/ /features clock sync=localtime/ devices emulator/usr/lib64/xen/bin/qemu-dm/emulator interface type='bridge' source bridge='xenbr1'/ script path='vif-bridge'/ /interface disk type='file' device='disk' driver name='tap' type='aio'/ source file='/xen/domains2/spencertest2/disk.img'/ target dev='hda'/ /disk disk type='file' device='disk' driver name='tap' type='aio'/ source file='/xen/domains2/spencertest2/swap.img'/ target dev='hdb'/ /disk graphics type='vnc' port='-1'/ console tty='/dev/pts/1'/ /devices /domain -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[Libvir] a couple of questions -Newbie
I am really excited to start using this, but I have a couple of questions about how to use it exactly. I want to be able to pull a list of stats out of my Xen machines. I need to get something like network i/o. I just need to know how much in and out traffic that a specific machine is doing. I am pretty new to python and to programming in general. I have looked at the APi and stuff like that, but am a little confused still on how to actually do this. Mainly I just need to know how to connect to certain things. Once I have a basic understanding of what is going on then I can take it from there. Thanks for all the help! Spencer Parker -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[Libvir] API Question...
Okay...so I am still trying to get what this says I can get. But I want to do it with Python. I am looking at this: virDomainInterfaceStatsStruct and wondering if I can grab this info with Python or not. I looked at the libvirt module, but I don't see how I would grab this. Any ideas? -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list