Re: [libvirt-users] How to update filterref of a vm on the fly?

2014-01-15 Thread Gao Yongwei
> > No, I don't believe we have a way to update the parameters. > > Hi, Daniel :-),it would be very nice if there is a way to update filterref , :-) thanks. ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinf

Re: [libvirt-users] how to detect if qemu supports live disk snapshot

2014-01-14 Thread Gao Yongwei
> > This would work for current versions of qemu, but may not work in the > future (as HMP does not guarantee stable output) - parsing QMP output > would be more reliable. Furthermore, the 'qemu-monitor-command' is > intentionally unsupported, although this particular use is safe because > it does

Re: [libvirt-users] how to detect if qemu supports live disk snapshot

2014-01-14 Thread Gao Yongwei
> > > > > > So, if I'm not mistaken, looks like the only way to test for the support > in QEMU is to actually > > request a snapshot and see what happens. > > Is this right? > > Unfortunately true for the moment. > Hi, does this command can help with you? virsh qemu-monitor-command vmname --hmp

[libvirt-users] How to update filterref of a vm on the fly?

2014-01-14 Thread Gao Yongwei
Hello, I defined a vm with filterref like: and now I need to add another IP parameter for this vm,is there any way to achieve this? thanks. ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-user

Re: [libvirt-users] Best practice for custom iptables rules

2014-01-13 Thread Gao Yongwei
> Thanks, I already tried inserting a delay with "sleep" but it didn't > change anything, as the hook script is not processed in parallel with other > operations: libvirt waits until the hook script has been completed, before > proceeding with the creation of its own iptables rules. plz take a clo

Re: [libvirt-users] Best practice for custom iptables rules

2014-01-12 Thread Gao Yongwei
> ...also, it appears that the hook script /etc/libvirt/hooks/daemon to be > called when the libvirt daemon is started is actually called _before_ > libvirt adds its own iptables rules, because I am not able to insert my > custom rule at the top of the chain. > how about this daemon hook script?

Re: [libvirt-users] Bringing up a guest with network disabled

2013-10-01 Thread Gao Yongwei
2013/10/2 Jorge Fábregas > On 10/01/2013 09:29 AM, James Gibbon wrote: > > Would be grateful if someone could suggest a way to disable the > networking in the > > cloned VM within the XML, if that's possible. > > I have no idea if it's possible to "disable" the NIC on the VM > definition but you

Re: [libvirt-users] how to setup network filter

2013-09-10 Thread Gao Yongwei
2013/9/2 Jiaan Zeng > Hi All, > > I am new to libvirt and encounter a strange problem to set up network > filter in a NAT network. > > I launched VMs in a single host using NAT, i.e. interface > type='network'. Now I want to control the outbound traffic from VM > instance - only allow the VM to a

Re: [libvirt-users] Getting nwfilter to work on Debian Wheezy

2013-07-10 Thread Gao Yongwei
2013/7/8 Sven Schwedas > Hi, > > I'm trying to configure nwfilter for KVM, but so far I haven't managed > to figure out a working configuration. > > Network setup: The dom0 (Debian 7.1, kernel 3.2.46-1, libvirt 0.9.12) is > connected via eth0, part of the external subnet 192.168.17.0/24, and has

Re: [libvirt-users] snapshot-create-as for a single disk not all disks

2013-06-25 Thread Gao Yongwei
try snapshot-create-as like below: virsh snapshot-create-as vm --disk-only --diskspec "vda,snapshot=external" 2013/6/25 cmcc.dylan > > Hi, everyone, >I have found the API snapshotCreateXML() can create a snapshot for a > virtual machine, and the xml configuration file - snapshot.xml as foll

Re: [libvirt-users] Enabling route_localnet on private network

2013-06-14 Thread Gao Yongwei
My question is where can I add the command "/sbin/sysctl -w > net.ipv4.conf.pvt0.route_localnet=1" to the start-up files so the command > is run after the libvirt device pvt0 has been autostarted? > Does libvirt hooks can do this ?http://libvirt.org/hooks.html _

Re: [libvirt-users] snapshot create error, unable to find cgroup for vm

2013-05-21 Thread Gao Yongwei
> > An ubuntu pastebin for a CentOS issue seems a bit... odd. > Unfortunately, pastebins tend to expire, so linking to them in mail > isn't always the most reliable, compared to just pasting relevant > sections inline. > > > 2013-05-16 04:08:11.063+: 21636: debug : > qemuDomainObjBeginJobIntern

