[libvirt] can't install fedora guest
by Farkas Levente
hi,
while i try to install fedora-10 guest on centos-5 host i've got the
error bellow virt-manager. our setup:
virt-manager-0.6.1-1
libvirt-0.6.0-1
kvm-83-1
-----------------------------------------------
Unable to complete install 'libvirt.libvirtError internal error unable
to start guest:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 717, in
do_install
dom = guest.start_install(False, meter = meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 926,
in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 966,
in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 973, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error unable to start guest:
-----------------------------------------------
while this is in virt-manager's log:
-----------------------------------------------
[Fri, 06 Feb 2009 10:27:15 virt-manager 31523] DEBUG (Storage:908)
Storage volume 'fedora-i386.img' install complete.
[Fri, 06 Feb 2009 10:27:15 virt-manager 31523] DEBUG (Guest:964)
Creating guest from:
<domain type='kvm'>
<name>fedora-i386</name>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<uuid>75330b36-f8e3-8459-2d71-fb47245d7203</uuid>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='cdrom'/>
</os>
<features>
<acpi/><apic/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<console type='pty'/>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/fedora-i386.img'/>
<target dev='vda' bus='virtio'/>
</disk>
<disk type='block' device='cdrom'>
<source dev='/dev/hda'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='bridge'>
<source bridge='eth0'/>
<mac address='54:52:00:5d:99:c0'/>
<model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' keymap='en-us'/>
<sound model='es1370'/>
</devices>
</domain>
[Fri, 06 Feb 2009 10:27:16 virt-manager 31523] ERROR (create:735) Unable
to complete install 'libvirt.libvirtError internal error unable to start
guest:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 717, in
do_install
dom = guest.start_install(False, meter = meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 926,
in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 966,
in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 973, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error unable to start guest:
'
[Fri, 06 Feb 2009 10:27:16 virt-manager 31523] DEBUG (error:76) Uncaught
Error: Unable to complete install: 'internal error unable to start
guest: ' : Unable to complete install 'libvirt.libvirtError interna
l error unable to start guest:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 717, in
do_install
dom = guest.start_install(False, meter = meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 926,
in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 966,
in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 973, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error unable to start guest:
'
-----------------------------------------------
--
Levente "Si vis pacem para bellum!"
16 years, 2 months
[libvirt] Java binding - JVM crashes .. sometimes
by Daniel Schwager
Hi,
since I updated to the new libvirt-version (CVS snapshot of today),
my JVM running my multi-thread application "sometimes" will crashes
if I open or close libvirt-connection (on KVM hypervisor).
I didn't find out the exact szenario - simple junit tests are running well.
But inside my main application (multi tread, multiple fast access to libvirt java interface)
will crash the JVM.
The crash-report looks like ALWAYS like the following 2 examples.
Is there a way to
- debug this
- make the JNI code more robust ?
- make the open/close of libvirt more robust ?
I think the JVM crashes, because the libvirt crashes. Is there a
way to look inside libvirt to see a "crash" of the native libvirt-prog ?
My application runs very well with the old version libvirt-0.4.5. I think,
problem starts with >= 0.5.
One more: Something, it happens, that a virsh -command on the commandline
prints out an error message similar to "Can't connect to hypervisor" (I can't
reproduce it at the moment). Multiple repeating the command works well.
This happens not often - but sometimes..
Now, the Stacktrace of the crashed JVM
** first
...
Instructions: (pc=0x0000000001206351)
0x0000000001206341: c0 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f c9 c3
0x0000000001206351: 49 8b 3e e8 47 f7 fc ff 84 c0 74 18 48 8b 15 bc
Stack: [0x0000000002430000,0x0000000002531000], sp=0x000000000252f0d0, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x34a351]
V [libjvm.so+0x325201]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.libvirt.Connect._close(J)I+0
j org.libvirt.Connect.close()V+5
j org.libvirt.Connect.finalize()V+1
v ~StubRoutines::call_stub
j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
j java.lang.ref.Finalizer.runFinalizer()V+45
j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j java.lang.ref.Finalizer$FinalizerThread.run()V+11
v ~StubRoutines::call_stub
...
** Second
...
Stack: [0x000000002a061000,0x000000002a162000], sp=0x000000002a15e050, free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x34a351]
V [libjvm.so+0x325201]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.libvirt.Connect._open(Ljava/lang/String;)J+0
j org.libvirt.Connect.<init>(Ljava/lang/String;Z)V+23
j de.dtnet.virtcontroller.server.command.VDomain.open(Ljava/lang/String;)Lorg/libvirt/Connect;+74
...
Viele Gruesse
Daniel Schwager
-------------------------------------------------------------------
DT Netsolution GmbH - Taläckerstr. 30 - D-70437 Stuttgart
Geschäftsführer: Daniel Schwager, Stefan Hörz - HRB Stuttgart 19870
Tel: +49-711-849910-32, Fax: -932 - Mailto:daniel.schwager@dtnet.de
16 years, 2 months
[libvirt] A problem about libvir
by 刘刚
Hello, I have a problem for help. I use the libvir library 0.4.2 on
Xen 3.2.0, the host OS is Suse 10.2 . I start a windows domain (windows xp).
I use the function virDomainAttachDevice() to attach an iSCSI device to the
windows domain,but it failed. I can use this function to attach an iSCSI
device
to a linux domain. How can I attach an iSCSI device to a windows domain ?
or libvir doesn't support attach device to windows domain ?
thanks a lot!
MOBILE: 13622388220
HUAWEI TECHNOLOGIES CO.,LTD.
Address: Huawei Industrial Base
Bantian Longgang
Shenzhen 518129, P.R.China
E-mail: liugang8440265(a)huawei.com
www.huawei.com
16 years, 2 months
[libvirt] [PATCH] Initialize vm def monitor fd
by Cole Robinson
We weren't properly initializing the monitor fd value in the VM
definition structure. If qemu failed to start up, this could lead to
closing stdin, which made all sorts of poo hit the fan. The attached
patch fixes this.
Thanks,
Cole
16 years, 2 months
[libvirt] Bug in qemud/Makefile.in, compiling CVS-snapshot failed.
by Daniel Schwager
Hi,
i checked out the current CVS snapshot (20090217-1530GMT+1), but
compiling
failed:
sh autogen.sh
make rpm
....
make[4]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.6.99/src'
make[3]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.6.99/src'
Making all in qemud
make[3]: Entering directory `/root/rpmbuild/BUILD/libvirt-0.6.99/qemud'
Makefile:1284: *** missing separator. Stop.
make[3]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.6.99/qemud'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.6.99'
...
Please adapt the qemud/Makefile.in to use TAB instead of spaces in the
"remote_protocol.c: remote_protocol.h" make-target.
regards
Danny
16 years, 2 months
[libvirt] [PATCH 1/4] fix problem with MKDIR_P vs mkdir_p
by Maximilian Wilhelm
From: Matthias Bolte <photon(a)upb.de>
configure defines mkdir_p but src/Makefile.am uses MKDIR_P
---
src/Makefile.am | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 9d934b4..eff9039 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -589,6 +589,8 @@ endif
endif
EXTRA_DIST += $(LXC_CONTROLLER_SOURCES)
+MKDIR_P = $(mkdir_p)
+
install-exec-local:
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/cache/libvirt"
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/images"
--
1.5.6.5
16 years, 2 months
[libvirt] Network Configuration question
by Remko Nolten
Hi!
For a shared virtual hosting project with some friends we need a
pretty specialized network configuration. Because we have virtually no
time for experimenting (no pun intended), and the hosting organization
has no experience with libvirt/KVM configurations they suggested to
try and ask here.
So, this is the situation: We have a server with one physical
connection. Each user gets one virtual machine with its own IP-address
(we have our own ip-range). The hosting organization gives us one
"main" address 'A' with netmask 255.255.255.0 (/24) and a default
gateway for our host machine. Besides this we get a number of
addresses B1, B2, etc. with netmask 255.255.255.255 (/32) and without
a default gateway. The switch just routes the traffic to our server
for each ip-address we own (A and Bn).
According to our hosting organization, the normal solution is to
configure a loopback interface for each of the ip-addresses on the
server so you can configure your software just to use one of the
addresses. But we are not sure how this will work out in our virtual
environment. Our intuition tells us we need to use the routing network
forwarding mode, but when we bring the server to the data center we
don't want to have any surprises. :)
Here at home I don't have to possibility to create similar
circumstances as in the data center due to some restriction from my
ISP, so I hope someone can tell me if our intuition is correct or that
we need to use some other method.
Thanks in advance!
--
Remko Nolten
Tel: 06-45600767
E-mail: remko(a)nolten.nu
16 years, 2 months