>>>>> "S" == simon <
ful...@gmail.com> writes:
S> I have installed TEMU,and created a ubuntu904.qcow2 as the TEMU
S> user manual says, but when use temu to open the ubuntu904.qcow2,I
S> cann't login into the system,
S> qemu says:
S> "Failed to start the X server(your graphical interface).It is
S> likely that it is not setup correctly.would you like to view the X
S> server output to diagnose the problem? <Yes> <No>"
S> and I cann't do any operation in the same time.did anyone encounter
S> the same problem? and how to solve this problem?
That's a somewhat unusual sounding problem. It sounds like something
went wrong in the creation of your Ubuntu virtual machine image, but I
can't tell what. Could you explain in a bit more detail how you
created your "ubuntu904.qcow", so that we can compare notes with the
way we made ours (which seem to work)?
The way I generally make Linux virtual machine images for use with
TEMU is by doing the distribution's standard installation process
inside a vanilla version of QEMU. (It should also work to do
installations under TEMU itself, but you want to be sure you're using
a version that works with KQEMU, or else the process will be painfully
slow.)
For instance, you can make an Ubuntu 9.04 image by:
(1) downloading the installation CD ISO "ubuntu-9.04-desktop-i386.iso"
from Ubuntu's web site.
(2) creating an empty 5GB hard disk image file with:
% qemu-img create ubuntu904.qcow 5G
(3) booting the virtual machine with the virtual CD and HD:
% qemu -net nic -net user,hostname=jaunty32 -no-reboot -m 512 \
-monitor stdio -hda ubuntu904.qcow \
-cdrom ubuntu-9.04-desktop-i386.iso
(4) following all the installation prompts as you would on a real
machine.
Ubuntu's desktop installer is graphical, so if there was a problem
with supporting the VM's graphics it would probably fail right at the
beginning.
The error message you copied I think indicates that the X server
failed to start. As the prompt says, you could look at the detailed
server output to perhaps get a more detailed error message, but I
doubt that the problem is TEMU-specific, since we haven't modified any
of the virtual video device features of QEMU. Does it fail that way
only under TEMU, or does it fail in the same way under QEMU? You might
also want to check that your virtual machine has plenty of RAM (the
"-m 512m" in my command above).
Also, though it of course depends on what you're using TEMU for, you
might consider not running a graphical environment in your virtual
machines. It's not really needed if you're just testing network
servers, for instance, and the VM will be a bit more responsive if it
doesn't have to emulate the whole desktop environment too. I think the
server edition of Ubuntu 9.04 might use a different kernel, so the
easiest way to do this might just be to disable the graphics packages
in your desktop install.
Speaking of disabling X, why is it that you can't use your VM just
from the terminal after X fails to start?
Hope this helps,
-- Stephen