[libvirt-users] Backups failing due to snapshot already exists

2016-07-06 Thread Phill Edwards
My VMs are raw disk images as logical volumes. My backup script takes a snapshot of a VM's volume, copies it off to another machine and then deletes the snapshot. For some reason I have a snapshot that didn't delete which is now preventing the backups from proceeding: ... Friday 1 July 02:10:01

Re: [libvirt-users] Problem executing VM backups

2016-06-23 Thread Phill Edwards
> > Does this only work for qcow2 images, or will it also work for LVM images? > > If your root backing file is raw (I tested this just now, again) or LVM, > it should work just fine. And the overlays will _have_ to be qcow2 > files. All my VM images are raw format on LVM volumes (hope I'm using

Re: [libvirt-users] Problem executing VM backups

2016-06-23 Thread Phill Edwards
I changed our backup script to use the method explained in http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit and this night, everything seems to have worked smoothly. The backup is even faster now than before. > Does this only work for qcow2 images, or will it also work for LVM

[libvirt-users] How to use PHP libvirt_connect?

2016-06-11 Thread Phill Edwards
I'm having a go at writing some PHP scripts to do simple things like view the status of VMs running on my Ubuntu KVM host. I've installed php_libvirt_php but am failing at the first hurdle at the moment as I can't get the PHP script to connect. My normal way of connecting virsh from the command l

[libvirt-users] Hypervisor loses network connectivity

2015-12-22 Thread Phill Edwards
I have been running KVM on a CentOS 7.1 host for a few months. I have one "main" host server plus a "backup" host server. Some time ago everything was running fine on "main", but all of a sudden the server became non-contactable on it's network interface. I could no longer SSH in and therefore coul

Re: [libvirt-users] How to fix an incorrect storage pool?

2015-11-11 Thread Phill Edwards
On 12 Nov 2015 13:27, "Han Han" wrote: > > It says that Logical volume centos_hyv2/swap in use. Maybe centos_hyv2/swap is mounted. So I think you should umount or > swapoff centos_hyv2/swap first, make sure it is not used by other process. Then try pool-destroy. > Yes, that's the system swap. Th

[libvirt-users] How to fix an incorrect storage pool?

2015-11-11 Thread Phill Edwards
I've created my storage pool incorrectly. I'm using LVM and I have a volume group called vms-lvm. When I look at it in virt-manager I see that the volumes it contains are home, root and swap, so when I created the storage group in virt-manager I must have specified something incorrectly. Unfortuna

[libvirt-users] Can't get PCI passthrough working

2015-09-06 Thread Phill Edwards
I'm trying to get PCI passthrough working by passing through a DVB-T TV card to a VM running MythTV. When I assign the PCI devices in virt-manager and attempt to start the VM I get this error: Error starting domain: internal error: process exited while connecting to monitor: 2015-09-06T12:41:09.72

Re: [libvirt-users] Can't get cable connection working on virtual router machine

2015-09-05 Thread Phill Edwards
> > I'm pretty new to KVM and have a KVM CentOS 7.1 hypervisor running a few > VMs. I'm moving all my VMs from an ESXi host as I want to use KVM in > future. Most of my VMs are working except for one which is running a Sophos > UTM router (Sophos UTM is similar to products like pfSense >

Re: [libvirt-users] Can't get cable connection working on virtual router machine

2015-09-01 Thread Phill Edwards
m > > - ajey > > > > On Tue, Sep 1, 2015 at 4:33 PM, Phill Edwards > wrote: > >> Hi, I'm not sure what sort of diagram you mean, but I'll have a try. Does >> this help? It sounds like I need to do something to enable routing on what >> I've

Re: [libvirt-users] Can't get cable connection working on virtual router machine

2015-09-01 Thread Phill Edwards
Tue, Sep 1, 2015 at 4:53 PM, Ajey Gore wrote: > Can you please drop a rough diagram here? I think you are routing through > this VM and must have shared the host interface. > > - ajey > > > > On Tue, Sep 1, 2015 at 7:39 AM, Phill Edwards > wrote: > >> I'

[libvirt-users] Can't get cable connection working on virtual router machine

2015-08-31 Thread Phill Edwards
I'm pretty new to KVM and have a KVM CentOS 7.1 hypervisor running a few VMs. I'm moving all my VMs from an ESXi host as I want to use KVM in future. Most of my VMs are working except for one which is running a Sophos UTM router (Sophos UTM is similar to products like pfSense

[libvirt-users] KVM Storage Pools on LVM

2015-08-15 Thread Phill Edwards
I have been running some virtual machines on CentOS7 KVM with the VMs living in a folder under a /home directory. Everything I've read says to create LVM volume groups and base storage pools on that. So i followed the instructions at https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_