Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers 3

up vote 3 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
add comment

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 https://bugzilla.redhat.com/show_bug.cgi?id=796451 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
add comment

kill dmidecode works for me and continue to Django installation

use another shell or ssh

killall -9  dmidecode

for root user

or

sudo killall -9 dmidecode

for non root user

share|improve this answer
add comment

Your Answer

 
discard

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.