Hi!
Is there any way to specify ethernet device name to be created inside
the openvz container?
I could find such info at http://libvirt.org/formatdomain.html#elementsNICS.
If I do as below I get br0 as ethernet device inside VM whereas I'd like
it to be eth0.
$ cat ovz.xml
<domain type='openvz' id='144'>
<name>144</name>
<uuid>0071c128-58b4-4688-be17-1e062a22b36c</uuid>
<vcpu>1</vcpu>
<memory>524288</memory>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<devices>
<filesystem type='template'>
<source name='centos-5-x86'/>
<target dir='/'/>
</filesystem>
<interface type='bridge'>
<source bridge='br0'/>
</interface>
</devices>
</domain>
$ virsh create ovz.xml
Domain 144 created from ovz.xml
$ grep -i netif /etc/vz/conf/144.conf
NETIF="ifname=br0,bridge=br0,mac=52:54:00:74:DD:F3,host_ifname=veth144.0,host_mac=52:54:00:06:78:76"
br0 is a bridge on the server (CT0). But I would like to assign ethernet
device inside VM as eth0 i.e. ifname in VM config has to be eth0.
ovzkernel release is 2.6.18-194.26.1.el5.028stab081.1
OS is CentOS 5.5, libvirt/virsh version is 0.8.8.
Best regards,
Nikolay.
Hi!
as far as I understood from "xml format for openvz driver" thread
available at [1] it should be possible to specify via libvirt disk size
and disk inodes for openvz VM.But the following device section in VM xml
description doesn't set disksize and diskinodes properly (it looks like
those parameters are taken from default OpenVZ config and not as they
are specified in libvirt tags):
<devices>
<filesystem type='template'>
<source name='centos-5-x86'/>
<target dir='/'/>
<quota type="size" max="100000"/>
<quota type="inodes" max="200000"/>
</filesystem>
</devices>
Could anyone manage to set mentioned OpenVZ parameters properly? I am
using libvirt-0.8.8, CentOS 5.5, vzctl version is 3.0.26-1.
Thanks!
Nikolay.
[1] http://www.mail-archive.com/libvir-list@redhat.com/msg07329.html
Hi list,
I'm using the Python API to check for libvirt events. Works well, but
when libvirtd is restarted, or stopped completely, the events are no
longer seen. I guess this is logical, but how would I deal with this
situation ?
I can re-open the connection to libvirt and re-register the callbacks,
but this does not work. If I call virEventLoopPureRegister() again, the
app crashes with a glibc error.
Any ideas ? You can reproduce this by using the event-test.py supplied
with libvirt. Fire it up, restart libvirtd and see what happens when you
start or stop a domain for example.
Many thanks for any pointers.
- Jasper
I am having problem in guest creation for a pv-ops Dom0 kernel
I compiled every thing from scratch.(Xen and 2.6.32.27 pv-ops dom0 kernel)
on a Ubuntu Desktop 10.04 64 bit.
Following is my config file for 2.6.32.27
http://pastebin.com/AvSVgVQE
and the error I am getting trying to create a guest with virt-install is
ERROR unable to connect to 'localhost:8000': Connection refused
Traceback (most recent call last):
File "/usr/bin/virt-install", line 943, in <module>
main()
File "/usr/bin/virt-install", line 715, in main
conn = cli.getConnection(options.connect)
File "/usr/lib/pymodules/python2.6/virtinst/cli.py", line 162, in
getConnection
conn = open_connection(connect)
File "/usr/lib/pymodules/python2.6/virtinst/cli.py", line 177, in
open_connection
open_flags)
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 111, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: unable to connect to 'localhost:8000': Connection refused
I am able to see xm info output but some how the guest creation is failing.
I could be wrong, but this doesn't appear to be a kernel problem. Especially
if xm info is working, so the xen service has started already.
Maybe my libvirt version doesn't know how to use the xen 4.0 utils or the
pvops kernel?
I tried creating a guest by virt-manager also which when installed via
apt-get install ubuntu-virt-server ubuntu-virt-mgmt
installs following
http://packages.ubuntu.com/lucid/<http://packages.ubuntu.com/lucid/libvirt-bin>
ubuntu-virt-server
http://packages.ubuntu.com/lucid/<http://packages.ubuntu.com/lucid/libvirt-bin>
ubuntu-virt-mgmt
Now when I open virt-manager the option to create guest by installing from
a ISO present on hard disk locally or even
PXE are greyed out.virt-manager version is 0.8.2
virsh version
Compiled against library: libvir 0.7.5
Using library: libvir 0.7.5
Using API: QEMU 0.7.5
Running hypervisor: QEMU 0.12.3
This above output is wrong as instead of QEMU it should show Xen.
I installed it via apt-get install libvirt-bin
when you do an apt-get install libvirt-bin python-libvirt then it installs
following
http://packages.ubuntu.com/lucid/libvirt-binhttp://packages.ubuntu.com/lucid/python-libvirt
It appears it is a problem with libvirt-bin and it does not know how to
create a pv-ops Dom0 guest.
The machine where I am trying all this is a non VT 64 bit machine and trying
to create 32 bit guests on it.
Can some one confirm me the same or tell what did I missed in above?
--
http://mightydreams.blogspot.com
Hi,
Can virsh be used to connect to a standalone KVM? I.e. I started a KVM from the command line, and I wondered how to connect to it. Virsh list shows no VMs. Thanks.
Patrick
Hi!
Is there any progress on issue mentioned in [1]? I mean the issue when
xml file has VM type as openvz but 'virsh dumpxml <VMID>' returns domain
type qemu. I still have issue in libvirt-0.8.8.
BR,
Nikolay.
[1] http://osdir.com/ml/libvir-list/2009-07/msg00635.html
Hi!
In [1] it's written that "Then a generic configuration file
/etc/vz/vznetctl.conf must be created containing [...]" whereas it has
to be /etc/vz/vznet.conf since /usr/sbin/vznetcfg script has the
following line
VZNETCFG='/etc/vz/vznet.conf'
vzctl version is 3.0.26-1.
Best regards,
Nikolay.
[1] http://libvirt.org/drvopenvz.html