/etc/default/virtualbox + "Wrong owner of /tmp/.vbox-*-ipc

Discussions related to using VirtualBox on Linux hosts.

/etc/default/virtualbox + "Wrong owner of /tmp/.vbox-*-ipc

Postby catkin » 7. Dec 2010, 09:29

Hello :)

After creating /etc/default/virtualbox to shut down any VMs still running during host shutdown, repeated error messages appear during shutdown including "Wrong owner of /tmp/.vbox-c-ipc". These are not logged and I haven't been able to reproduce them except during a shutdown so the text may not be exact.

This use of /etc/default/virtualbox is not documented in the 3.2.8 User Manual which only mentions using the file during automated installations. The source of information was the comment before the shudown_vms function in /etc/rc.d/rc.virtualbox shown below.
Code: Select all   Expand viewCollapse view
# enter the following variables in /etc/default/virtualbox:
#   SHUTDOWN_USERS="foo bar" 
#     check for running VMs of user foo and user bar
#   SHUTDOWN=poweroff
#   SHUTDOWN=acpibutton
#   SHUTDOWN=savestate
#     select one of these shutdown methods for running VMs
stop_vms()
{
    wait=0
    for i in $SHUTDOWN_USERS; do
        # don't create the ipcd directory with wrong permissions!
        if [ -d /tmp/.vbox-$i-ipc ]; then
            export VBOX_IPC_SOCKETID="$i"
            VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*".*{\(.*\)}/\1/' 2>/dev/null`
            if [ -n "$VMS" ]; then
                if [ "$SHUTDOWN" = "poweroff" ]; then
                    begin_msg "Powering off remaining VMs"
                    for v in $VMS; do
                        $VBOXMANAGE --nologo controlvm $v poweroff
                    done
                    succ_msg
                elif [ "$SHUTDOWN" = "acpibutton" ]; then
                    begin_msg "Sending ACPI power button event to remaining VMs"
                    for v in $VMS; do
                        $VBOXMANAGE --nologo controlvm $v acpipowerbutton
                        wait=30
                    done
                    succ_msg
                elif [ "$SHUTDOWN" = "savestate" ]; then
                    begin_msg "Saving state of remaining VMs"
                    for v in $VMS; do
                        $VBOXMANAGE --nologo controlvm $v savestate
                    done
                    succ_msg
                fi
            fi
        fi
    done
    # wait for some seconds when doing ACPI shutdown
    if [ "$wait" -ne 0 ]; then
        begin_msg "Waiting for $wait seconds for VM shutdown"
        sleep $wait
        succ_msg
    fi

My /etc/default/virtualbox looks like this
Code: Select all   Expand viewCollapse view
# /etc/default/virtualbox

# Configuration file for /etc/rc.d/rc.vboxdrv

# 5dec10 Charles
#    * Created, based on comment in /etc/default/virtualbox:

# Check for running VMs of user c
SHUTDOWN_USERS="c" 

# Shutdown method to use on any running VMs
SHUTDOWN=acpibutton

Searching for "wrong owner of" finds only 6 pages, none of which are about VirtualBox.

Versions: the host is Slackware64 13.1 running VirtualBox PUEL 3.2.8, used by user c. The guest is Windows XP.

Perhaps this feature is almost never used so hardly tested and not functional ... ?

Best

Charles
catkin
 
Posts: 33
Joined: 20. Jul 2008, 12:17
Location: Tamil Nadu, India
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows XP + various Linux

Re: /etc/default/virtualbox + "Wrong owner of /tmp/.vbox-*-ipc

Postby catkin » 14. Dec 2010, 13:19

catkin
 
Posts: 33
Joined: 20. Jul 2008, 12:17
Location: Tamil Nadu, India
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows XP + various Linux


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 10 guests