You are not logged in.

#1 2013-03-07 22:03:37

vri
Member
Registered: 2008-08-17
Posts: 35

[SOLVED] after qemu replacing qemu-kvm, libvirt fails to start guest

I initially had the problem posted here: https://bbs.archlinux.org/viewtopic.php?id=159159
and resolved it as indicated there.

However, a problem I had before (https://bbs.archlinux.org/viewtopic.php?id=157203) has returned.

user/group are set to root/kvm or my_username/kvm in qemu.conf, both have the following result:

virsh # list --all
 Id    Name                           State
----------------------------------------------------
 -     win7imo                        shut off

virsh # start win7imo
error: Failed to start domain win7imo
error: internal error process exited while connecting to monitor: chardev: opening backend "pty" failed

I am in group kvm.

Help appriciated, thanks in advance.

Last edited by vri (2013-03-08 13:35:45)

Offline

#2 2013-03-08 11:17:14

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] after qemu replacing qemu-kvm, libvirt fails to start guest

Check if your user is in the kvm group, if not, re-add your user to the km group.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2013-03-08 13:17:25

vri
Member
Registered: 2008-08-17
Posts: 35

Re: [SOLVED] after qemu replacing qemu-kvm, libvirt fails to start guest

I double checked, and yes, the user is in group kvm

Offline

#4 2013-03-08 13:34:49

vri
Member
Registered: 2008-08-17
Posts: 35

Re: [SOLVED] after qemu replacing qemu-kvm, libvirt fails to start guest

Ok, found my problem. I don't have a /dev/pty on my host (anymore??). So after removal of the serial device from the guest machine, I could start it again.

Offline

#5 2013-05-01 01:34:24

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Re: [SOLVED] after qemu replacing qemu-kvm, libvirt fails to start guest

I am getting this same issue trying to create a new VM

virt-install \
> --connect qemu:///system \
> --name Fedora \
> --ram 1024 \
> --disk path=/var/lib/libvirt/images/Fedora18.img,bus=virtio,size=20,format=qcow2 \
> --network=user,model=virtio \
> --vcpus=1 \
> --cpu host \
> --os-type=linux \
> --os-variant=fedora18 \
> --graphics spice,port=5930 \
> --location http://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/


Starting install...
Retrieving file .treeinfo...                                              | 2.2 kB     00:00 ... 
Retrieving file vmlinuz...                                                | 9.3 MB     00:05 ... 
Retrieving file initrd.img...                                             |  53 MB     00:41 ... 
Allocating 'virtinst-vmlinuz.0Q8_NH'                                      | 4.6 MB     00:00     
Transferring virtinst-vmlinuz.0Q8_NH                                      | 4.6 MB     00:01     
Allocating 'virtinst-initrd.img.XPcx90'                                   |  27 MB     00:00     
Transferring virtinst-initrd.img.XPcx90                                   |  27 MB     00:05     
ERROR    internal error process exited while connecting to monitor: chardev: opening backend "pty" failed

Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start Fedora
otherwise, please restart your installation.

My user is also in the kvm group and I don't have a /dev/pty device on the host.  I am not defining a serial device for the guest and have no clue how/where the device is coming from.

Offline

Board footer

Powered by FluxBB