cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giri Prasad <g_p...@yahoo.com>
Subject Re: unable to connect to /var/lib/libvirt/qemu/v-1-VM.agent
Date Mon, 21 Apr 2014 08:24:18 GMT


Thanks for the comment. The details are as:

virsh -c qemu+tcp://192.XXX.XX.X/system
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list --all
 Id    Name                           State
----------------------------------------------------
 1     v-1-VM                         running
 2     s-185-VM                       running

virsh # exit


/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/patchviasocket.pl -n v-1-VM -p %template=domP%type=consoleproxy%host=192.XXX.XX.5%port=8250%name=v-1-VM%zone=1%pod=1%guid=Proxy.1%proxy_vm=1%disable_rp_filter=true%eth2ip=192.XXX.XX.173%eth2mask=255.255.255.0%gateway=192.XXX.XX.1%eth0ip=169.254.0.173%eth0mask=255.255.0.0%eth1ip=192.XXX.XX.166%eth1mask=255.255.255.0%mgmtcidr=192.XXX.XX.0/24%localgw=192.XXX.XX.1%internaldns1=192.XXX.XX.1%dns1=192.XXX.XX.1
.
ERROR: unable to connect to /var/lib/libvirt/qemu/v-1-VM.agent - Connection refused


/var/log/libvirt/qemu/v-1-VM.log

2014-04-21 07:43:50.503+0000: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name
v-1-VM -S -M rhel6.5.0 -enable-kvm -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1
-uuid 50cc182f-f4d3-4658-bdd0-ecfc688711d9 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/v-1-VM.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/b30c0f37-8876-3003-a552-61bcce73ea4c/6733480c-13f6-4967-98ad-79503a98c376,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2
-drive file=/usr/share/cloudstack-common/vms/systemvm.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,cache=none
-device
 ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=0e:00:a9:fe:01:ae,bus=pci.0,addr=0x3 -netdev
tap,fd=28,id=hostnet1,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=06:3a:4c:00:00:01,bus=pci.0,addr=0x4
-netdev tap,fd=30,id=hostnet2,vhost=on,vhostfd=31 -device virtio-net-pci,netdev=hostnet2,id=net2,mac=06:6f:ac:00:00:0e,bus=pci.0,addr=0x5
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/v-1-VM.agent,server,nowait
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=v-1-VM.vport
-device usb-tablet,id=input0 -vnc 192.XXX.XX.5:0,password -vga cirrus
Domain id=1 is tainted: high-privileges
char device redirected to /dev/pts/2
qemu: terminating on signal 15 from pid 2893
2014-04-21 08:02:12.453+0000: shutting down
2014-04-21 08:02:18.195+0000: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name
v-1-VM -S -M rhel6.5.0 -enable-kvm -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1
-uuid 50cc182f-f4d3-4658-bdd0-ecfc688711d9 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/v-1-VM.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/b30c0f37-8876-3003-a552-61bcce73ea4c/6733480c-13f6-4967-98ad-79503a98c376,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2
-drive file=/usr/share/cloudstack-common/vms/systemvm.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,cache=none
-device
 ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=0e:00:a9:fe:02:a1,bus=pci.0,addr=0x3 -netdev
tap,fd=28,id=hostnet1,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=06:bb:aa:00:00:01,bus=pci.0,addr=0x4
-netdev tap,fd=30,id=hostnet2,vhost=on,vhostfd=31 -device virtio-net-pci,netdev=hostnet2,id=net2,mac=06:6f:ac:00:00:0e,bus=pci.0,addr=0x5
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/v-1-VM.agent,server,nowait
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=v-1-VM.vport
-device usb-tablet,id=input0 -vnc 192.XXX.XX.5:0,password -vga cirrus
Domain id=3 is tainted: high-privileges
char device redirected to /dev/pts/2


/var/log/libvirt/qemu/s-185-VM.log

