similar to: Non-Root not able to use openReadOnly()

Displaying 20 results from an estimated 400 matches similar to: "Non-Root not able to use openReadOnly()"

2010 Mar 12
1
unable to get domain list of KVM guests from libvirt as non-root user
I have a python script that monitors the guest VMs on a servers running Xen, but the script doesn't work properly on a server I just built with KVM. The script runs as a non-root user (same on all servers) and simply gathers some details on the status and names of the domains running on the host. The Xen and KVM servers are running CentOS 5.4 x86_64 and are using the same version of
2011 Dec 05
5
Ubuntu 11.04 shutdown Problem
I am using old Xen Rpms which comes with RHEL 5.5 . xen-3.0.3-105.el5. I am running Ubuntu 11.04 Full Virt on this. But after a gap of 2 or 3 days this VM gets shutdown automatically. I have checked the logs there is nothing suspicious.. What can be reason for it..?? Any one has faced same problem?? -- Thanks Vipul Borikar "Our task must be to free ourselves...by widening our circle of
2011 Oct 25
4
Ubuntu 11.04 DomU not showing external block Device
Hello, I just installed Xen 4.0.1 on Ubuntu 10.04 dom0. After this i had Ubuntu 11.04 as Para domU. I tried to attach file based disk to the this domU. My command is: # xm block-attach Ubuntu-11 file:/root/ubunut-natty/Extra /dev/xvdb w there is no error on this. But inside the DomU i cannot see any disk xvdb. xend.log shows : [2011-10-25 16:27:32 14794] DEBUG
2011 Feb 09
1
How to use Python Binding with Lbivirt.
HI, I am using ubuntu host machine and KVM is present as guest in that machine.Two virtual machines are there.I am using Python binding to query on the hypervisor and extract the VM related information. Here is my simple code: #!/*usr*/local/bin/*python * import libvirt import sys conn = libvirt.openReadOnly(None) if conn == None: print *'Failed to open connection to the
2010 Mar 10
2
unable to get domain status from libvirt & KVM
I have a python script that monitors the VMs on physical host servers running Xen, but the script doesn't work properly on a server I just built with KVM. The script runs as a non-root user and simply gathers some details on the status and names of the domains running on the host. Both Xen and KVM servers are running the same version of libvirt (libvirt-0.6.3-20.1.el5_4) and have the
2011 Oct 10
1
Child process died
Hello, I have installed libguestfs on RHEL 5.5 64 bit. 3 packages i have installed. libguestfs-tools-c-1.9.10-1.1 libguestfs-tools-1.9.10-1.1 libguestfs-1.9.10-1.1 When i am trying to run virt-resize it gives me error: virt-resize -expand /dev/sda1 vm01.scilab vm01.scilab-15GB -d libguestfs: trace: add_drive_opts "vm01.scilab" "readonly:true" libguestfs: trace:
2010 Mar 11
2
unable to get domain status from libvirt & KVM
I have a python script that monitors the VMs on physical host servers running Xen, but the script doesn't work properly on a server I just built with KVM. The script runs as a non-root user (same on all servers) and simply gathers some details on the status and names of the domains running on the host. Both Xen and KVM servers are running the same version of libvirt
2012 Jan 29
1
libvir: error : cannot getpwuid_r(107): Success
I am on RHEL 6.1 running KVM. I am getting following error when i start a Ubuntu 11.10 Guest I am attaching my xml file . # virsh -c qemu:///system create Ubuntu-110.10.xml error: Failed to create domain from Ubuntu-110.10.xml error: internal error Process exited while reading console log output: 16:19:53.991: 2418: info : libvirt version: 0.8.7, package: 18.el6 (Red Hat, Inc.
2012 Feb 02
2
KVM Image not working after expansion
Hello, I expanded a KVM image of 4gb to 10 gb .... My Host machine is RHEL 6.1 and Guest is RHEL 5.5 Command i used is: virt-resize --expand /dev/sda1 RHEL5.5-64bit.img RHEL5.5-10gb Commands successfully gets executed... Old disk works fine i mean it boots properly but the new disk stucks at GRUB... Has any one seen this behavior... What should i do to debug this problem.. --
2011 Oct 31
2
Python API for Resizing the disk
Is there Python Binding for Resizing the Image just like "virt-resize" does? -- Thanks Vipul Borikar "Our task must be to free ourselves...by widening our circle of compassion to embrace all living creatures and the whole of nature and its beauty." -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Jan 19
1
Python Bindings for Python 2.7
Hello, I want to source compile the libvirt 0.8.4 with its Python bindings. I have python 2.4 rpm installed but i dont use it. I use Python 2.7 source compiled version. So when i compile libvirt it produces bindings for Python 2.4 which is obvious choice since it is rpm. So how should i make it point to Python 2.7 so that it produces bindings for it. Installed path of Python 2.7 is
2011 May 15
1
(no subject)
Hello, I am using python bindings of libvirt. When I use the function listDomainsID( ) it successfully returns me the list of the ids of my current virtual machines, but when I call function listDefinedDomains( ) it returns me an empty list. Is this some kind of bug because as per my understanding listDefinedDomains should return a superset of vm's as returned by listDefinedDomains(). I am
2012 Jan 11
1
Unable to close open libvirt connections
Hello, I was getting the following error in syslog: libvirtd: 21:19:12.116: 10955: error : qemudDispatchServer:1355 : Too many active clients (20), dropping connection from 127.0.0.1;0 I investigated a bit and tried the following in a python console: import libvirt ~~~~ conn=libvirt.openReadOnly("qemu+ssh://HOST_IP/system<http://10.16.71.1/system> ") //now check the no. of
2010 Mar 18
2
Care to share an R presentation?
The R movement is picking up steam in the center of America. People that ignored my R-enthusiasm 10 years ago are now calling me up asking for presentations. I need to make a 2 hour presentation to a collection of faculty and grad students who might like to use R. I don't want to make it seem too complicated (as I often do), but I don't want to mislead them to think it will be easy. I
2011 Feb 08
1
Libvirt in Windows not working
Hi, This is Arpita. I am using Libvirt API in the Windows Vista system.VMware is installed over there.I have installed Libvirt and Python 2.6 in the Windows Vista system andhave written a small test file in Python. Here is the code: import libvirt* * import sys conn = libvirt.openReadOnly(None) if conn == None: print *'Failed to open connection to the hypervisor' * sys.exit(1)
2011 Feb 10
0
How to retrieve Memory stat of the KVM using python binding with Libvirt API
Hi , I am using ubuntu host machine and KVM is present as guest in that machine.Two virtual machines are there.I am using Python binding to query on the hypervisor and extract the VM related information.I like to print memory stat of the VM like SWAP_IN , SWAP_OUT,free memory, mem cached etc.So, the code, I have written for this, is : #!/usr/local/bin/python import libvirt import sys conn =
2012 May 05
1
listing active and defined vs inactive and defined domains
i am trying to list active + defined and inactive + defined domains using libvirt 0.9.4 i can get active domains using: def s_activedomains(conn): #get active domain ids numofdomains=libvirt.virConnect.numOfDomains(conn) activedomains=libvirt.virConnect.listDomainsID(conn) return activedomains i am stuck on how to get inactive domains the example listed
2011 Jan 31
1
Image Not Expanding
Hello, I am running xen with libvirt. I have an image(Fedora12) with xen para virt and run with the help of libvirt. So i wanted to increase the size of this image from 1GB to 2 GB. I am using virt-resize command for this. When i do : virt-list-partitions it displays 2 partitions 1] /dev/sda1 and 2] /dev/sda2 I want to resize this to 2 gb So i do like this: virt-resize
2012 May 14
0
Script execution at Boot
I am using KVM on RHEL 6.1. When i try to run a RHEL 5.5 Guest using virt-manager the a shell script put under rc.local runs properly. But when i try to run Guest using cmd line the script doesn't run. I mean it gives error code as 1 . The commands like echo works but executing another shell script under rc.local file doesn't run and gives return code as 1. I know its weird question ..
2012 Aug 03
1
How to connect to local hpyervisor by libvirt?
Hi libvirt team, I suffered some troubles. Could you please give me some advices? Our team plan to control more then 100 android emulators, however, we failed to connect to the local android emulators by libvirt. Now we have tested 2 ways. 1. Converting from QEMU args to domain XML. It's a right way to control the local QEMU built manually. But the android emulator based on QEMU