Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to experiment with OpenStack on my iMac: So I installed Ubuntu Cloud Live Image on a VM and I also ran DevStack on a fresh Ubuntu 64-bit Server VM.

The DevStack script hangs on the following line:

instances=`sudo virsh list --all | grep $INSTANCE_NAME_PREFIX | sed "s/.*\($INSTANCE_NAME_PREFIX[0-9a-fA-F]*\).*/\1/g"`

I commented that block and ran the script again, this time it did not hang; thus completing its run.

I attempted to run sudo virsh list --all on my CloudLive VM and it just hands until I break out of it.

Why is sudo virsh hanging?

Your help is appreciated.

Note 1: The virsh command responds without sudo.

Note 2: Not sure it matters, but I'm running my Virtual Machines in VMWare Fusion.

share|improve this question
up vote 4 down vote accepted

Make sure there are no running instances of dmidecode.

killall -9 dmidecode
share|improve this answer
Doesn't look like such a process is running. I'm getting dmidecode: no process found – technophobia May 25 '12 at 20:14
This resolution is as close as I'm going to get - thanks everyone. – technophobia Jan 17 '13 at 21:55

killall dmidecode worked for me.

I'm a bit surprised as I'm running on 12.04 which is using libvirt 0.9.8 and from it looks like a fix went in to 0.9.6-5.

share|improve this answer
Strange indeed - I'm still getting dmidecode: no process found on Ubuntu 12.04. – technophobia Oct 1 '12 at 19:12

kill dmidecode works for me and continue to Django installation

use another shell or ssh

killall -9  dmidecode

for root user


sudo killall -9 dmidecode

for non root user

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.