Re: [libvirt-users] possible to dynamically set/add network domain name?

2014-08-06 Thread Rich Megginson
On 08/06/2014 11:23 AM, Laine Stump wrote: On 08/05/2014 06:25 PM, Rich Megginson wrote: trying to use virsh net-update to add a domain name libvirt-1.1.3.5-2.fc20.x86_64 sudo virsh net-update default add domain "" --live --config error: this function is not supported by the connection driver: c

Re: [libvirt-users] username and passwd after create VM from XML dump

2014-08-06 Thread Yuanzhen Gu
On Wed, Aug 6, 2014 at 3:07 PM, Eric Blake wrote: > On 08/06/2014 12:10 PM, Yuanzhen Gu wrote: > > Just one more question to make me clear in this point, so if I > install > > an application in the guest, and make a dmup XML, then create a new > > guest using that configured dump XML file

Re: [libvirt-users] username and passwd after create VM from XML dump

2014-08-06 Thread Eric Blake
On 08/06/2014 12:10 PM, Yuanzhen Gu wrote: > Just one more question to make me clear in this point, so if I install > an application in the guest, and make a dmup XML, then create a new > guest using that configured dump XML file, the new guest should also have > that application installed?

Re: [libvirt-users] Ubuntu Trusty: failed to create VM due to permission denied

2014-08-06 Thread Jianfeng Tang
Agree. I did a little research. For those who hit this issue, it works after I modified /etc/apparmor.d/abstractions/libvirt-qemu to include the backing store directory. On 8/6/14 11:18 AM, "Eric Blake" wrote: >On 08/06/2014 10:02 AM, Jianfeng Tang wrote: >> Thank you Eric. Yes, it looks like Ap

Re: [libvirt-users] possible to dynamically set/add network domain name?

2014-08-06 Thread Laine Stump
On 08/05/2014 06:25 PM, Rich Megginson wrote: > trying to use virsh net-update to add a domain name > libvirt-1.1.3.5-2.fc20.x86_64 > sudo virsh net-update default add domain "" > --live --config > error: this function is not supported by the connection driver: can't > update 'domain' section of ne

Re: [libvirt-users] username and passwd after create VM from XML dump

2014-08-06 Thread Yuanzhen Gu
On Wed, Aug 6, 2014 at 1:29 PM, Eric Blake wrote: > On 08/06/2014 11:11 AM, Yuanzhen Gu wrote: > > >> Libvirt is only concerned with what virtual hardware you present to the > >> > >> guest, not with the OS running in that guest or what username/password > >> > >> combinations will let you log in

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Yuanzhen Gu
On Wed, Aug 6, 2014 at 1:23 PM, Eric Blake wrote: > On 08/06/2014 11:17 AM, Yuanzhen Gu wrote: > > >> Guest freeze/thaw (virDomainFSFreeze) only works on a live guest. So > >> what you will have to do is: > >> > >> virDomainFSFreeze(vm1, ...) > >> virDomainFSFreeze(vm2, ...) > >> virDomainSuspen

Re: [libvirt-users] username and passwd after create VM from XML dump