Re: [libvirt-users] snapshot create error, unable to find cgroup for vm

2013-05-15 Thread Gao Yongwei
2013/5/16 Gao Yongwei > > > > 2013/5/16 Gao Yongwei > >> >> >> >> Are you using RHEL? If so, please open a support incident with Red Hat. >>> If not, can you reproduce the problem when you upgrade to libvirt 1.0.5? >>> >>> H

Re: [libvirt-users] snapshot create error, unable to find cgroup for vm

2013-05-15 Thread Gao Yongwei
2013/5/16 Gao Yongwei > > > > Are you using RHEL? If so, please open a support incident with Red Hat. >> If not, can you reproduce the problem when you upgrade to libvirt 1.0.5? >> >> Hello Blake ,I am using CentOS6.4 ,but I got this trouble in > my production

Re: [libvirt-users] snapshot create error, unable to find cgroup for vm

2013-05-15 Thread Gao Yongwei
Are you using RHEL? If so, please open a support incident with Red Hat. > If not, can you reproduce the problem when you upgrade to libvirt 1.0.5? > > Hello Blake ,I am using CentOS6.4 ,but I got this trouble in my production environment . I will test 1.0.5 later ,now I am very worried ;( __

[libvirt-users] snapshot create error, unable to find cgroup for vm

2013-05-15 Thread Gao Yongwei
Hello: Yesterday I yum update libvirt from 0.9.10 to 0.10.2 ,after update I got some error in libvirtd.log like this: 2013-05-10 07:39:09.440+: 18824: warning : virCgroupMoveTask:885 : no vm cgroup in controller 3 2013-05-10 07:39:09.440+: 18824: warning : virCgroupMoveTask:885 : no vm cgr

Re: [libvirt-users] libvirt daemon and numad daemon

2013-05-08 Thread Gao Yongwei
> Yes, libvirt is able to take advantage of libnuma calls into numad for > determining auto-placement of guest resources on a single node, rather > than spread out across multiple NUMA nodes, with the corresponding > performance improvements. You can also request specific pinning rather > than rel

[libvirt-users] libvirt daemon and numad daemon

2013-05-07 Thread Gao Yongwei
Hello all, I installed libvirt-0.10.2-18.el6.x86_64 ,is there any relationship between libvirtd and numad ? I found that when I started numad daemon , the vm can start in a shorter time, but when numad daemon stoped , vm could still start ,just with a longer start time. how does this work with the

Re: [libvirt-users] Create image from running domain

2013-04-22 Thread Gao Yongwei
2013/4/22 Hongbin Lu > Hi. > > A short question. I want to know what is the proper steps to create an > image from a running domain and use it as base image of another domains. > The domain is with Qemu Hypervisor, persistent, and created based on Ubuntu > Cloud image. > > you can use qemu-img cr

Re: [libvirt-users] libvirtd using 11GB

2013-04-16 Thread Gao Yongwei
2013/4/16 Michal Privoznik > On 16.04.2013 11:29, Alex Leonhardt wrote: > > Ah great, thanks! > > > > Alex > > In general, it can be a bit difficult to determine the exact commit > which fixes problem you are seeing, because it depends on you concrete > use case. However, you can try running libv

Re: [libvirt-users] virt-manager connect remote KVM host and graphic control guest problem

2013-04-02 Thread Gao Yongwei
2013/3/28 cochen > Hi developer, i got a problem and need your help!(my english not very good) >My KVM host in IDC, and there are some restrict in there lead to me > connect to KVM host by port 22 or 16509 impossible. In generally If i want > login my KVM host i must login in to a "steppi

Re: [libvirt-users] libvirt rpm src

2013-03-18 Thread Gao Yongwei
2013/3/19 Eric Blake > On 03/18/2013 01:12 PM, Daniel P. Berrange wrote: > > On Mon, Mar 18, 2013 at 09:42:53PM +1100, Drew Morris wrote: > >> Hi Guys, > >> > >> Do you know where the source RPMS are for libvirt? Can't find them in > the > >> official downloads section. > > > > There's no need fo

Re: [libvirt-users] Routed network w/o libvirt adding iptables rules

2013-02-26 Thread Gao Yongwei
2013/2/26 Nils Toedtmann > Hello > > In the case of a "routed" libvirt network, is there a way to prevent > libvirt from adding *any* iptables rules? Or at least to stop libvirt > from inserting its rules at the *top* of the chains (which renders > previously inserted rules useless)? > > > > I ha

Re: [libvirt-users] control ip address of VM

2013-02-03 Thread Gao Yongwei
2013/2/3 zorg > HI > I have 15 vm (libvirt + kvm) with a network brigde and ip address like > > 192.168.0.1 VM1 > 192.168.0.2 VM2 > 192.168.0.3 VM3 > . > > The vm are use by other people and I want to be sure that if someone > change the ip of VM3 to 192.168.0.1 it will filter it network traf

Re: [libvirt-users] how to know one domain is defined or not

2013-01-17 Thread Gao Yongwei
2013/1/17 Michal Privoznik > On 17.01.2013 10:37, lei yang wrote: > > Hi experts > > > > I want to write a script to determine one domain named "vm1" is > > defined or not, if defined, I will undefine it. > > > > The question is how could I know it define or not ? > > either you can 'virsh list -

Re: [libvirt-users] LibVirt CPU problem

2013-01-15 Thread Gao Yongwei
2013/1/14 Michael Beham > Hi, > > I´m testing to start a KVM-VM with different CPU settings and I get an > weird error when I use the parameter: !! > I have a AMD Opteron 4280 CPU, but in the VM, proc/cpuinfo shows me, that > I´m using Intel core2duo cpu model T7700 and in the flag-line of proc/

Re: [libvirt-users] openvswitch

2013-01-07 Thread Gao Yongwei
2013/1/7 > ** > > Hello > > I'm a newbie with libvirt and I would like to know if when I compile > libvirt (0.10 on amd64 debian) I have to specify an option for the > management of openvswitch or if it's integrated in the code? > > Thanks > > > > hello,this article may help you: http://www.linu

Re: [libvirt-users] Error installing VM: "Process exited while reading console log output"

2012-12-29 Thread Gao Yongwei
> > However, unfortunately, I can't even find the function from >> git log. >> >> >>> So it looks like libvirtd (0.8.3) is trying to get a list of all >>> >> >> It's too old. :-), can you try to upgrade your libvirt? >> >> >>> It's really too old.In Chinese we could say 老得掉渣啊! ^^ _

Re: [libvirt-users] Error installing VM: "Process exited while reading console log output"

2012-12-26 Thread Gao Yongwei
> >> Can anyone tell me why I'm getting this error or give me some hints to >> troubleshoot this? So far nothing in the Python or C code of libvirt >> stands out at me, and nothing in ~/.virtinst/virt-install.log looks >> helpful. >> >> you could change the log level of libvirt daemon by edit /etc

Re: [libvirt-users] Is thre any way to change the vm computer name which joined AD

2012-12-24 Thread Gao Yongwei
2012/12/24 Timon Wang > How to create a template VM with libvirt? Could you pelease offer me more > detail. Many thanks > > perhaps you could do the following: create a autotask or other things which will run a script at bootup in windows template, after that,when you create a new vm using this

Re: [libvirt-users] Is thre any way to change the vm computer name which joined AD

2012-12-23 Thread Gao Yongwei
2012/12/14 Timon Wang > I want to change the computer name of the vm which based on a qcow2 img. > virt-win-reg can merge some value when the vm is not joined the AD, but > when it joined I tried to do it by virt-win-reg and failed. > Any one have any idea about it? > > perhaps you can use virt-s

Re: [libvirt-users] Ordering multiple network interfaces on vms

2012-12-08 Thread Gao Yongwei
2012/12/7 john fisher > I think the vnet* can affect the order in vm. ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Strange behavior of QoS

2012-12-04 Thread Gao Yongwei
2012/12/3 Davide Guerri > Hi, > I'm having some weird problem with the setup of the QoS on a bridged > network. > > As the docs states, outbound/inbound average speed should be expressed in > KBps (KBytes per second) but in order to get a maximum speed of 10Mbps > (megabits per second) surprising

Re: [libvirt-users] Strange QoS behavior

2012-12-03 Thread Gao Yongwei
2012/12/4 Davide Guerri > Here they are: > > !(~) # tc class show dev vnet43 > class htb 1:1 root prio 0 rate 20480Kbit ceil 20480Kbit burst 1597b cburst > 1597b > > !(~) # tc filter show dev vnet43 > filter parent 1: protocol ip pref 49152 fw > filter parent 1: protocol ip pref 49152 fw handle

