Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Gary R Hook
On 1/8/15 3:04 PM, Eric Blake wrote: Where are you specifying the format? I have not personally played with NBD much. This appears to be the pervasive situation. There's not much out there in google-land about this. But here's my guess: Even though /tmp/dsk.test.qcow2 is a qcow2 file, th

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Gary R Hook
On 1/8/15 2:48 PM, Eric Blake wrote: On 12/23/2014 05:24 PM, Gary R Hook wrote: I read that article. Now shut down the domain (post-pivot) which is using the new disk file, and start it up, without using a block device. This is the part that no one seems to write about, nor do I see that in you

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Gary R Hook
On 1/8/15 2:21 PM, Kashyap Chamarthy wrote: qemu-img create -f qcow2 /tmp/dsk.test.qcow2 A typo? You also need to provide a size here: $ qemu-img create -f qcow2 /tmp/dsk.test.qcow2 1G Yes, my mistake. The size is set to the potential size of the source disk, which in this case is 20G

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/01/2015 22:04, Eric Blake wrote: > Where are you specifying the format? I have not personally played > with NBD much. But here's my guess: Even though > /tmp/dsk.test.qcow2 is a qcow2 file, the NBD server is serving up a > RAW image through

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Eric Blake
On 01/08/2015 12:44 PM, Gary R Hook wrote: > I've learned how to use the blockcopy command to create a local copy in > a simple disk file: > > virsh dumpxml my_domain > my_domain.xml > virsh undefine my_domain > virsh blockcopy --domain my_domain vda $PWD/dsk.copy.qcow2 --wait > --verbose --finis

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Eric Blake
On 12/23/2014 05:24 PM, Gary R Hook wrote: > I read that article. > > Now shut down the domain (post-pivot) which is using the new disk file, > and start it up, without using a block device. This is the part that no > one seems to write about, nor do I see that in your example. But thank > you ver

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Kashyap Chamarthy
On Thu, Jan 08, 2015 at 01:44:58PM -0600, Gary R Hook wrote: > On 12/24/14 4:42 AM, Kashyap Chamarthy wrote: > >On Tue, Dec 23, 2014 at 12:38:57PM -0600, Gary R Hook wrote: > > > >[. . .] > > > >In my case, the block device is a QCOW2 disk image file. If I boot > >without using the disk image file

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Gary R Hook
On 12/24/14 4:42 AM, Kashyap Chamarthy wrote: On Tue, Dec 23, 2014 at 12:38:57PM -0600, Gary R Hook wrote: [. . .] In my case, the block device is a QCOW2 disk image file. If I boot without using the disk image file which has the operating system, the domain will fail to boot, no? I see you're

Re: [libvirt-users] Private network for LXC

2015-01-08 Thread Daniel P. Berrange
On Wed, Jan 07, 2015 at 12:20:59AM +0200, Γιώργος Τσίρκας wrote: > Hello, i read about virtualization! It's very interesting,so i decided to > find out more about it! I made my first linux container but i need some > help about the creation of a private network with double nat! Thi page is a simpl

Re: [libvirt-users] Error starting domain: internal error: missing IFLA_VF_INFO in netlink response

2015-01-08 Thread hong-hua....@freescale.com
Hi Laine, Sorry to disturb you. It seemed this issue had been fixed in libvirt-1.2.2/libnl-3.2.22/linux-3.12. But we still got the error on PowerPC platform. I'll appreciate if you could give any suggestion. We are not sure if any netlink implementation in kernel space is missed. The scenario

[libvirt-users] Libvirt guest can't boot up when use ceph as storage backend with Selinux enabled

2015-01-08 Thread Shanzhi Yu
Hi there, I met one problem that guest fail to boot up when Selinux is enabled with guest storage based on ceph. However, I can boot the guest with qemu directly. I also can boot it up with Selinux disabled. Not sure it is a libvirt bug or wrong use case. 1. Enable Selinux # getenforce &&