Just upgraded my x86_64 12 core opteron hypervisor to Ubuntu 10.04.2 LTS
and am now unable to start any guests using virt-manager.

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 588, in run_domain
    vm.startup()
  File "/usr/share/virt-manager/virtManager/domain.py", line 150, in startup
    self._backend.create()
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 300, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: operation failed: failed to retrieve chardev info in qemu with 
'info chardev'


To get a guest running now, I must use some shell scripts (hope it helps):
----------------------------------------------------------------------------------------------------------------
#!/bin/bash

#
# to createa  snapshot of the xp image
# qemu-img create -b winxp3.img -f qcow winxp3_snap.img
#

CDROM="snoppix64-9.04.1.iso"
DISK="/kvm/x2-stint"
test -z "$DISK" && exit

KVM="qemu-system-x86_64"
NAME="virtguest1"
VNCDIS="11"
RUNAS="nobody"   #<-- make sure your disk image has write by him
TAPDEV="vtap.11"

# this is supposed to get rid of 'rect too big' errors
VNC="xtightvncviewer -compresslevel 7 -encodings "
VNCARGS="copyrect tight hextile zlib corre rre raw"

echo "starting vnc services on localhost:$VNCDIS - use vncviewer to
connect"

# gotta create the tap and bridge it to br0 in order to work 
# br0 is bridged to eth0 (external interface)
#
# brctl show br0
# bridge name     bridge id               STP enabled     interfaces
# br0             8000.00e081bd5f2f       no              eth1
#                                                        tap3
#                                                        vtap.0

tunctl -t ${TAPDEV} 
brctl show
brctl addif br0 ${TAPDEV}
brctl show

# start up the virtual guest with two nics
#
/usr/bin/qemu-system-x86_64 -M pc-0.11 -m 512 -smp 1 -name stint  -enable-kvm \
-uuid 1fb923d5-7497-4d69-809b-786a4f94ece6 \
-monitor unix:/var/run/libvirt/qemu/winsodxp.monitor,server,nowait \
-localtime \
-boot c \
-drive file=${DISK},if=virtio,index=0,boot=on,cache=writeback \
-net nic,macaddr=ba:dd:c0:ff:ee:08,vlan=0,model=virtio,name=virtio.0 \
-net nic,macaddr=ba:dd:c0:ff:ee:09,vlan=0,model=virtio,name=virtio.1 \
-net tap,name=${TAPDEV} \
-runas ${RUNAS} \
-serial none -parallel none -usb \
-usbdevice tablet -vnc :6 -k en-us -vga std -daemonize

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/781936

Title:
  libvirtd: operation failed: failed to retrieve chardev info in qemu
  with 'info chardev'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/781936/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to