Page 1 of 2
cannot create VM with VboxManage installed on debian
Posted: 12. May 2016, 21:06
by simoala007
hello ,
i have installed virtualbox on a debian machine.
when I wan to create a vm : with VBoxManage createvm --name myvm --register
I got these error message :
VBoxManage.exe: error: Failed to create the VirtualBox object!
error: Most likely, the VirtualBox COM server is not running or failed to start.
i tried to reinstall virtual box, I tried to use admin user to launch the vboxmanage command. it did'nt work.
VBoxmanage version is : 5.0
thanks for your help
Re: cannot create VM with VboxManage installed on debian
Posted: 12. May 2016, 21:14
by socratis
Where did you get VirtualBox from? If you didn't get it from the official VirtualBox site, but from a repository, it is not supported.
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 10:45
by simoala007
Hello,
Thanks for your response
Of course i get it from the official VirtualBox site, and have last version 5.0
virtualbox. org/wiki/Linux_Downloads
the file is:
virtualbox-5.0_5.0.20-106931~Debian~squeeze_amd64.deb
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 11:12
by socratis
Well,
simoala007 wrote:VBoxManage.exe: error: Failed to create the VirtualBox object!
error: Most likely, the VirtualBox COM server is not running or failed to start.
Please read
Chapter 2.3. Installing on Linux hosts. It seems that something didn't go correctly in your installation and the COM server is not loading. Pay special attention to the installation log, /var/log/vbox-install.log. More details on the manual.
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 15:02
by simoala007
Hello,
I have followed the exact procedure several times, and each time i type:
BoxManage createvm --name myvm --register
I have the error i wrote before.
I have attached the vbox-install.log, may be you can find something relevant that could help me to install it.
Thank you very much i am stuck here.
Thanks,
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 15:15
by Perryg
Post the results of the following from the hosts terminal:
1) VBoxManage -v
2) Type VirtualBox and press enter. What Happens?
3) Type ps -Al | grep V and post the results
You may need to do step 3 within 10 seconds of step 2 to get a valid reply.
Also was this a new install of VirtualBox or an upgrade? Have you ever tried the repo version on this host and if so did you purge it before you installed the official version?
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 15:19
by Perryg
One other thing your command is missing a very important part, the ostype. Not sure if that alone would not start the service or not.
Example:
Code: Select all
VBoxManage createvm --name "Windows XP" --ostype WindowsXP --register
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:12
by simoala007
Hello this is not un upgrade this is a new install from begining of virtual box V5:
please find below result of commands,
root@SG360e:/var/spool/squid3# VBoxManage -v
5.0.20r106931
root@SG360e:/var/spool/squid3# VirtualBox
Qt WARNING: VirtualBox: cannot connect to X server
root@SG360e:/var/spool/squid3# ps -Al |grep V
1 S 0 5772 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5773 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5775 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5776 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5777 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5778 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5779 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5780 2 0 80 0 - 0 worker ? 00:00:00 iprt-VBoxWQueue
1 S 0 5782 2 0 80 0 - 0 rtR0Se ? 00:00:00 iprt-VBoxTscThr
root@SG360e:/var/spool/squid3# VBoxManage createvm --name "windows XP" ostype WindowsXP --register
VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
root@SG360e:/var/spool/squid3#
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:16
by Perryg
Did you install as root? and do you always run as root?
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:21
by simoala007
Yes i install it as root, and tried to run it as root, and as normal user added to vboxusers group
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:32
by Perryg
Running as root will change the VBOX_USER_HOME environment making the normal user not able to properly use VirtualBox.
Check you user variables and make sure you still have access to VirtualBox.
http://www.virtualbox.org/manual/ch10.h ... 1710665952
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:36
by simoala007
I don"t understand i have already runned it as both root and normal user. and have same result.
Should i run it and intall it as root ?
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:41
by Perryg
First you should install as elevated normal user ( su or sudo )
Then you always run as normal user.
As I said if you ever run as root it changes the way VirtualBox works and a normal user will not be able to run it without resetting the home environment.
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:43
by simoala007
Ok i will reinstall it as normal user and run it as normal user and see if i still have same result.
Thanks
Re: cannot create VM with VboxManage installed on debian
Posted: 13. May 2016, 16:47
by Perryg
Be sure to purge the present install first!