Domain id=10 is tainted: high-privileges
char device redirected to /dev/pts/2
2014-04-21 07:43:50.937+0000: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name
s-185-VM -S -M rhel6.5.0 -enable-kvm -m 512 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1
-uuid d7eaa38a-b967-49fa-a356-07918f9d70d3 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/s-185-VM.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x7 -drive file=/mnt/b30c0f37-8876-3003-a552-61bcce73ea4c/ec01b3b6-a537-48ea-9a19-8a8ed8dd41a6,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2
-drive file=/usr/share/cloudstack-common/vms/systemvm.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,cache=none
-device
 ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=29,id=hostnet0,vhost=on,vhostfd=30
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=0e:00:a9:fe:02:c8,bus=pci.0,addr=0x3 -netdev
tap,fd=31,id=hostnet1,vhost=on,vhostfd=32 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=06:00:e4:00:00:02,bus=pci.0,addr=0x4
-netdev tap,fd=33,id=hostnet2,vhost=on,vhostfd=34 -device virtio-net-pci,netdev=hostnet2,id=net2,mac=06:ac:b4:00:00:0c,bus=pci.0,addr=0x5
-netdev tap,fd=35,id=hostnet3,vhost=on,vhostfd=36 -device virtio-net-pci,netdev=hostnet3,id=net3,mac=06:92:fe:00:00:04,bus=pci.0,addr=0x6
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/s-185-VM.agent,server,nowait
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=s-185-VM.vport
-device usb-tablet,id=input0 -vnc 192.XXX.XX.5:1,password -vga cirrus
Domain id=2 is tainted: high-privileges
char device redirected to /dev/pts/3
qemu: terminating on signal 15 from pid 2893
2014-04-21 08:02:11.809+0000: shutting down


/var/log/messages
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #17 vnet6, fe80::fc92:feff:fe00:4#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #16 vnet4, fe80::fc00:e4ff:fe00:2#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #15 vnet5, fe80::fcac:b4ff:fe00:c#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #14 vnet3, fe80::fc00:a9ff:fefe:2c8#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #13 vnet0, fe80::fc00:a9ff:fefe:1ae#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #12 vnet2, fe80::fc6f:acff:fe00:e#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: Deleting interface #11 vnet1, fe80::fc3a:4cff:fe00:1#123,
interface stats: received=0, sent=0, dropped=0, active_time=1100 secs
Apr 21 13:32:14 servpc ntpd[2465]: peers refreshed
Apr 21 13:32:18 servpc kernel: device vnet0 entered promiscuous mode
Apr 21 13:32:18 servpc kernel: cloud0: port 1(vnet0) entering forwarding state
Apr 21 13:32:18 servpc kernel: device vnet1 entered promiscuous mode
Apr 21 13:32:18 servpc kernel: cloudbr0: port 2(vnet1) entering forwarding state
Apr 21 13:32:18 servpc kernel: device vnet2 entered promiscuous mode
Apr 21 13:32:18 servpc kernel: cloudbr0: port 3(vnet2) entering forwarding state
Apr 21 13:32:18 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet0:
couldn't determine device driver; ignoring...
Apr 21 13:32:18 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet2:
couldn't determine device driver; ignoring...
Apr 21 13:32:18 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet1:
couldn't determine device driver; ignoring...
Apr 21 13:32:18 servpc qemu-kvm: Could not find keytab file: /etc/qemu/krb5.tab: No such file
or directory
Apr 21 13:32:22 servpc ntpd[2465]: Listen normally on 18 vnet2 fe80::fc6f:acff:fe00:e UDP
123
Apr 21 13:32:22 servpc ntpd[2465]: Listen normally on 19 vnet1 fe80::fcbb:aaff:fe00:1 UDP
123
Apr 21 13:32:22 servpc ntpd[2465]: Listen normally on 20 vnet0 fe80::fc00:a9ff:fefe:2a1 UDP
123
Apr 21 13:32:22 servpc ntpd[2465]: peers refreshed
Apr 21 13:32:23 servpc kernel: device vnet3 entered promiscuous mode
Apr 21 13:32:23 servpc kernel: cloud0: port 2(vnet3) entering forwarding state
Apr 21 13:32:23 servpc kernel: device vnet4 entered promiscuous mode
Apr 21 13:32:23 servpc kernel: cloudbr0: port 4(vnet4) entering forwarding state
Apr 21 13:32:23 servpc kernel: device vnet5 entered promiscuous mode
Apr 21 13:32:23 servpc kernel: cloudbr0: port 5(vnet5) entering forwarding state
Apr 21 13:32:23 servpc kernel: device vnet6 entered promiscuous mode
Apr 21 13:32:23 servpc kernel: cloudbr0: port 6(vnet6) entering forwarding state
Apr 21 13:32:23 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet3:
couldn't determine device driver; ignoring...
Apr 21 13:32:23 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet5:
couldn't determine device driver; ignoring...
Apr 21 13:32:23 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet4:
couldn't determine device driver; ignoring...
Apr 21 13:32:23 servpc NetworkManager[2163]: <warn> /sys/devices/virtual/net/vnet6:
couldn't determine device driver; ignoring...
Apr 21 13:32:23 servpc qemu-kvm: Could not find keytab file: /etc/qemu/krb5.tab: No such file
or directory
Apr 21 13:32:27 servpc ntpd[2465]: Listen normally on 21 vnet4 fe80::fcb8:b8ff:fe00:2 UDP
123
Apr 21 13:32:27 servpc ntpd[2465]: Listen normally on 22 vnet5 fe80::fc46:5cff:fe00:c UDP
123
Apr 21 13:32:27 servpc ntpd[2465]: Listen normally on 23 vnet3 fe80::fc00:a9ff:fefe:391 UDP
123
Apr 21 13:32:27 servpc ntpd[2465]: Listen normally on 24 vnet6 fe80::fc98:82ff:fe00:7 UDP
123
Apr 21 13:32:27 servpc ntpd[2465]: peers refreshed
Apr 21 13:32:33 servpc kernel: cloud0: port 1(vnet0) entering forwarding state
Apr 21 13:32:33 servpc kernel: cloudbr0: port 2(vnet1) entering forwarding state
Apr 21 13:32:33 servpc kernel: cloudbr0: port 3(vnet2) entering forwarding state
Apr 21 13:32:38 servpc kernel: cloud0: port 2(vnet3) entering forwarding state
Apr 21 13:32:38 servpc kernel: cloudbr0: port 4(vnet4) entering forwarding state
Apr 21 13:32:38 servpc kernel: cloudbr0: port 5(vnet5) entering forwarding state
Apr 21 13:32:38 servpc kernel: cloudbr0: port 6(vnet6) entering forwarding state


