[libvirt-users] segfault while unloading libvirt provider.
by Sharad Mishra
I have a CIM provider that just calls virConnectOpen("qemu:///system"); and
virConnectClose(). When cimom unloads this provider segfaults -
#0 0x000000305b420cd0 in ?? ()
(gdb) bt
#0 0x000000305b420cd0 in ?? ()
#1 0x00000031a3e05ad9 in __nptl_deallocate_tsd ()
from /lib64/libpthread.so.0
#2 0x00000031a3e0674b in start_thread () from /lib64/libpthread.so.0
#3 0x00000031a32d3d1d in clone () from /lib64/libc.so.6
If I remove virConnectOpen and virConnectClose, the provider unloads
without any problem.
I am using RHEL 5.5 with libvirt-0.6.3-33.el5 and kvm-83-164.el5.
Any ideas on this core?
Regards,
Sharad Mishra
Open Virtualization
Linux Technology Center
IBM
13 years, 3 months
[libvirt-users] A few more questions ....
by William A. Mahaffey III
.... I have a 64-bit CentOS 5.6 VM running on a 64-bit FC14 host,
libvirt 0.8.3-10.fc14, 64-bit. I am getting messages in my syslog file,
2 about every 20 min. about dnsmasq:
Aug 17 04:53:52 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 04:53:52 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 05:20:13 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 05:20:13 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 05:40:57 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 05:40:57 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 06:08:53 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 06:08:53 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 06:32:44 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 06:32:44 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 06:58:59 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 06:58:59 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 07:19:23 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 07:19:23 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 07:40:27 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 07:40:27 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:01:33 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:01:33 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:24:20 Q6600 rpc.mountd[1689]: authenticated mount request from
192.168.122.213:1010 for /home (/home)
Aug 17 08:27:23 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:27:23 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:27:49 Q6600 kernel: [253719.519366] CIFS VFS: No username
specified
Aug 17 08:27:49 Q6600 kernel: [253719.519394] CIFS VFS: cifs_mount
failed w/return code = -22
Aug 17 08:27:49 Q6600 kernel: [253719.527482] CIFS VFS: No username
specified
Aug 17 08:27:49 Q6600 kernel: [253719.527507] CIFS VFS: cifs_mount
failed w/return code = -22
Aug 17 08:31:23 Q6600 kernel: [253932.627920] CIFS VFS: No username
specified
Aug 17 08:31:23 Q6600 kernel: [253932.627949] CIFS VFS: cifs_mount
failed w/return code = -22
Aug 17 08:31:23 Q6600 kernel: [253932.637894] CIFS VFS: No username
specified
Aug 17 08:31:23 Q6600 kernel: [253932.637925] CIFS VFS: cifs_mount
failed w/return code = -22
Aug 17 08:32:51 Q6600 rpc.mountd[1689]: authenticated mount request from
192.168.0.15:939 for /home (/home)
Aug 17 08:38:38 Q6600 rpc.mountd[1689]: authenticated unmount request
from 192.168.0.15:619 for /home (/home)
Aug 17 08:38:43 Q6600 rpc.mountd[1689]: authenticated mount request from
192.168.0.15:644 for /home (/home)
Aug 17 08:44:53 Q6600 rpc.mountd[1689]: authenticated unmount request
from 192.168.0.15:699 for /home (/home)
Aug 17 08:52:08 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:52:08 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 08:59:13 Q6600 rpc.mountd[1689]: authenticated unmount request
from 192.168.122.213:671 for /home (/home)
Aug 17 09:16:46 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 09:16:46 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 09:43:00 Q6600 dnsmasq-dhcp[1969]: DHCPREQUEST(virbr0)
192.168.122.213 52:54:00:a4:98:a3
Aug 17 09:43:00 Q6600 dnsmasq-dhcp[1969]: DHCPACK(virbr0)
192.168.122.213 52:54:00:a4:98:a3
They are washing other stuff out of easy view .... Is there a way to
silence these messages ? Also, my ifconfig shows:
[root@Q6600:/etc, Wed Aug 17, 09:51 AM] 1250 # ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:81:C4:F1:A8
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:81ff:fec4:f1a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27188084 errors:0 dropped:0 overruns:0 frame:0
TX packets:24641412 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26215788177 (24.4 GiB) TX bytes:20506959836 (19.0 GiB)
Interrupt:16 Memory:d0100000-d0120000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:135350 errors:0 dropped:0 overruns:0 frame:0
TX packets:135350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:99406539 (94.8 MiB) TX bytes:99406539 (94.8 MiB)
virbr0 Link encap:Ethernet HWaddr FE:54:00:A4:98:A3
inet addr:192.168.122.1 Bcast:192.168.122.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1849 errors:0 dropped:0 overruns:0 frame:0
TX packets:3276 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:259897 (253.8 KiB) TX bytes:559502 (546.3 KiB)
vnet0 Link encap:Ethernet HWaddr FE:54:00:A4:98:A3
inet6 addr: fe80::fc54:ff:fea4:98a3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2335 errors:0 dropped:0 overruns:0 frame:0
TX packets:33985 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:308069 (300.8 KiB) TX bytes:1933956 (1.8 MiB)
[root@Q6600:/etc, Wed Aug 17, 09:57 AM] 1251 #
Is there a way to get vnet0 to use IPV4 ? Where is that configured ? I
presume that it (vnet0) is the server/host end of the virbr0 bridge,
what type of interface is it ? The online docs are good & voluminous,
but I haven't (yet) found any info on this question. In fact, the pages
I have seen where brctl commands are shown show nothing for the
interface of virbr0 (empty space, no output), where mine shows:
[root@Q6600:/etc, Wed Aug 17, 10:19 AM] 1256 # brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.fe5400a498a3 yes vnet0
[root@Q6600:/etc, Wed Aug 17, 10:19 AM] 1257 #
hence my questions about vnet0 :-) .... TIA for any clues ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
13 years, 3 months
[libvirt-users] virt-install -> guest stops at installation end
by Julien Garet
Hello,
I am using virt-install to install CentOS6 guests on a CentOS6 KVM remote host. Everything works fine except that at the end of the installation, the guest stops instead of rebooting, which I thought, should be the default behaviour.
The command I use is :
[root@myorchestrator]# /usr/local/bin/virt-install --connect qemu+ssh://root@mydom0/system --name myclient --accelerate --ram 2048 --disk path=/mnt/client.img,size=10 --os-type=linux --network bridge:mybridge --vnc --pxe -m 52:54:00:00:3d:a9
virt-install version is 0.500.6 on the host where I use virt-install. libvirt is version 0.8.1 (CentOS 6) on dom0.
Any advice ?
Julien Garet
13 years, 3 months
[libvirt-users] Question about terminology
by Jeff
I'm having a minor disagreement with a colleague over terminology.
When you have a group of KVM Hosts which have access to the same network and storage (for purposes of migration) yet there is no clusterware or HA software involved...how does one refer to this group of hosts? I call them a "Host Group." He insists on the term "Cluster."
To me, "cluster" indicates the presence of an HA solution such as RHCS or VCS and using the term when neither exist would generate confusion. He insists that since VMWare refers to the same configuration as a "cluster" that this is how we should refer to it with regard to KVM.
Wouldn't be that big of a deal, except that I'm trying to develop operational documentation. Anyone else out there have suggestions?
Jeff
13 years, 3 months
[libvirt-users] does kvm support SATA driver?
by lisiyang
Hi,
I encounter a problem. My virtual machine is windows 7 . I install it using
bus ide. There is not any problem until now. but when I want to attach a
disk to it(bus=scsi ) , the os can’t find the suitable SCSI driver. I
search the problem on the internet ,it seems that the windows7 don’t
support SCSI driver. So ,I want attach the disk to vm using SATA. So I want
to know that whether the kvm support SATA driver and whether the kvm support
USB 2.0?
Hope for reply. Thank in advance.
Thanks & Best Regards,
----------------------------------------------------
Li, Si Yang(李思扬)
Beijing University of Posts and Telecommunications , Beijing
Internet e-mail:lisiyang_best@sina.com
Address: Road 10 Xitucheng, Haidian District, Beijing 100876
----------------------------------------------------
13 years, 3 months
[libvirt-users] The saga continues ....
by William A. Mahaffey III
.... I have a 64-bit CentOS 5.6 VM running on a 64-bit FC14 host.
Actually, I *HAD* a 64-bit CentOS 5.6 VM :-) .... After a read of the
virt-install man page, I concluded that I could lose the current VM (but
*NOT* its HDD image) & recreate it fairly easily w/ the right combo of
arguments to virt-install. The proceedings:
[root@Q6600:/etc, Mon Aug 15, 04:30 PM] 1163 # virsh list
Id Name State
----------------------------------
1 CentOS-5.6-64bitVM running
[root@Q6600:/etc, Mon Aug 15, 04:30 PM] 1164 # virsh destroy
CentOS-5.6-64bitVM
Domain CentOS-5.6-64bitVM destroyed
[root@Q6600:/etc, Mon Aug 15, 04:30 PM] 1165 # virsh list
Id Name State
----------------------------------
[root@Q6600:/etc, Mon Aug 15, 04:30 PM] 1166 # virsh undefine
CentOS-5.6-64bitVM
Domain CentOS-5.6-64bitVM has been undefined
[root@Q6600:/etc, Mon Aug 15, 04:30 PM] 1167 # virsh list
Id Name State
----------------------------------
[root@Q6600:/etc, Mon Aug 15, 04:31 PM] 1169 # virt-install -n
CentOS-5.6-64bitVM -r 2048 --arch=x86_64 --cpu core2duo,disable=vmx
--vcpus=2,maxvcpus=2,sockets=1,cores=2,threads=1 --os-type=linux
--os-variant=rhel5 --import --disk
path=/home/VMs/CentOS.5.6-64bit-VM/disk.img,format=raw --autostart
--prompt
This will overwrite the existing path
'/home/VMs/CentOS.5.6-64bit-VM/disk.img'
Do you really want to use this disk (yes or no)
no
What would you like to use as the disk (file path)?
quit
How large would you like the disk (quit) to be (in gigabytes)?
^CInstallation aborted at user request
[root@Q6600:/etc, Mon Aug 15, 04:31 PM] 1170 #
i.e. I chickened out at the ominous-sounding message about wiping out my
hard-won disk image .... I thought (from the man-page) that the
'--import' command would skip any attempts at installing anything,
define the VM from the arguments supplied, & boot it from the
already-prepped disk image .... Am I right here ? If not, is there a
recommended way to re-create my VM (mostly) from the extant disk image
w/o having to redo whatever initialization I have done so far (setup a
user, install compilers & dev.env., install Intel compiler, etc.) ?
Also, is there a recommended way for the host to copy that disk image
somewhere so I can try to reuse it if my future attempts at re-creation
don't pan out ? TIA ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
13 years, 3 months
[libvirt-users] Non-persistent disk
by Xianqing Yu
Hi Libvirt team,
I am trying to create a new domain from XML file by using libvirt. I want
this new domain using non-persistent disk as its disk. Non-persistent disk
means that when the domain is running, all the modification would not be
written to disk file. So next time, when you boot VM from the same disk
file, you would have a fresh disk. I check the website but I could not find
anything about this. I wonder if libvirt support this function.
FYI, if I use KVM, I can use command "qemu-kvm -snapshot" to boot a VM on
non-persistent disk. If I use VMware, I can set disk type to Independ-disk,
non-persistent.
Thanks,
Xianqing Yu
------
Graduate Research Assistant, Cyber Defense Lab
Department of Computer Science
North Carolina State University, Raleigh, NC
E-mail: xyu6(a)ncsu.edu
13 years, 3 months
[libvirt-users] How to send a break using "virsh console"??
by David Knierim
I have a KVM guest running on CentOS 5.6 that is in a bad state. I
would like to dump the kernel information using magic-sysrq commands,
but I cannot figure out how to send a break on the virtual serial port
provided by "virsh console".
The guest is a standard install that will respond if I can send a
break on the virtual serial port.
Is it possible to send a break on the virtual serial port?
Thanks,
David
13 years, 3 months
[libvirt-users] Ongoing VM saga ....
by William A. Mahaffey III
.... I have a 64-bit CentOS 5.6 VM running on a 64-bit FC-14 host. I was
originally using the stock NAT networking on the guest, which could
access the host, but nothing else on the network. I eventually found
some links on how to setup routed networking on the guest using a
specifically setup bridge. I followed the example a bit too closely,
bridging my eth0 interface, which is the one I nornally use to access
the host over my LAN. So eth0 temporarily ceased functioning & I had to
undo my handiwork through the console on the host, which I virtually
never use. I restarted networking manually a couple of time on the host,
but eth0 was still fried. I then rebooted the host (still through the
console) & that went AOK, took about 5 min. & all was well, eth0/SSH LAN
access was back & I logged back in & tried to log into the VM to plot my
next course of action & .... The VM address had moved. I had set it up
to use static addressing (modified the ifcfg-eth0 on the VM & restarted
networking, 2 or 3 times yesterday, installed compilers, etc. from the
host, & all was well until I messed around w/ trying the roll-your-own
bridge this A.M.). Which brings me to the real question: How do I figure
out the IP address the VM is using so I can login & continue the
festivities ? I found it yesterday through the VM (virt-viewer) console
after setting up the VM the 1st time, but that doesn't work today either
(black screen inside the viewer, no response to regular or ctrl-keys,
etc.) :-/ .... 'virsh .... console' hangs virsh, etc. :-) .... Soooooo
.... how do I recover that $&#&^$&#* IP address for the VM :-) ? TIA ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
13 years, 3 months
[libvirt-users] How to setup routed networking in CLI ....
by William A. Mahaffey III
.... I have a 64-bit CentOS 5.6 VM running on a 64-bit FC14 host. I have
the stock networking (NAT), but I need routed to be able to access other
boxen on my LAN. I looked at the docs on the libvirtd website, but their
example of how to setup routed networking is for the GUI, which doesn't
work for me (text in buttons, etc. doesn't display, no gfx card on
host). The man pages are pretty good, but lack pointers on the myriad
options & their interaction for networking & are a bit short on
examples. Any hints on doing that (setup routed networking under CLI)
for me ? URL's, etc. ? TIA ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
13 years, 3 months