[libvirt-users] online course for libvirt
by Arindam Choudhury
Hi,
It will be very helpful for novice user like me if libvirt developers
consider organizing an online course for libvirt using platform like
coursera or edx.
Thanks
12 years
[libvirt-users] Configuration file question
by David Mitchell
Where are the configuration files for libvirt and/or virsh actually stored? It seems that most of them are in /etc/libvirt but identical copies are also found in /var/lib/libvirt. In my case I am having issues with the network/default.xml file being different. Is there a reason why the config seems to be in two places at once? And which one is the 'correct' one?
-David Mitchell
-----------------------------------------------------------------
| David Mitchell (mitchell(a)ucar.edu) Network Engineer IV |
| Tel: (303) 497-1845 National Center for |
| FAX: (303) 497-1818 Atmospheric Research |
-----------------------------------------------------------------
12 years
Re: [libvirt-users] Libvirt problem with KVM from source
by Ekrem Sonmemis
Hi,
Does your custom KVM binary (source compiled ?) run properly ? Have you test it ? Yes indeed, it compiles fine and works exactly as I wish. The only problem occurs after I try to add libvirt to the custom KVM.
Regards,
Ekrem
12 years
[libvirt-users] Libvirt problem with KVM from source
by Ekrem Sonmemis
Dear List,
I have installed a custom KVM on my Ubuntu 12.04 which I sometimes use. I would like to use it with libvirt, so I used apt-get to install libvirt, virt-viewer and virtinst.
I can start virsh after installation and it says it is version 0.9.8, but once I get to trying to install a VM with virtinst, I get the error message:
ERROR Host does not support any virtualisation options
If I install KVM using apt-get the exact same instruction works, so perhaps the problems occurs with the custom KVM due to the configuration of the KVM install but I'm afraid I can't figure it out. I would really like to make it work with the custom KVM rather than the packaged version. I install the custom KVM at the prefix /usr/local/kvm, but I don't change anything else. Could this have anything to do with it?
Thanks for reading.
Regards,
Ekrem
12 years
[libvirt-users] Managing eths in vm from HV
by john fisher
KVM Ubuntu 12.04 libvirt 1.0
Related to my post of a day ago, but I can't reply to it...
I want to control the order ( and therefore the connection) of eth devices in the vm. If I know what the MAC addresses
are on my HV, as seen in virsh domiflist or in dumpxml, and I then re-write the /etc/udev/rules/70 file in the VM, I can
get the eth devices ordered in a predictable way.
Is there a virsh way to create a VM from a generic xml file, allowing libvirt to add randomized MAC addresses, and then
edit the /etc/udev/rules/70 file in the VM, to associate the eths with the desired MAC?
Better yet, is there a way to simply control the assigning of the eths in the generic xml file used to create the VM?
So far I can make a wrapper script to virsh create xml, read the addresses back, and then start the VM independently,
write to it, and then return control to virsh. That seems clumsy. Virsh ought to be able to control the eths in the VM
without resorting to OS-dependent kludges.
--
John Fisher
12 years
[libvirt-users] Java API Migration error
by Rustam Singh
Hi Guys,
I am trying to perform live migration of a qemu+kvm guest using the libvirt
java api binding. Unfortunately I keep getting this error
Exception in thread "main" org.libvirt.LibvirtException: internal error
unable to add domain task 1598 to cgroup: No space left on device
the number after "domain task" keeps changing on every run, the problem is
migration fails with that error, but it migrates just fine if I try to do
it using virsh.
I'll be delighted if somebody could help me out.
Regards.
12 years
Re: [libvirt-users] Virsh cmd virsh -c qemu:///system fail with ssh connect a non-root user.
by yupzhang
On 12/07/2012 12:56 AM, Eric Blake wrote:
> On 12/06/2012 02:53 AM, yupzhang wrote:
>> HI Eric,
>>
>> I have a question about remote access and usermode:
>>
>> 1.Install a host with graphic,and then configure libvirt environment.
>>
>> 2.Login with non-root user.Then run:
>> $ virsh -c qemu:///system
>> Authenticate dialogue will pop up,input the root password,then
>> successfully connect qemu:///system.
>>
>> 3.On another host,connect the host in step 1 with ssh like this:
>> #ssh -X yuping(a)10.66.*.*
>> input yuping's password.Then ssh to remote yuping user successfully.
>>
>> 4.Run command:
>> $ virsh -c qemu:///system
>> error: authentication failed: Authorization requires authentication but
>> no agent is available.
>>
>> error: failed to connect to the hypervisor
>>
>> Is this a bug? I'm not sure about this,so confirm with you.
> Questions like this are better asked to the libvirt-users(a)redhat.com
> list, where there are more people available to answer the question.
> This particular email nearly got lost in the black hole of a hard disk
> failure on my end last week.
>
> Does the failure also happen when you use 'ssh -A -X' and/or 'ssh -Y'
> instead of plain 'ssh -X'? I suspect that this is an expected
> limitation of how polkit authentication works, where a local user can be
> trusted to provide the credentials needed, but where an ssh session is
> not a local user; but as I am not very familiar with the libvirt code
> that interacts with polkit, I recommend that you ask the list.
>
Hi Eric,
Thanks for your reply,I have added libvirt-users@ to cc list.
I have tried 'ssh -A -X' and 'ssh -Y',still failed:
$ virsh -c qemu:///system
error: authentication failed: Authorization requires authentication but
no agent is available.
error: failed to connect to the hypervisor
Can anyone help me?
Thanks,
Yuping
>> In my opinion,this command should connect qemu:///system successfully
>> with input root password,even with ssh connect to non-root user,the
>> behaviour should keep same.Am I right?
> Authentication is a tricky matter - there is a difference between a
> local user and a user connected through ssh, at least in the eyes of
> polkit authentication, and I don't know if the behavior you observe is
> intentional or a bug.
>
12 years
[libvirt-users] libvirt migrate error
by zhijun liu
hi,all
when I try to migrate `vm0` from (192.168.1.102) to another
host(192.168.1.200), the name `ubuntu1204` is 192.168.1.200's hostname.
command is :
`sudo virsh migrate --live vm0 qemu+tcp://192.168.1.200/system`
the error is : unable to connect to server at 'ubuntu1204:49157':
Connection refused.
however,when I try to virsh connect to 192.168.1.200 by tcp is no problem.
I dont know what the port 49157?how to fix it?
version:libvirt:0.9.8
system:ubuntu1204
thanks in advance for any reply.
12 years
[libvirt-users] Xen 4.2 with libvirt 1.0.0
by Michael Beham
Hi,
has anyone a running environment with Xen 4.2 and libvirt 1.0.0?
I do not get libvirt compiled under the use of Xen 4.2! I always get
some errors during compilation of libvirt caused by libxl.
But i read some posts that libvirt 1.0.0 should work with Xen 4.2
Cheers,
mike
12 years
[libvirt-users] NWFilter and IPv6
by Guido Winkelmann
Hi,
Libvirt's nwfilter ships a number of useful filter scripts by default, but
none to handle IPv6 traffic. Is there a particular reason for that, or is that
just because nobody has got around to that yet?
One interesting thing about dealing with IPv6 traffic is that hosts often have
several auto-configured addresses, usually at least one auto-configured link-
local address under fe80::/64 and one auto-configured one from router-
advertisements. For writing filter rules, it would be nice to have some
function/notation to calculate those auto-configured addresses for the user,
so we can write something like this:
<rule action='return' direction='out' priority='500'>
<ipv6 srcipaddr='ipv6_autoconf($IPV6_PREFIX[@1], $IPV6_MASK[@1], $MAC)'/>
</rule>
<rule action='return' direction='out' priority='500'>
<ipv6 srcipaddr='$IPV6'/>
</rule>
<rule action='drop' direction='out' priority='1000'/>
or maybe more like this:
<ipv6 mode='autoconf' field='srcipaddr' prefix='$IPV6_PREFIX[@1]'
netmask='$IPV6_MASK[@1]' mac='$MAC)'/>
Guido
12 years