Re: [libvirt-users] error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable

2012-11-01 Thread Gao Yongwei
2012/11/1 何鑫 > I have checked that I removed all distro things, ran self-built virsh, > libvirtd. To make sure, I use absolute paths for running. Also I will check > process status in time. This is "ps" shown: > 2996 1 3 08:48 ?00:00:00 /usr/local/libvirt/sbin/libvirtd -d > > Is the

Re: [libvirt-users] top output from kvm guest VM

2012-09-19 Thread Gao Yongwei
2012/9/19 Harish Patil : > Hello, > How can I get 'top' output if the guest VM is stuck spinning and taking 100% > cpu. > Any other means to debug would be of help. > > Thanks in adv. you can use virt-top to get the data ___ libvirt-users mailing list li

Re: [libvirt-users] nwfilter example for security

2012-09-18 Thread Gao Yongwei
2012/9/18 Java : > hi, libvirt folks, > > I'm trying to use libvirt's nwfilter to achieve two goals: > > 1, by default all ports are closed, means that the virtual machine is > isolated. > 2, only some selected ports are opened, for example, tcp 22 for ssh, tcp 80 > for http web, udp 67 and 68 for

Re: [libvirt-users] virsh reboot problem

2012-08-28 Thread Gao Yongwei
2012/8/28 Andreas Davour : > > I am trying to reboot my virtual machines, running virsh reboot. Then I get > the following error: > > error: this function is not supported by the connection driver: > virDomainReboot > > Searching around I get the impression this should be fixed by now, since the

[libvirt-users] error: virsh not could create bridge interface

2012-08-16 Thread Gao Yongwei
hello, virsh iface-bridge to build bridge interface does not work for me,i've searched in google but got nothing ,please give some help,thanks. # VIRSH_DEBUG=0 VIRSH_LOG_FILE=bridge.log virsh iface-bridge eth0 br0 iface-bridge: found option : eth0 iface-bridge: trying as interface NAME libvir:

Re: [libvirt-users] iptables: cannot port forward

2012-08-13 Thread Gao Yongwei
2012/8/13 Mauricio Tavares : > Easy question here: I have a test network that looks like this > (apologies for my lack of ascii skills): > > [hostc]---[Firewall]192.168.42.1 (EXTIF: eth0) /10.0.0.1 > (INTIF: eth1) > 192.168.42.10(wan)|(lan) > | >

Re: [libvirt-users] error deploying a vm: Operation not permitted

2012-08-10 Thread Gao Yongwei
2012/8/9 Michael Rebstock : > Hi, > > I am using Ubuntu 10.04. and appArmor is disabled. Any further ideas? > perhaps you need to check the directory's permission ,i mean that chmod or chown command may help you. ___ libvirt-users mailing list libvirt-us

Re: [libvirt-users] libvirtd may need to be started: Permission denied

2012-08-10 Thread Gao Yongwei
2012/8/9 何鑫 : > Hi, > I try to configure libvirtd to use qemu+tcp, but after doing so, I can't > use virsh or programs with libvirt API. > > I type "virsh -c qemu:///system", then > error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may > need to be started: Permission denied

Re: [libvirt-users] Remote Shutdown of Server 2008

2012-08-10 Thread Gao Yongwei
2012/8/8 Eric Blake : > On 08/07/2012 01:22 PM, Gutierrez-Robles, Frank wrote: > >> I have a VM of Microsoft Server 2008 SP1. I am using virsh commands to >> power it on/off. I can power on/off when the admin is logged in to the >> Server VM, and when there are no users logged in, but when the admi

Re: [libvirt-users] INTERNAL ERROR:can not attach network interface for vm

2012-07-23 Thread Gao Yongwei
2012/7/23 Osier Yang : > On 2012年07月23日 17:24, Gao Yongwei wrote: >> >> hello,i got a error message when use virsh attach-interface for a vm: >> >> first, list the vm's interface,there's no interface now. >> virsh # domiflist ubuntum-124 >>

[libvirt-users] INTERNAL ERROR:can not attach network interface for vm

2012-07-23 Thread Gao Yongwei
hello,i got a error message when use virsh attach-interface for a vm: first, list the vm's interface,there's no interface now. virsh # domiflist ubuntum-124 Interface Type Source Model MAC --- then,i did an attach-interface acti