[libvirt-users] problem connecting to libvirtd remotely; compiled from sources

2015-11-02 Thread Andrei Perietanu
I am trying to add libvirt to a linux machine running a custom built linux- there is no packet manager, everything is compiled using buildroot. On this VM server, I am running libvirt-1.2.2 and the linux kernel is 3.18.21 Libvirtd starts and runs in the background. I can add/edit VMs using Virt-i

[libvirt-users] libvirt list --all shows empty list after restart

2015-12-01 Thread Andrei Perietanu
Hi all, I think I might have a small configuration issue: after restarting my machine, all the VMs previously installed are not available. virsh list --all shows an empty list. The .img files where the VMs were intalled are present in the folder I put them in. Furthermore if I import the VMs (v

[libvirt-users] create a directory storage pool in a random location

2015-12-02 Thread Andrei Perietanu
Hi all, I am trying to figure out if you can store the definition of a directory storage pool in a custom location. This is how I create the storage pool: xmlDesc = """ guest_images_storage_pool 8c79f996-cb2a-d24d-9822-ac7547ab2d01 4306780815 237457858 4069322956 /disk1/guest_images

[libvirt-users] libvirt domain configuration xml

2015-12-11 Thread Andrei Perietanu
I am trying to change a domain configuration from a python script. More specific, I want to edit the VNC settings. You can't do this using the libvirt API so you have to edit the domain configuration: Fo exmple, to disable VNC for a domain 'test1': vmXml = vm.XMLDesc(0) root = ET.fromstring(vmXml

Re: [libvirt-users] libvirt domain configuration xml

2015-12-15 Thread Andrei Perietanu
e wrote: > On 12/11/2015 07:26 AM, Andrei Perietanu wrote: > > I am trying to change a domain configuration from a python script. More > > specific, I want to edit the VNC settings. You can't do this using the > > libvirt API so you have to edit the domain configurati

[libvirt-users] migrate a guest from VMware to KVM

2015-12-17 Thread Andrei Perietanu
I am trying to migrate a VMware guest to KVM. I have the .vmdk file which I convert to qcow2 format using qemu-img convert. The next step is to import the new img file. If I use virt-install --import it all works fine. But when I try the same think using the libvirt API I get the "no boot disk f

Re: [libvirt-users] migrate a guest from VMware to KVM

2015-12-17 Thread Andrei Perietanu
>On Thu, Dec 17, 2015 at 12:20 PM, Michal Privoznik wrote: > On 17.12.2015 13:06, Andrei Perietanu wrote: > > I am trying to migrate a VMware guest to KVM. I have the .vmdk file > which I > > convert to qcow2 format using qemu-img convert. > > > > The next s

[libvirt-users] remove cdrom after installing os on a guest

2016-01-08 Thread Andrei Perietanu
Hi all, I have the following issue, and I hope someone know a way to handle it. I need to grammatically need to create/install a guest OS using the libvirt API. Currently what I do: 1. create a xml with the vm configuration (this will include a path to the iso image) 2. connection.defineXML()

[libvirt-users] executing libvirt commands as a different user

2016-01-21 Thread Andrei Perietanu
I am using the libvirt API to manage VMs on the system, using a python wrapper to execute commands. I need to allow a webserver to access these commands and mostly read information about the VMs. The problem is that when using the web interface you use are basically running the commands as differen

[libvirt-users] starting a domain only when you have enough resources

2016-01-26 Thread Andrei Perietanu
Hi all, I am running KVM on a 3.18 kernel. The system runs and Atom processor with 2Gb RAM. Using KVM you obviously can over allocate your resources: say you have 4 guests each configured with 1GB ram. Running all four at the same time, depending on the workload, can crash the system - I get a ke

Re: [libvirt-users] starting a domain only when you have enough resources

2016-01-26 Thread Andrei Perietanu
On Tue, Jan 26, 2016 at 12:39 PM, Michal Privoznik wrote: > On 26.01.2016 12:30, Andrei Perietanu wrote: > > Hi all, > > > > I am running KVM on a 3.18 kernel. The system runs and Atom processor > with > > 2Gb RAM. > > > > Using KVM you obviously can ov

Re: [libvirt-users] starting a domain only when you have enough resources

2016-01-26 Thread Andrei Perietanu
On Tue, Jan 26, 2016 at 1:51 PM, Michal Privoznik wrote: > On 26.01.2016 14:35, Andrei Perietanu wrote: > > On Tue, Jan 26, 2016 at 12:39 PM, Michal Privoznik > > wrote: > > > >> On 26.01.2016 12:30, Andrei Perietanu wrote: > >>> Hi all, > >>&g

Re: [libvirt-users] starting a domain only when you have enough resources

2016-01-26 Thread Andrei Perietanu
On Tue, Jan 26, 2016 at 2:01 PM, Andrei Perietanu < andrei.periet...@klastelecom.com> wrote: > > On Tue, Jan 26, 2016 at 1:51 PM, Michal Privoznik > wrote: > >> On 26.01.2016 14:35, Andrei Perietanu wrote: >> > On Tue, Jan 26, 2016 at 12:39 PM, Michal Privoz

[libvirt-users] generate interface MAC addresses in a particular order

2016-01-29 Thread Andrei Perietanu
Hi all, I am using libvirt to manage VM on my system; after creating a VM (default no NICs are present in the configuration) you can add any number of interfaces to it (as long as they exist on the host). To do that, I edit the configuration xlm: vmXml = self.domain.XMLDesc() root

Re: [libvirt-users] generate interface MAC addresses in a particular order

2016-02-01 Thread Andrei Perietanu
On Sun, Jan 31, 2016 at 8:56 AM, Michal Privoznik wrote: > On 29.01.2016 11:24, Andrei Perietanu wrote: > > Hi all, > > > > I am using libvirt to manage VM on my system; after creating a VM > (default > > no NICs are present in the configuration) you can add any

[libvirt-users] problem cloning storage pool volume

2016-02-19 Thread Andrei Perietanu
I'm trying to clone a volume in a storage pool and I'm following the steps described here: http://libvirt.org/docs/libvirt-appdev-guide-python/en-US/html/libvirt_application_development_guide_using_python-Storage_Pools-Cloning.html My code looks like: destXML = """ """

Re: [libvirt-users] problem cloning storage pool volume

2016-02-19 Thread Andrei Perietanu
On Fri, Feb 19, 2016 at 12:12 PM, Martin Kletzander wrote: > On Fri, Feb 19, 2016 at 11:12:32AM +0000, Andrei Perietanu wrote: > >> I'm trying to clone a volume in a storage pool and I'm following the steps >> described here: >> >> http://libvirt.org/doc

Re: [libvirt-users] problem cloning storage pool volume

2016-02-24 Thread Andrei Perietanu
bvirt.org. So it's either a bug or the tutorial is not correct. Andrei On Mon, Feb 22, 2016 at 11:10 AM, Martin Kletzander wrote: > On Fri, Feb 19, 2016 at 12:33:10PM +, Andrei Perietanu wrote: > >> On Fri, Feb 19, 2016 at 12:12 PM, Martin Kletzander >> wrote: >&g

[libvirt-users] removing virbr0

2016-03-09 Thread Andrei Perietanu
I am building a custom Linux image which includes KVM and will be installed on multiple machines. By default when installing libvirt you get a 'default network' which adds a 'vrbr0'. I found several tutorials online about removing this 'virbr0' but I would like to not have it in the first place. I

Re: [libvirt-users] removing virbr0

2016-03-09 Thread Andrei Perietanu
On Wed, Mar 9, 2016 at 2:49 PM, Andrea Bolognani wrote: > On Wed, 2016-03-09 at 14:15 +0000, Andrei Perietanu wrote: > > I am building a custom Linux image which includes KVM and will be > installed on multiple machines. By default when > > installing libvirt you get a '

Re: [libvirt-users] removing virbr0

2016-03-09 Thread Andrei Perietanu
On Wed, Mar 9, 2016 at 3:05 PM, Andrea Bolognani wrote: > On Wed, 2016-03-09 at 14:53 +0000, Andrei Perietanu wrote: > > > > On Wed, Mar 9, 2016 at 2:49 PM, Andrea Bolognani > wrote: > > > On Wed, 2016-03-09 at 14:15 +, Andrei Perietanu wrote: > > >

[libvirt-users] EPT Misconfiguration

2016-03-10 Thread Andrei Perietanu
I am using libvirt 1.2.20. I noticed that when running some VMs (CentOS ) with 2G ram, 2CPUs each for some reason they go from 'state=running' to 'state=paused'; and they can't be restarted. They are un-usable. When this happens I get the following in dmesg output: [ 46.595265] EPT: Misconfigur

[libvirt-users] changing clock on host temporarily blocks guest OS operation

2016-03-22 Thread Andrei Perietanu
I have the following running on my system: - one linux host running libvirt 1.2.20 - two Linux guestOS VMs running When I change the clock on the host, the VMs stop responding: The VNC connection stops working, the console connection to the VMs does not work, ping stops reponding, libvirt

[libvirt-users] problem with disk virtio driver

2016-10-05 Thread Andrei Perietanu
I just ran into a problem I can't make heads or tails of, so I'm hoping to get some help here. I have a custom built Embedded Linux running qemu-kvm 1.1.2 and libvirt 1.2.20 I'm creating a domain with the following config: myVM 2097152 2 hvm

Re: [libvirt-users] problem with disk virtio driver

2016-10-05 Thread Andrei Perietanu
g time (usually, because of missing dependencies), but I'm not sure I have any other option at this point... Andrei On Wed, Oct 5, 2016 at 2:45 PM, Andrea Bolognani wrote: > On Wed, 2016-10-05 at 12:13 +0100, Andrei Perietanu wrote: > > I just ran into a problem I can't

Re: [libvirt-users] problem with disk virtio driver

2016-10-05 Thread Andrei Perietanu
On Wed, Oct 5, 2016 at 4:18 PM, Martin Kletzander wrote: > On Wed, Oct 05, 2016 at 03:00:40PM +0100, Andrei Perietanu wrote: > >> Hi Andrea, >> Thanks for the reply; >> To shed some more light on the matter I performed a few more tests; each >> time doin

Re: [libvirt-users] problem with disk virtio driver

2016-10-13 Thread Andrei Perietanu
idea what or how to debug it. Any help is greatly appreciated. Thanks! On Wed, Oct 5, 2016 at 5:07 PM, Andrei Perietanu < andrei.periet...@klastelecom.com> wrote: > > > On Wed, Oct 5, 2016 at 4:18 PM, Martin Kletzander > wrote: > >> On Wed, Oct 05, 2016 at 03:00:40