Creating a debian virtual machine for Nagios
Hi,
I'm trying to create a debian virtual machine to run Nagios on using the
following command.
virt-install --connect qemu:///system -n nagios -r 2048 --os-type=linux
--disk
/var/lib/libvirt/images/nagios.img,device=disk,bus=virtio,size=5,sparse=true,format=raw
-w bridge=br0,model=virtio --vnc --noautoconsole -c
/home/ja/isos/debian-6.0.2.1-amd64-netinst.iso
but it hangs and I get the following errors in the log
Sep 13 12:44:45 Hawaiian kernel: [44156.897947] libvirtd[2479]: segfault
at 7f1381004bdf ip 0000000000419363 sp 00007f137b9b0230 error 7 in
libvirtd[400000+dc000]
Sep 13 12:47:55 Hawaiian libvirtd: 12:47:55.860: warning :
qemudStartup:1832 : Unable to create cgroup for driver: No such device
or address
Sep 13 12:47:55 Hawaiian libvirtd: 12:47:55.943: warning :
lxcStartup:1900 : Unable to create cgroup for driver: No such device or
address
Sep 13 12:50:21 Hawaiian libvirtd: 12:50:21.005: warning :
qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably
failed
Sep 13 12:50:21 Hawaiian libvirtd: 12:50:21.475: warning :
qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably
failed
Sep 13 12:50:21 Hawaiian libvirtd: 12:50:21.575: warning :
qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably
failed
Sep 13 12:50:21 Hawaiian libvirtd: 12:50:21.847: warning :
qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably
failed
Sep 13 12:54:44 Hawaiian libvirtd: 12:54:44.000: warning :
virEventUpdateHandleImpl:150 : Ignoring invalid update watch -1
and when I press ctrl-C I get this error,
ja@Hawaiian:~/VMscripts$ ./nagios
Starting install...
Allocating 'nagios.img' | 5.0 GB
00:00
Creating domain... | 0 B
00:00
^CERROR poll on socket failed: Interrupted system call
Traceback (most recent call last):
File "/usr/bin/virt-install", line 975, in do_install
ret, state = check_domain_state()
File "/usr/bin/virt-install", line 961, in check_domain_state
dominfo = dom.info()
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 766, in info
if ret is None: raise libvirtError ('virDomainGetInfo() failed',
dom=self)
libvirtError: poll on socket failed: Interrupted system call
Guest installation complete... restarting guest.
^CERROR poll on socket failed: Interrupted system call
Domain installation does not appear to have been
successful. If it was, you can restart your domain
by running 'virsh start nagios'; otherwise, please
restart your installation.
ERROR poll on socket failed: Interrupted system call
Traceback (most recent call last):
File "/usr/bin/virt-install", line 1033, in <module>
main()
File "/usr/bin/virt-install", line 935, in main
dom.create()
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 333, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: poll on socket failed: Interrupted system call
Does anyone have any ideas on how to solve this?
Best regards
James
Reply to: