Solved

startx freezes Ubuntu 12.04 on Microsoft Hyper-v

Posted on 2013-06-14
28
1,341 Views
Last Modified: 2014-11-12
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.
0
Comment
Question by:ibu1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 15
  • 5
  • 4
  • +1
28 Comments
 
LVL 12

Author Comment

by:ibu1
ID: 39246973
lspci | grep VGA
00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual VGA
0
 
LVL 19

Expert Comment

by:strivoli
ID: 39246975
Hyper-V based on which Windows Server Operating System Version? 2008/2008 R2/2012.
0
 
LVL 12

Author Comment

by:ibu1
ID: 39247034
Windows Server 2008 R2 Enterprise 64bit.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Author Comment

by:ibu1
ID: 39247042
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
 
LVL 19

Expert Comment

by:strivoli
ID: 39247064
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
 
LVL 19

Expert Comment

by:strivoli
ID: 39247077
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
 
LVL 12

Author Comment

by:ibu1
ID: 39247082
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
 
LVL 12

Author Comment

by:ibu1
ID: 39247088
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
 
LVL 19

Expert Comment

by:strivoli
ID: 39247107
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
 
LVL 88

Expert Comment

by:rindi
ID: 39247145
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
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39247483
Do you have integration tool installed on both VM?
0
 
LVL 12

Author Comment

by:ibu1
ID: 39248417
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
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39248438
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
 
LVL 12

Author Comment

by:ibu1
ID: 39248504
Also the setup starts without graphics.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39248520
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
 
LVL 12

Author Comment

by:ibu1
ID: 39248533
these integration tools are all for redhat linux and not for ubuntu.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39248551
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
 
LVL 12

Author Comment

by:ibu1
ID: 39248554
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
 
LVL 88

Expert Comment

by:rindi
ID: 39248570
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
 
LVL 12

Author Comment

by:ibu1
ID: 39248590
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
 
LVL 12

Author Comment

by:ibu1
ID: 39248592
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
 
LVL 12

Author Comment

by:ibu1
ID: 39248638
I installed vncserver and have the similar problem. I just give the small box of CLI without graphics.
0
 
LVL 88

Expert Comment

by:rindi
ID: 39248916
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
 
LVL 12

Author Comment

by:ibu1
ID: 39249013
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
 
LVL 88

Expert Comment

by:rindi
ID: 39249132
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
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39249144
Can you post the var log message from the 12.04.2?
0
 
LVL 12

Accepted Solution

by:
ibu1 earned 0 total points
ID: 39249794
0
 
LVL 12

Author Closing Comment

by:ibu1
ID: 39261885
I found the solution myself.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question