Patrick Chemla
2014-Jun-15 06:01 UTC
Re: [libvirt-users] Fedora 19/20 new install :Unable to create vcpu cgroup
Hi I have reinstall Fedora 20 from distrib. I have run yum update and yum upgrade. Running kernel is : 3.14.7-200.fc20.x86_64 Installed Libvirt packages are: libvirt-client-1.1.3.5-2.fc20.x86_64 libvirt-daemon-1.1.3.5-2.fc20.x86_64 libvirt-daemon-config-network-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-interface-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-network-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-nodedev-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-nwfilter-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-qemu-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-secret-1.1.3.5-2.fc20.x86_64 libvirt-daemon-driver-storage-1.1.3.5-2.fc20.x86_64 libvirt-daemon-kvm-1.1.3.5-2.fc20.x86_64 libvirt-glib-0.1.7-2.fc20.x86_64 libvirt-python-1.1.3.5-2.fc20.x86_64 When trying to create a new VM using virt-manager I am getting : Impossible de terminer l'installation : « internal error: process exited while connecting to monitor: Failed to create chardev » Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 1787, in do_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 403, in start_install noboot) File "/usr/share/virt-manager/virtinst/guest.py", line 467, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2897, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: internal error: process exited while connecting to monitor: Failed to create chardev When tyring to create new VM with virt-install, I am getting: virt-install --name eff1 --disk /home/kvmimages/eff1.img --cdrom /home/kvmimages/Fedora-20-x86_64-DVD.iso --memory 4096B ERROR Error: --memory 4096B: invalid literal for int() with base 10: '4096B' [root@eff1 kvmimages]# virt-install --name eff1 --disk /home/kvmimages/eff1.img --cdrom /home/kvmimages/Fedora-20-x86_64-DVD.iso --memory 4096 WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. Début d'installation... ERROR internal error: process exited while connecting to monitor: Failed to create chardev When trying to run with virt-manager a VM created on another F20 server: Erreur lors du démarrage du domaine: internal error: process exited while connecting to monitor: Failed to create chardev Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 127, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1355, in startup self._backend.create() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: internal error: process exited while connecting to monitor: Failed to create chardev What is this chardev error? May someone help. Thanks Patrick Le 12/06/2014 19:06, Kashyap Chamarthy a écrit :> On Thu, Jun 12, 2014 at 01:01:18PM +0300, Patrick Chemla wrote: >> Hi, >> >> After full new install of Fedora 19 or 20, I am getting this when I want to >> create a new VMs. > FWIW, I'm able to create new unattended Fedora 20 VMs just fine with a > script like that[1] which uses virt-install. To invoke the script: > > $ ./create-guest-qcow2.bash f20vm1 f20 x86_64 > > > Or you can try trivially install guests with a tool like virt-builder. > To install a Fedora 20 guest and update to latest available packages: > > $ virt-builder fedora-20 -o f20vm1.qcow2 --update --selinux-relabel \ > --format qcow2 --size 30G > > Import the guest into libvirt: > > $ virt-install --name f20vm1 --ram 2048 --disk \ > path=/home/kashyap/f20vm1.qcow2,format=qcow2 --import > > > [1] https://github.com/kashyapc/virt-scripts/blob/master/create-guest-qcow2.bash >> >> >> Impossible de terminer l'installation : « Unable to create vcpu cgroup for >> fedora20(vcpu: 0): Aucun fichier ou dossier de ce type » >> >> Traceback (most recent call last): >> File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in >> cb_wrapper >> callback(asyncjob, *args, **kwargs) >> File "/usr/share/virt-manager/virtManager/create.py", line 1787, in >> do_install >> guest.start_install(meter=meter) >> File "/usr/share/virt-manager/virtinst/guest.py", line 403, in start_install >> noboot) >> File "/usr/share/virt-manager/virtinst/guest.py", line 467, in _create_guest >> dom = self.conn.createLinux(start_xml or final_xml, 0) >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2897, in >> createLinux >> if ret is None:raise libvirtError('virDomainCreateLinux() failed', >> conn=self) >> libvirtError: Unable to create vcpu cgroup for fedora20(vcpu: 0): Aucun >> fichier ou dossier de ce type >> >> >> I saw that there is no cpu mounted, only cpuacct. >> >> I saw on other server that cpu is a link to cpu,cpuacct >> >> But I can't find how to add this in a config file >> >> Thanks for help >> Patrick >> >> _______________________________________________ >> libvirt-users mailing list >> libvirt-users@redhat.com >> https://www.redhat.com/mailman/listinfo/libvirt-users
Kashyap Chamarthy
2014-Jun-15 06:51 UTC
Re: [libvirt-users] Fedora 19/20 new install :Unable to create vcpu cgroup
On Sun, Jun 15, 2014 at 09:01:29AM +0300, Patrick Chemla wrote: [. . .]> When trying to create a new VM using virt-manager I am getting : > > Impossible de terminer l'installation : « internal error: process exited > while connecting to monitor: Failed to create chardev > » > > Traceback (most recent call last): > File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in > cb_wrapper > callback(asyncjob, *args, **kwargs) > File "/usr/share/virt-manager/virtManager/create.py", line 1787, in > do_install > guest.start_install(meter=meter) > File "/usr/share/virt-manager/virtinst/guest.py", line 403, in > start_install > noboot) > File "/usr/share/virt-manager/virtinst/guest.py", line 467, in > _create_guest > dom = self.conn.createLinux(start_xml or final_xml, 0) > File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2897, in > createLinux > if ret is None:raise libvirtError('virDomainCreateLinux() failed', > conn=self) > libvirtError: internal error: process exited while connecting to monitor: > Failed to create chardev > > > When tyring to create new VM with virt-install, I am getting: > > virt-install --name eff1 --disk /home/kvmimages/eff1.img --cdrom > /home/kvmimages/Fedora-20-x86_64-DVD.iso --memory 4096B > ERROR Error: --memory 4096B: invalid literal for int() with base 10: > '4096B'This is an invalid invocation.> [root@eff1 kvmimages]# virt-install --name eff1 --disk > /home/kvmimages/eff1.img --cdrom /home/kvmimages/Fedora-20-x86_64-DVD.iso > --memory 4096 > WARNING CDROM media does not print to the text console by default, so you > likely will not see text install output. You might want to use --location. > > Début d'installation... > ERROR internal error: process exited while connecting to monitor: Failed > to create chardevI just tested on my Fedora-20 machine, trying to boot a Fedora-19 VM it works for me: $ qemu-img create -f qcow2 -o preallocation=metadata \ /export/vmimages/f19vm 4G $ virt-install --name f19vm --disk /export/vmimages/f19vm \ --cdrom /export/Fedora-Live-Desktop-x86_64-19-1.iso \ --memory 2048 Starting install... Creating domain... . . . But, I should mention that I'm using virt packages from Rawhide: $ rpm -q virt-install libvirt-daemon-kvm qemu-system-x86 virt-install-1.0.1-3.fc21.noarch libvirt-daemon-kvm-1.2.6-1.fc20.x86_64 qemu-system-x86-2.0.0-1.fc21.x86_64> When trying to run with virt-manager a VM created on another F20 server: > > Erreur lors du démarrage du domaine: internal error: process exited while > connecting to monitor: Failed to create chardev > > > Traceback (most recent call last): > File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in > cb_wrapper > callback(asyncjob, *args, **kwargs) > File "/usr/share/virt-manager/virtManager/asyncjob.py", line 127, in tmpcb > callback(*args, **kwargs) > File "/usr/share/virt-manager/virtManager/domain.py", line 1355, in > startup > self._backend.create() > File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create > if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) > libvirtError: internal error: process exited while connecting to monitor: > Failed to create chardev > > > What is this chardev error?Ensure you have correct permissions to allow QEMU to access disk images in your $HOME directory: $ chmod o+rx $HOME I guess that should resolve it. -- /kashyap
Patrick Chemla
2014-Jun-15 07:27 UTC
Re: [libvirt-users] Fedora 19/20 new install :Unable to create vcpu cgroup
Hi, Thanks Kashyap for your answer. I am trying to give more data: virt-install invokation: # virt-install --name eff1 --disk /home/kvmimages/eff1.img --cdrom /home/kvmimages/Fedora-20-x86_64-DVD.iso --memory 4096 WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. Début d'installation... ERROR internal error: process exited while connecting to monitor: Failed to create chardev Rpm: infos # rpm -q virt-install libvirt-daemon-kvm qemu-system-x86 virt-install-1.0.1-3.fc20.noarch libvirt-daemon-kvm-1.1.3.5-2.fc20.x86_64 qemu-system-x86-1.6.2-6.fc20.x86_64 I adapted your commands to my conf: # qemu-img create -f qcow2 -o preallocation=metadata /home/kvmimages/f20vm 4G Formatting '/home/kvmimages/f20vm', fmt=qcow2 size=4294967296 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off # virt-install --name f20vm --disk /home/kvmimages/f20vm --cdrom /home/kvmimages/Fedora-20-x86_64-DVD.iso --memory 2048 WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. Début d'installation... ERROR internal error: process exited while connecting to monitor: Failed to create chardev L'installation du domaine ne semble pas s'être terminée avec succès. Si c'est bon, vous pouvez démarrer le domaine en lançant : virsh --connect qemu:///system start f20vm sinon, recommencez l'installation. Always the same Failed to create chardev. I do think it's a problem of permission as you said, but on which directory/files? I am connected as root on my remote server, as simple user on my local computer. Both are running F20. When I create/run a F20 VM on my local computer, it's OK. I have verified rpm versions, seem OK. I have rsynced /etc/libvirt dir from local computer to remote server. It works on my local like on yours,but not on my remote. I need the remote to run VMs. Thanks for your help. Patrick Le 15/06/2014 09:51, Kashyap Chamarthy a écrit :> On Sun, Jun 15, 2014 at 09:01:29AM +0300, Patrick Chemla wrote: > > [. . .] > >> When trying to create a new VM using virt-manager I am getting : >> >> Impossible de terminer l'installation : « internal error: process exited >> while connecting to monitor: Failed to create chardev >> » >> >> Traceback (most recent call last): >> File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in >> cb_wrapper >> callback(asyncjob, *args, **kwargs) >> File "/usr/share/virt-manager/virtManager/create.py", line 1787, in >> do_install >> guest.start_install(meter=meter) >> File "/usr/share/virt-manager/virtinst/guest.py", line 403, in >> start_install >> noboot) >> File "/usr/share/virt-manager/virtinst/guest.py", line 467, in >> _create_guest >> dom = self.conn.createLinux(start_xml or final_xml, 0) >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2897, in >> createLinux >> if ret is None:raise libvirtError('virDomainCreateLinux() failed', >> conn=self) >> libvirtError: internal error: process exited while connecting to monitor: >> Failed to create chardev >> >> >> When tyring to create new VM with virt-install, I am getting: >> >> virt-install --name eff1 --disk /home/kvmimages/eff1.img --cdrom >> /home/kvmimages/Fedora-20-x86_64-DVD.iso --memory 4096B >> ERROR Error: --memory 4096B: invalid literal for int() with base 10: >> '4096B' > This is an invalid invocation. > >> [root@eff1 kvmimages]# virt-install --name eff1 --disk >> /home/kvmimages/eff1.img --cdrom /home/kvmimages/Fedora-20-x86_64-DVD.iso >> --memory 4096 >> WARNING CDROM media does not print to the text console by default, so you >> likely will not see text install output. You might want to use --location. >> >> Début d'installation... >> ERROR internal error: process exited while connecting to monitor: Failed >> to create chardev > I just tested on my Fedora-20 machine, trying to boot a Fedora-19 VM it > works for me: > > > $ qemu-img create -f qcow2 -o preallocation=metadata \ > /export/vmimages/f19vm 4G > > $ virt-install --name f19vm --disk /export/vmimages/f19vm \ > --cdrom /export/Fedora-Live-Desktop-x86_64-19-1.iso \ > --memory 2048 > > Starting install... > Creating domain... > . > . > . > > > But, I should mention that I'm using virt packages from Rawhide: > > $ rpm -q virt-install libvirt-daemon-kvm qemu-system-x86 > virt-install-1.0.1-3.fc21.noarch > libvirt-daemon-kvm-1.2.6-1.fc20.x86_64 > qemu-system-x86-2.0.0-1.fc21.x86_64 > >> When trying to run with virt-manager a VM created on another F20 server: >> >> Erreur lors du démarrage du domaine: internal error: process exited while >> connecting to monitor: Failed to create chardev >> >> >> Traceback (most recent call last): >> File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in >> cb_wrapper >> callback(asyncjob, *args, **kwargs) >> File "/usr/share/virt-manager/virtManager/asyncjob.py", line 127, in tmpcb >> callback(*args, **kwargs) >> File "/usr/share/virt-manager/virtManager/domain.py", line 1355, in >> startup >> self._backend.create() >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create >> if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) >> libvirtError: internal error: process exited while connecting to monitor: >> Failed to create chardev >> >> >> What is this chardev error? > Ensure you have correct permissions to allow QEMU to access disk images > in your $HOME directory: > > $ chmod o+rx $HOME > > I guess that should resolve it. >
Reasonably Related Threads
- Re: Fedora 19/20 new install :Unable to create vcpu cgroup
- Re: Fedora 19/20 new install :Unable to create vcpu cgroup
- Re: Fedora 19/20 new install :Unable to create vcpu cgroup
- Re: Fedora 19/20 new install :Unable to create vcpu cgroup
- Re: Fedora 19/20 new install :Unable to create vcpu cgroup