[libvirt-users] Failed to boot lxc with libvirt 1.0.3:2013-03-25 06:54:17.620+0000: 1: error : lxcContainerMountBasicFS:563 : Failed to mount /selinux on /selinux type selinuxfs flags=e opts=(null): N

2013-03-25 Thread
hi all, I am using lxc with libvirt. But I can't boot lxc container by libvirt 1.0.3(libvirt 0.9.8 works) . Below is my environment. Do I miss something? lxc1.xml: lxc1 1024000 100exe /bin/sh I used virsh -c lxc:/// create lxc1.xml and got the following

[libvirt-users] With no luck with virDomainGetInfo and virDomainMemoryStats for memory usage of a running vm

2013-02-28 Thread
Hi, all I am trying to get used memory of a running vm using libvirt and then to calculate the memory usage, but with no luck. 1.The used memory returned by virDomainGetInfo is equal to max memory with no virtio balloon driver set. When using virtio balloon driver and setting currentMemory le

[libvirt-users] The accurate CPU usage of a domain?

2013-02-27 Thread
Hi,all I want to get a relatively accurate cpu usage of a domain. I have a few questions about virDomainGetInfo: struct virDomainInfo{ unsigned char state : //the running state, one of virDomainStateunsigned long maxMem :// the maximum memory in KBytes allowed unsigned long memory ://

[libvirt-users] Can LXC and KVM run in a single node at the same time? How does LXC vcpu map to cgroups cpu.shares?

2013-02-22 Thread
hi,all I want to run LXC and KVM in a single node at the same time. Is it possible? If so, can resource isolation work properly? that is, can LXC and KVM get their corresponding shares of resources(vcpu, memeory, etc..)? In that case, how does LXC vcpu map to cgroups cpu.shares? many thank

Re: [libvirt-users] How to run a cmd inside lxc through libvirt API?

2013-02-22 Thread
ugh libvirt API? > > On Fri, Feb 22, 2013 at 09:27:05AM +, 张章 wrote: > > > > Hi > > > > As far as I know, I can not run a cmd inside lxc through > > shell after "virsh -c lxc:/// console". How could I run > > a cmd though libvirt API ins

[libvirt-users] How to run a cmd inside lxc through libvirt API?

2013-02-22 Thread
Hi As far as I know, I can not run a cmd inside lxc through shell after "virsh -c lxc:/// console". How could I run a cmd though libvirt API instead of shell like the userspace tool lxc_start(name, cmd, conf)? best regards zhangzhang _

[libvirt-users] what interface does virbr0 forward message to?

2012-11-26 Thread
Dear all: Libvirt create a default network called virbr0 using for NAT. I have two interface in my computer: eth0 eth1. My question is what interface does virbr0 forward message to? many thanks! regards zhangzhang ___

[libvirt-users] Can VMs on different machines communicate with each other without IP?

2012-10-30 Thread
Dear all, I confront a somehow strange situation: I have two machines configured with ip 10.128.80.65 and 10.128.80.66 respectively. Each has several VMs running on it. The problem is that I have no more ip ( such as 10.128.80.67...) to allocate to VMs, but VMs need to communicate wit

[libvirt-users] Need help of virDomainInterfaceStats

2012-09-03 Thread
hi,all I am using virDomainInterfaceStats to monitor the network flow of VM. But there is some strange things. the description of vnet in xml is: but when I call virDomainInterfaceStats to get network flow from vnet0, I g

[libvirt-users] vnc port of VM

2012-08-22 Thread
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 ___

[libvirt-users] vnc port of VM

2012-08-22 Thread
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 ___

[libvirt-users] vnc port of VM

2012-08-22 Thread
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 ___

[libvirt-users] Which is the stable version of libvirt?

2012-06-11 Thread
hi,all!I have tried several version of libvirt(e.g 0.7.5, 0.9.9 , 0.9.12) but each have some problems. What's your experience using libvirt? Which version do you think is the best? regards Zhang Zhang ___ lib