Solved

startx freezes Ubuntu 12.04 on Microsoft Hyper-v

Posted on 2013-06-14
28
1,294 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
  • 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
 
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 87

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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 87

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 87

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 87

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now