Displaying 20 results from an estimated 1000 matches similar to: "generate interface MAC addresses in a particular order"
2016 Feb 01
1
Re: generate interface MAC addresses in a particular order
On Sun, Jan 31, 2016 at 8:56 AM, Michal Privoznik <mprivozn@redhat.com>
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 number of
> > interfaces to it (as long as they exist on the host).
2015 Dec 11
2
libvirt domain configuration xml
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)
devices = root.find('./devices')
graphics = devices.find('graphics')
2016 Jan 31
0
Re: generate interface MAC addresses in a particular order
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 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 =
2016 Jan 08
2
remove cdrom after installing os on a guest
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(<my_config>)
3. vm = connection.lookupByName(<domain_name>)
4. vm.create()
This will
2015 Dec 17
2
migrate a guest from VMware to KVM
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 <guest config options> it all works fine.
But when I try the same think using the libvirt API I get the "no boot disk
found" message when starting the vm.
When importing the VM
2015 Dec 15
1
Re: libvirt domain configuration xml
Tanks for the reply Eric.
The only reason I'm not going through the API is because there is nothing
in the API (AFIK), that will allow you to modify the VNC settings, i.e.
enable/disable, change port number. So I figured, the only way to do it is
to modify the XML.
I can't use virsh edit because I need this whole behavior scripted.
So now if I want to change the VNC settings it
2016 Feb 19
2
Re: problem cloning storage pool volume
On Fri, Feb 19, 2016 at 12:12 PM, Martin Kletzander <mkletzan@redhat.com>
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:
>>
>>
2016 Feb 19
2
problem cloning storage pool volume
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 = """
<volume>
2016 Mar 09
2
removing virbr0
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 am compiling libvirt from source so I would think there is some compile
time
2015 Dec 02
1
create a directory storage pool in a random location
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 = """
<pool type='dir'>
<name>guest_images_storage_pool</name>
<uuid>8c79f996-cb2a-d24d-9822-ac7547ab2d01</uuid>
<capacity unit='bytes'>4306780815</capacity>
2016 Jan 21
2
executing libvirt commands as a different user
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 different user. Since
libvirtd is run as root by default you get permission errors.
Is there any way of
2016 Jan 26
2
starting a domain only when you have enough resources
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 kernel trace when
this happens.
But let's consider a simpler case: one guest with 1.5 Gb RAM,
2016 Mar 09
4
Re: removing virbr0
On Wed, Mar 9, 2016 at 2:49 PM, Andrea Bolognani <abologna@redhat.com>
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 'default network' which adds a 'vrbr0'.
> > I found several
2016 Oct 05
2
Re: problem with disk virtio driver
On Wed, Oct 5, 2016 at 4:18 PM, Martin Kletzander <mkletzan@redhat.com>
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 doing a clean install. I installed ubuntu14.04 as the guest OS,
>> keeping
2016 Jan 26
2
Re: starting a domain only when you have enough resources
On Tue, Jan 26, 2016 at 12:39 PM, Michal Privoznik <mprivozn@redhat.com>
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 over allocate your resources: say you have 4
> > guests each configured
2016 Oct 05
3
Re: problem with disk virtio driver
Hi Andrea,
Thanks for the reply;
To shed some more light on the matter I performed a few more tests; each
time doing a clean install. I installed ubuntu14.04 as the guest OS,
keeping everything else the same.
On my custom Linux I've created ubuntu VMs before (using ide drivers) and
it all works file. This time I created the VM using virtio disk drivers and
the installation didn't
2016 Oct 05
2
problem with disk virtio driver
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:
<domain type='kvm'>
<name>myVM</name>
<memory unit='KiB'>2097152</memory>
<vcpu
2016 Jan 26
2
Re: starting a domain only when you have enough resources
On Tue, Jan 26, 2016 at 1:51 PM, Michal Privoznik <mprivozn@redhat.com>
wrote:
> On 26.01.2016 14:35, Andrei Perietanu wrote:
> > On Tue, Jan 26, 2016 at 12:39 PM, Michal Privoznik <mprivozn@redhat.com>
> > wrote:
> >
> >> On 26.01.2016 12:30, Andrei Perietanu wrote:
> >>> Hi all,
> >>>
> >>> I am running KVM on a 3.18
2016 Feb 22
0
Re: problem cloning storage pool volume
On Fri, Feb 19, 2016 at 12:33:10PM +0000, Andrei Perietanu wrote:
>On Fri, Feb 19, 2016 at 12:12 PM, Martin Kletzander <mkletzan@redhat.com>
>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:
>>>
>>>
2016 Mar 10
0
EPT Misconfiguration
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: Misconfiguration.
[ 46.595271] EPT: GPA: 0xfee000b0
[ 46.595275]