startx freezes Ubuntu 12.04 on Microsoft Hyper-v

Hello Experts,
I have installed Ubuntu 12.04 on Microsoft Hyper-v HP Proliant BL 680C server. After finishing the installation it was not directly going to graphic mode. After that I installed startx program.The next time the machine reboot it goes to command line so from there I execute the command startx which hangs the whole virtual machine and the only way to get out of this is to stop the virtual machine.Kindly advice where I am mistaking.
Regards.
LVL 12
ibu1System AdministratorAsked:
Who is Participating?
 
ibu1Connect With a Mentor System AdministratorAuthor Commented:
0
 
ibu1System AdministratorAuthor Commented:
lspci | grep VGA
00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual VGA
0
 
strivoliCommented:
Hyper-V based on which Windows Server Operating System Version? 2008/2008 R2/2012.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ibu1System AdministratorAuthor Commented:
Windows Server 2008 R2 Enterprise 64bit.
0
 
ibu1System AdministratorAuthor Commented:
when i run xinit, it desktop came with small column with only CLI and if do exit from there,it hangs the whole server.
0
 
strivoliCommented:
Based on About Virtual Machines and Guest Operating Systems your OS isn't supported even thought the "Integration services" are available (but don't mention VGA/video drivers).
I'll search deeper and will be back soon.
0
 
strivoliCommented:
Boot the guest with the original ISO (or the media) used for the Ubuntu setup. Does the GUI (when running the ISO) work as expected?
0
 
ibu1System AdministratorAuthor Commented:
Hi,
there is one more ubuntu machine installed  with the same version in our environment on the similar version of windows. So this is not the compatibility issue. The only difference is the previous ubuntu machine is 12.04.1 and the new one is 12.04.2.
Thanks
0
 
ibu1System AdministratorAuthor Commented:
Hi strivoli,
The GUI you mean where I can use mouse? I don't thinks so because when I run the setup it whole completed without GUI. I will again give it a look when I will be in office tomorrow.
Thanks.
0
 
strivoliCommented:
Yes, GUI stands for Graphical User Interface and it includes the mouse pointer. The setup can be run with or without GUI. Please let me know after your tomorrow's visit.
0
 
rindiCommented:
If you installed Ubuntu Server, then it comes without a GUI, and you should keep it that way. If you installed a Desktop version of Ubuntu, then make sure you install the Hyper-V integration services.

Also, I don't recommend the standard version of Ubuntu with it's unity desktop, but rather one of the others, like Xubuntu or Lubuntu, which use GUI's that run much better as a VM than Unity does.
0
 
MazdajaiCommented:
Do you have integration tool installed on both VM?
0
 
ibu1System AdministratorAuthor Commented:
Hello Mazdajai,
The previous installation was done by the system administrator who left the company. Even I did not find any integration tool from internet.
0
 
MazdajaiCommented:
You need integration tool on any vms in hyper-v. Download the Linux tool here -

http://www.microsoft.com/en-us/download/details.aspx?id=34603

Try -

1. Re-install Ubuntu, boot to run level 3. (CLI, no GUI)
2. Install integration tool
3. Try boot into GUI with startx.
0
 
ibu1System AdministratorAuthor Commented:
Also the setup starts without graphics.
0
 
MazdajaiCommented:
See the following on how to boot to run level 3. (CLI no GUI)

http://www.if-not-true-then-false.com/2012/howto-change-runlevel-on-grub2/
0
 
ibu1System AdministratorAuthor Commented:
these integration tools are all for redhat linux and not for ubuntu.
0
 
MazdajaiCommented:
Sorry, looks like ubuntu 12.04 comes with integration services..

Not being said I have installed on ubuntu 10 before and it works fine.


Ubuntu 12.04 includes the Linux Integration Services drivers.
0
 
ibu1System AdministratorAuthor Commented:
I am right now able to boot into machine with run level 2 without problem.Network is OK, I can download software, update machine and everything else buth without graphics. So no need to reinstall machine or change the run level.googled aroung and it says that ubuntu 12.04 has all integrated tools preinstalled and taht's why i am able to have network card driver. Otherwise, I had to install the integration tools.
0
 
rindiCommented:
It should be included with Ubuntu and install automatically when you install it as a VM, but if it doesn't just use the ubuntu package manager to install them.

But as I mentioned earlier, if you have installed Ubuntu Server, then you shouldn't install a GUI for it. If it is a desktop version of Ubuntu, then go for a non-unity version. Unity uses far more resources than the other desktops, and you can get issues with it in a VM.
0
 
ibu1System AdministratorAuthor Commented:
cat /etc/issue.net     (from the machine where graphics is not working)
Ubuntu 12.04.2 LTS

cat /etc/issue.net (from the machine where graphics are working)

Ubuntu 12.04.1 LTS


Both physical machine has Microsoft Windows server 2008 R2 Enterprise. the only difference is the previous machine where the graphics are working properly is installed by other administrator and where graphics are not working is installed by me :)
0
 
ibu1System AdministratorAuthor Commented:
Rindi,
It should be included with Ubuntu and install automatically when you install it as a VM, but if it doesn't just use the ubuntu package manager to install them.

Which package manager?
0
 
ibu1System AdministratorAuthor Commented:
I installed vncserver and have the similar problem. I just give the small box of CLI without graphics.
0
 
rindiCommented:
apt-get is ubuntu's package manager

But again, as I mentioned, if this is an Ubuntu server, don't install X. Ubuntu server is supposed to run without a GUI, and if it isn't Ubuntu server, don't install the standard Ubuntu, but rather lubuntu.
0
 
ibu1System AdministratorAuthor Commented:
Rindi,
As I mentioned above, we have similar version of same Ubuntu which is having GUI. Above I, provided the /etc/issue.net command out from both the server. ubuntu 12,04 both are same but one with gui and other without gui.
0
 
rindiCommented:
It still isn't good to install ubuntu server and add a GUI. If you already have that installed then that was a mistake of your predecessor which you shouldn't repeat. If you want to use an Ubuntu system with a GUI you might as well install a desktop version to start with which already has the GUI included.
0
 
MazdajaiCommented:
Can you post the var log message from the 12.04.2?
0
 
ibu1System AdministratorAuthor Commented:
I found the solution myself.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.