/var/log/cloudstack/management/management-server.log
2014-04-21 13:44:35,624 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-1:null) Ping
from 1
2014-04-21 13:44:42,166 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-9ae38372) VmStatsCollector
is running...
2014-04-21 13:44:44,624 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-7e2d9fd6) StorageCollector
is running...
2014-04-21 13:44:44,630 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-7e2d9fd6) There
is no secondary storage VM for secondary storage host nfs://192.XXX.XX.5/export/secondary
2014-04-21 13:44:44,704 DEBUG [c.c.a.t.Request] (StatsCollector-3:ctx-7e2d9fd6) Seq 1-261488720:
Received:  { Ans: , MgmtId: 266790436644351, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer
} }
2014-04-21 13:44:57,121 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-3b69a7f3)
Found 0 routers to update status. 
2014-04-21 13:44:57,123 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-3b69a7f3)
Found 0 networks to update RvR status. 
2014-04-21 13:45:01,906 DEBUG [c.c.s.StatsCollector] (StatsCollector-1:ctx-1ed2eef8) HostStatsCollector
is running...
2014-04-21 13:45:02,503 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-1ed2eef8) Seq 1-261488721:
Received:  { Ans: , MgmtId: 266790436644351, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }
2014-04-21 13:45:27,121 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-0350d1df)
Found 0 routers to update status. 
2014-04-21 13:45:27,123 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-0350d1df)
Found 0 networks to update RvR status. 
2014-04-21 13:45:32,113 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-2bb3cb37)
Resetting hosts suitable for reconnect
2014-04-21 13:45:32,115 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-2bb3cb37)
Completed resetting hosts suitable for reconnect
2014-04-21 13:45:32,115 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-2bb3cb37)
Acquiring hosts for clusters already owned by this management server
2014-04-21 13:45:32,116 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-2bb3cb37)
Completed acquiring hosts for clusters already owned by this management server
2014-04-21 13:45:32,116 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-2bb3cb37)
Acquiring hosts for clusters not owned by any management server
2014-04-21 13:45:32,116 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-2bb3cb37)
Completed acquiring hosts for clusters not owned by any management server
2014-04-21 13:45:35,638 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-4:null) Ping
from 1
2014-04-21 13:45:42,171 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-af582c81) VmStatsCollector
is running...
2014-04-21 13:45:44,704 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-4afb93cc) StorageCollector
is running...
2014-04-21 13:45:44,709 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-4afb93cc) There
is no secondary storage VM for secondary storage host nfs://192.XXX.XX.5/export/secondary
2014-04-21 13:45:44,786 DEBUG [c.c.a.t.Request] (StatsCollector-3:ctx-4afb93cc) Seq 1-261488722:
Received:  { Ans: , MgmtId: 266790436644351, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer
} }
2014-04-21 13:45:57,121 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-f43718c1)
Found 0 routers to update status. 
2014-04-21 13:45:57,123 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-f43718c1)
Found 0 networks to update RvR status. 
2014-04-21 13:46:02,503 DEBUG [c.c.s.StatsCollector] (StatsCollector-1:ctx-a4e05182) HostStatsCollector
is running...
2014-04-21 13:46:03,106 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-a4e05182) Seq 1-261488723:
Received:  { Ans: , MgmtId: 266790436644351, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }
2014-04-21 13:46:27,121 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-b7ff11b3)
Found 0 routers to update status. 
2014-04-21 13:46:27,123 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-b7ff11b3)
Found 0 networks to update RvR status. 