2014-08-06 Thread Eric Blake
On 08/06/2014 11:11 AM, Yuanzhen Gu wrote: >> Libvirt is only concerned with what virtual hardware you present to the >> >> guest, not with the OS running in that guest or what username/password >> >> combinations will let you log into that guest OS. libguestfs may be >> >> able to do some intros

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Eric Blake
On 08/06/2014 11:17 AM, Yuanzhen Gu wrote: >> Guest freeze/thaw (virDomainFSFreeze) only works on a live guest. So >> what you will have to do is: >> >> virDomainFSFreeze(vm1, ...) >> virDomainFSFreeze(vm2, ...) >> virDomainSuspend(vm1) >> virDomainSuspend(vm2) >> virDomainSnapshotCreateXML(vm1,

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Yuanzhen Gu
On Wed, Aug 6, 2014 at 12:27 PM, Eric Blake wrote: > On 08/06/2014 10:06 AM, Yuanzhen Gu wrote: > > yes, I got your point, thanks very much Eric. > > not entirely, because you still top-posted. > > got it entirely this time, not top-posted. > > > > If I want to take a distributed snapshot,

Re: [libvirt-users] username and passwd after create VM from XML dump

2014-08-06 Thread Yuanzhen Gu
On Tue, Aug 5, 2014 at 6:33 PM, Eric Blake wrote: > On 08/05/2014 03:02 PM, Yuanzhen Gu wrote: > > Good afternoon guys, > > > > I created the VM from XML dump, > > # virsh create vm4.xml > > > > and # virsh list I can see the VM running, > > and I know the ip address for the VM, > > > > but how

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Eric Blake
On 08/06/2014 10:06 AM, Yuanzhen Gu wrote: > yes, I got your point, thanks very much Eric. not entirely, because you still top-posted. > > If I want to take a distributed snapshot, which need pause all the VMs and > then take snapshot, how can I control the pause for all the VMs? You mean, you

Re: [libvirt-users] Ubuntu Trusty: failed to create VM due to permission denied

2014-08-06 Thread Eric Blake
On 08/06/2014 10:02 AM, Jianfeng Tang wrote: > Thank you Eric. Yes, it looks like AppArmor caused the problem. I will > google on how to disable it. That feels wrong. "My security process is preventing me from doing something wrong because I didn't configure it to match my usage patterns, so I'm

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Yuanzhen Gu
yes, I got your point, thanks very much Eric. If I want to take a distributed snapshot, which need pause all the VMs and then take snapshot, how can I control the pause for all the VMs? Is there only way that I turn to freeze/thaw functions? and freeze/thaw only for file systems, not for the who

Re: [libvirt-users] Ubuntu Trusty: failed to create VM due to permission denied

2014-08-06 Thread Jianfeng Tang
Thank you Eric. Yes, it looks like AppArmor caused the problem. I will google on how to disable it. On 8/5/14 8:27 PM, "Eric Blake" wrote: >On 08/05/2014 05:23 PM, Jianfeng Tang wrote: > >> >> However, if I moved my image file (not base image) to default location >> /var/lib/libvirt/images. It

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Eric Blake
On 08/06/2014 08:36 AM, Yuanzhen Gu wrote: [please don't top-post on technical lists] > Thanks very much Eric! This is exactly what I guessed, I just wondering > where I could find this piece of code and control the the pause time of > guest, while the snapshot being taken? thanks ! Actually,

Re: [libvirt-users] [libvirt] libvirt external disk-only snapshot will pause the VM?

2014-08-06 Thread Yuanzhen Gu
Thanks very much Eric! This is exactly what I guessed, I just wondering where I could find this piece of code and control the the pause time of guest, while the snapshot being taken? thanks ! Best, Yuanzhen On Tue, Aug 5, 2014 at 6:30 PM, Eric Blake wrote: > On 08/05/2014 03:54 PM, Yuanzhen

Re: [libvirt-users] [help] Does "virsh blockpull" works on live virtual machine

2014-08-06 Thread Eric Blake
On 08/06/2014 06:04 AM, chenyan...@keytonecloud.com wrote: > Hi all, [please configure your mailer to wrap long lines] > ...Now I want to remove snap1 and snap2, and let current disk using the base image file as back file directly. Unfortunately, for some reason, I can not shutdown the vm, and ex

[libvirt-users] [help] Does "virsh blockpull" works on live virtual machine

2014-08-06 Thread chenyan...@keytonecloud.com
Hi all, I have a kvm virtual machine running (qemu version 2.0), and I had took several external snapshots of the disk( using "virsh snapshot-create-as"). Now, the existed disk files relationship look like: base <- snap1 <-snap2 <- current using disk file. Now I want to remove snap1 and snap2, a

[libvirt-users] error configuring a public bridge --> uvt-kvm: error: libvirt domain 'newtest' has no NIC MACs available.

2014-08-06 Thread Jordi Arjona
Hi all, First at all, excuse if this is not the right place for sending this email. I'm using ubuntu 14.04 server edition and i'm trying to deploy some virtual machines in a server in such a way that they are visible in the same network that the host machine. The tools I'm using are the uvtool pa