[libvirt-users] Libvirt disk API

2015-04-20 Thread fu lirong
Hi all: I am studying Libvirt API , I am wondering the API about the disk manage is TBD(to be difine). The edition is libvirt 0.7.5 ,but the edition is too old ,The website is http://libvirt.org/guide/html/Application_Development_Guide-Introduction.html So, if I want to manage the VM

Re: [libvirt-users] libvirt and guest processes

2015-04-20 Thread dt sweval
On Mon, Apr 20, 2015 at 8:04 PM, Eric Blake wrote: > On 04/20/2015 07:32 PM, hanyandong wrote: > > [please don't top-post on technical lists] > > > As I know, you can use Libvmi API to access the memory of VM and then > walk through the double-linked list of process to reconstruct the process >

Re: [libvirt-users] libvirt and guest processes

2015-04-20 Thread Eric Blake
On 04/20/2015 07:32 PM, hanyandong wrote: [please don't top-post on technical lists] > As I know, you can use Libvmi API to access the memory of VM and then walk > through the double-linked list of process to reconstruct the process list. it > is easy, and libvmi has provide the example Mayb

Re: [libvirt-users] domain XML tag is not working?

2015-04-20 Thread Chengyuan Li
Hi Kashyap, Here I want to test and see how much I/O performance could be improved by virtio-blk data plane feature. Yes, this is a dirty way to enable it :-), You mentioned using newer libvirt, is there parameter similar "x-data-plane=on" in new version libvirt? Please let know me you if you have

Re: [libvirt-users] domain XML tag is not working?

2015-04-20 Thread Chengyuan Li
Hi Eric, Thanks! You are right, I missed declaring namespace, now, the is saved after virsh edit. However, both namespace and tag are lost after I run "nova start" to launch the VM. Any idea that how could I make this qemu command take effect ? Regards, CY. On Mon, Apr 20, 2015 at 11:41 PM, E

Re: [libvirt-users] QemuDomainObjEndJob called when libvirtd is started and libvirt insists qemu is using the wrong disk source.

2015-04-20 Thread Laine Stump
On 04/20/2015 09:28 PM, Matthew Schumacher wrote: > > On 04/20/2015 05:12 PM, Laine Stump wrote: >> On 04/20/2015 08:45 PM, Matthew Schumacher wrote: >>> List, >>> >>> I was under the impression that I could restart libvirtd without it >>> destroying my VMs, but am not finding that to be true. >>

Re: [libvirt-users] libvirt and guest processes

2015-04-20 Thread hanyandong
this is the libvmi API: https://github.com/libvmi/libvmi this is the example : https://github.com/libvmi/libvmi/blob/master/examples/process-list.c -- Best Regards, yandong > -原始邮件- > 发件人: "Michal Privoznik" > 发送时间: 2015年4月20日 星期一 > 收件人: "dt sweval" , libvirt-users@redhat.com > 抄送:

Re: [libvirt-users] libvirt and guest processes

2015-04-20 Thread hanyandong
As I know, you can use Libvmi API to access the memory of VM and then walk through the double-linked list of process to reconstruct the process list. it is easy, and libvmi has provide the example 在2015-04-20 22:52:02,hanyandong写道: > On 20.04.2015 06:22, dt sweval wrote: > > Hi > > I wanted to

Re: [libvirt-users] QemuDomainObjEndJob called when libvirtd is started and libvirt insists qemu is using the wrong disk source.

2015-04-20 Thread Matthew Schumacher
On 04/20/2015 05:12 PM, Laine Stump wrote: > On 04/20/2015 08:45 PM, Matthew Schumacher wrote: >> List, >> >> I was under the impression that I could restart libvirtd without it >> destroying my VMs, but am not finding that to be true. > If not, then something is wrong. > Here are the logs from

Re: [libvirt-users] QemuDomainObjEndJob called when libvirtd is started and libvirt insists qemu is using the wrong disk source.

2015-04-20 Thread Laine Stump
On 04/20/2015 08:45 PM, Matthew Schumacher wrote: > List, > > I was under the impression that I could restart libvirtd without it > destroying my VMs, but am not finding that to be true. If not, then something is wrong. > When I killall > libvirtd then my VM's keep running, but then when I star

[libvirt-users] QemuDomainObjEndJob called when libvirtd is started and libvirt insists qemu is using the wrong disk source.

2015-04-20 Thread Matthew Schumacher
List, I was under the impression that I could restart libvirtd without it destroying my VMs, but am not finding that to be true. When I killall libvirtd then my VM's keep running, but then when I start libvirtd it calls qemuDomainObjEndJob:1542 : Stopping job: modify (async=none vm=0x7fb8cc0d8510

Re: [libvirt-users] inquiry about differences between the tap and the vnet in the virt-manager

2015-04-20 Thread Laine Stump
On 04/20/2015 10:20 AM, w...@foxmail.com wrote: > > >> inquiry about differences between the tap and the vnet in the >> virt-manager >> >> >> Greetings! >> >> I encounter a problem about the network when using virt-manager >> to create and run a VM. >> >> when I want to esta

Re: [libvirt-users] Question regarding management of VMs using libvirtd.

2015-04-20 Thread Eric Blake
On 04/20/2015 08:55 AM, Michal Privoznik wrote: > On 20.04.2015 15:52, somenathpal . wrote: >> Hi All, >> >> >> >> I have a question regarding the uses of libvirtd. We have the following >> situation to manage. >> >> We have several hosts with libvirtd running. We have one management >> applicati

Re: [libvirt-users] domain XML tag is not working?

2015-04-20 Thread Eric Blake
On 04/20/2015 08:37 AM, Chengyuan Li wrote: > Hi, > > I tried to enable virtio-blk data plane feature for VMs in my openstack > environment, the hypervisor is ubuntu 14.04, libvirt 1.2.2 and QEMU 2.0. > As nova doesn't support that parameter yet, I did belows > > 1. nova boot a VM with raw disk

Re: [libvirt-users] inquiry about differences between the tap and the vnet in the virt-manager

2015-04-20 Thread w...@foxmail.com
inquiry about differences between the tap and the vnet in the virt-manager Greetings! I encounter a problem about the network when using virt-manager to create and run a VM. when I want to establish a network bridge for the guest OS, I generally use two kinds of ways described as fellow : First

Re: [libvirt-users] libvirt and guest processes

2015-04-20 Thread Michal Privoznik
On 20.04.2015 06:22, dt sweval wrote: > Hi > I wanted to find out if there is way to list all the running processes in a > guest VM from the hypervisor. Like the output of 'ps -ef' from inside the > guest VM, but without logging in or ssh into it. No, I don't think there's a way. Problem is, libvi

Re: [libvirt-users] Question regarding management of VMs using libvirtd.

2015-04-20 Thread Michal Privoznik
On 20.04.2015 15:52, somenathpal . wrote: > Hi All, > > > > I have a question regarding the uses of libvirtd. We have the following > situation to manage. > > We have several hosts with libvirtd running. We have one management > application to manage different VMs launched in those different

Re: [libvirt-users] domain XML tag is not working?

2015-04-20 Thread Kashyap Chamarthy
On Mon, Apr 20, 2015 at 10:37:13PM +0800, Chengyuan Li wrote: > Hi, > > I tried to enable virtio-blk data plane feature for VMs in my openstack > environment, the hypervisor is ubuntu 14.04, libvirt 1.2.2 [I haven't tested the virtio-blk data plane myself.] This libvirt version seems a little

[libvirt-users] domain XML tag is not working?

2015-04-20 Thread Chengyuan Li
Hi, I tried to enable virtio-blk data plane feature for VMs in my openstack environment, the hypervisor is ubuntu 14.04, libvirt 1.2.2 and QEMU 2.0. As nova doesn't support that parameter yet, I did belows 1. nova boot a VM with raw disk image. 2. nova stop the VM. 3. run "virsh edit " on the hy

[libvirt-users] libvirt and guest processes

2015-04-20 Thread dt sweval
Hi I wanted to find out if there is way to list all the running processes in a guest VM from the hypervisor. Like the output of 'ps -ef' from inside the guest VM, but without logging in or ssh into it. Thanks dtsweval ___ libvirt-users mailing list libvi

Re: [libvirt-users] virsh shutdown not fully working on win7 ?

2015-04-20 Thread Andrey Korolyov
On Fri, Apr 17, 2015 at 4:05 PM, Eric Blake wrote: > On 04/17/2015 02:26 AM, Marko Weber | 8000 wrote: >> >> hello list, >> >> i have a running vm with win7. >> When i fire up an 'virsh shutdown win7' nothing happens. >> When i fire up a second the same command, then the win7 machine is >> shuttin

[libvirt-users] Question regarding management of VMs using libvirtd.

2015-04-20 Thread somenathpal .
Hi All, I have a question regarding the uses of libvirtd. We have the following situation to manage. We have several hosts with libvirtd running. We have one management application to manage different VMs launched in those different hosts. We want to configure the system such a way so that o

Re: [libvirt-users] inquiry about differences between the tap and the vnet in the virt-manager

2015-04-20 Thread Laine Stump
On 04/18/2015 10:02 PM, w...@foxmail.com wrote: > > inquiry about differences between the tap and the vnet in the virt-manager > > > Greetings! > > I encounter a problem about the network when using virt-manager to > create and run a VM. > > when I want to establish a network bridge for the guest O

Re: [libvirt-users] inquiry about differences between the tap and the vnet in the virt-manager

2015-04-20 Thread w...@foxmail.com
thanks for your reply! I have plugged the tap0 to the bridge. when I create the tap0: tunctl -t tap0 -u root brctl addif br0 tap0 ifconfig tap0 up chmod a+rw /dev/net/tun echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -j MASQUERADE so I think this is not the reason. w...

Re: [libvirt-users] Mounting directory as readonly within LXC

2015-04-20 Thread Michal Privoznik
On 20.04.2015 12:58, Harish Vishwanath wrote: > Hello > > Is there a way to mount a directory as readonly when using LXC with libvirt? > > Something like: > > > > > > > > > The documentation says r

[libvirt-users] Mounting directory as readonly within LXC

2015-04-20 Thread Harish Vishwanath
Hello Is there a way to mount a directory as readonly when using LXC with libvirt? Something like: The documentation says readonly only works with KVM/QEMU. Regards, Harish ___

Re: [libvirt-users] inquiry about differences between the tap and the vnet in the virt-manager

2015-04-20 Thread Michal Privoznik
On 19.04.2015 04:02, w...@foxmail.com wrote: > inquiry about differences between the tap and the vnet in the virt-manager > > when I establish the network by the first method: create a bridge with the > help of Linux commad: brctl, tap0 device is created in the host and assigned > to the guest