>From: Marcus <shadowsor@gmail.com>
>You may want to look in the qemu log of the vm to see if there's
>something deeper going on, perhaps the qemu process is not fully
>starting due to some other issue. /var/log/libvirt/qemu/v-1-VM.log, or
>something like that.


On Sun, Apr 20, 2014 at 11:22 PM, Marcus <shadowsor@gmail.com> wrote:
> No, it has nothing to do with ssh or libvirt daemon. It's the literal
> unix socket that is created for virtio-serial communication when the
> qemu process starts. The question is why the system is refusing access
> to the socket. I assume this is being attempted as root.
>
> On Sat, Apr 19, 2014 at 9:58 AM, Nux! <nux@li.nux.ro> wrote:
>> On 19.04.2014 15:24, Giri Prasad wrote:
>>
>>>
>>> # grep listen_ /etc/libvirt/libvirtd.conf
>>> listen_tls=0
>>> listen_tcp=1
>>> #listen_addr = "192.XX.XX.X"
>>> listen_addr = "0.0.0.0"
>>>
>>> #
>>> /usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/patchviasocket.pl
>>> -n v-1-VM -p
>>>
>>> %template=domP%type=consoleproxy%host=192.XXX.XX.5%port=8250%name=v-1-VM%zone=1%pod=1%guid=Proxy.1%proxy_vm=1%disable_rp_filter=true%eth2ip=192.XXX.XX.173%eth2mask=255.255.255.0%gateway=192.XXX.XX.1%eth0ip=169.254.0.173%eth0mask=255.255.0.0%eth1ip=192.XXX.XX.166%eth1mask=255.255.255.0%mgmtcidr=192.XXX.XX.0/24%localgw=192.XXX.XX.1%internaldns1=192.XXX.XX.1%dns1=192.XXX.XX.1
>>> .
>>> ERROR: unable to connect to /var/lib/libvirt/qemu/v-1-VM.agent -
>>> Connection refused
>>
>>
>> Do you have "-l" or "--listen" as LIBVIRTD_ARGS in /etc/sysconfig/libvirtd?
>>
>> (kind of stabbing in the dark)
>>
>>
>> --
>> Sent from the Delta quadrant using Borg technology!
>>
>> Nux!
>> www.nux.ro

Mime
View raw message