[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:domain type='lxc' namelxc1/name memory1024000/memory cputuneshares100/shares /cputune ostypeexe/type

[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

[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] 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

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

2013-02-22 Thread
? 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 instead of shell like the userspace tool lxc_start(name, cmd, conf)? Latest libvirt has

[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

[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

[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: interface type='bridge' mac address='00:16:3e:5d:aa:a8'/ source bridge='br0'/ target dev='vnet0'/

[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