Re: [Qemu-devel] Serial Console / NoGraphic

2007-09-25 Thread Michael McConnell

Clemens Kolbitsch wrote:

hi!
i've been trying around for quite some time now trying to start qemu without 
the graphic screen... can someone tell me exactly what I'm supposed to do??


i want to redirect the output of my i386 debian linux to my host-console (also 
a i386 debian) to fully see the output of a kernel panic (see previous 
messages i have posted).


i'm starting qemu:

qemu -hda myimage -boot c -kernel-kqemu -kernel mykernel -initrd 
myinitrd -append root=/dev/hda1 console=/dev/ttyS0 -nographic


after tons of trial-and-error i finally got my system to boot, however, the 
login-screen is not displayed (i see all output of the starting system up 
until the login:). how do i connect to the serial line now to get to the 
login??


Add this to /etc/inittab in the guest system:
co:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav

Without that it's only going to put the login prompts on the (now 
hidden) virtual consoles.


The (emulated) hardware display still exists, it's just not shown. I use 
just such a setup for a Win2000 virtual-machine that's accessible by 
VNC. I've had issues with QEMU's own VNC server (it crashes with a core 
dump on disconnection, and no-one on the list was remotely interested) 
so instead I run UltraVNC within Win2000 and connect to that instead.


--
-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - UNIX spam filter
   Mail Me Anywhere - http://www.mailmeanywhere.com/ - email for phones





Re: [Qemu-devel] Can I run FC4 inside Qemu on Sparc?

2007-02-13 Thread Michael McConnell (Mailing Lists)

Neo Jia wrote:
Thanks for your messages. But if I would like stick on Solaris 9, is 
there any workaround for me?


If it's of any help I run Solaris 9, though in QEMU on my x86 system.

--
-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] /dev/kqemu could not be opened

2006-12-02 Thread Michael McConnell
On Sat, 2 Dec 2006, Mihamina Rakotomandimby wrote:

 Hi,
 I installed kqemu 1.3.0-pre9 and qemu 0.8.2. /dev/kqemu exist and is
 widely usable (chmod 666 and 777 tested)
 
   $ ls -l /dev/kqemu 
   crwxrwxrwx 1 root root 250, 0 2006-12-02 23:34 /dev/kqemu
 
 But when launching qemu:
 
   $ qemu -m 512  debian.img 
   Could not open '/dev/kqemu' - 
   QEMU acceleration layer not activated
 
 /dev/kqemu is not openable What could be the problem?

Is the kqemu module loaded?

If not, try 'modprobe kqemu' then restart QEMU.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Base images

2006-11-24 Thread Michael McConnell
On Thu, 23 Nov 2006, Don Kitchen wrote:

   - I noticed that images refer to their base image using an absolute path. 
   Is
   there a way to change an image's base image reference? (for example when 
   the
   base image is renamed / moved to a different directory)
  qemu-img convert [-c] changes-file -O qcow new-base-file
  should do what you want.
 
 I believe that forces a delta file to merge in with its base. Definately not 
 the same as relocation.

The original question I answered:

David Roberts wrote:
 Hi,
 
 I've got a couple of questions about creating images linked to base images:
 - `qemu-img commit` commits changes directly to the base image. Is there a
 way to create a new merged image with the changes so as not to change the
 original?

...and my qemu-img convert command above will do exactly that.

Your misquoting has implied the command I gave would do something else, which 
it won't.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Base images

2006-11-22 Thread Michael McConnell
On Wed, 22 Nov 2006, David Roberts wrote:

  qemu-img convert [-c] changes-file -O qcow new-base-file
 
  should do what you want.
 Great. However, does that mean that I cannot compress an image without 
 merging 
 it with its base image?

I believe so, yes. It makes sense for the changes file to be uncompressed, 
since it makes life so much simpler (and faster) for random-access writes.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] -snapshot and tmpsfs

2006-11-18 Thread Michael McConnell
On Sat, 18 Nov 2006, Ottavio Caruso wrote:

 Are the writes to tmpfs (in a *nix guest OS) recorded to the
 snapshotted image?
 
 Example: /var/run on tmpfs
 OS writes to /var/run. Bigger temp file or not?

This isn't a guaranteed certain answer, but IIRC tmpfs uses system RAM and 
swap as its storage.  Therefore a guest writing into its tmpfs space would 
only touch the host filesystem if it were to use the swapfile.

As you say you're using the snapshot mode it would, if the swapfile is 
touched, go into the snapshot temp file, otherwise it wouldn't.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] User-mode proxy support

2006-11-17 Thread Michael McConnell

Ricardo Almeida wrote:

Hello,

I'm using QEmu with user mode network. The host machine can't access
the Internet directly, only through a proxy server.
Since I'm using user mode network there's no way I can connect to the
proxy from inside the guest machine (is there?).
What I'm suggesting is building a proxy server (just as there is a DNS
and a SMB server) that in reality is just a package forwarder to the
real proxy server... I don't know if this easy to do, but it's what I
would like :)


If you set the guest's default route to 10.0.2.2 then it should be able 
to reach your proxy server, perhaps using its IP address rather than 
hostname if you haven't set up DNS.


--
-- Michael Soruk McConnell
  Eridani Star System

  MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
  Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] pronunciation of Qemu

2006-06-28 Thread Michael McConnell
On Wed, 28 Jun 2006, Paul Robinson wrote:

 How should you pronounce Qemu?
 
 FYI, my best guess is Q (as in the letter Q) followed by the first 2
 syllables of emulator.

I've personally always pronounced it kwemu...

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] invisible wall patch

2006-06-13 Thread Michael McConnell

Julian Seward wrote:
Could somebody please commit, or at least consider committing, 
Anthony Liguori's invisible wall patch, shown at 
http://lists.gnu.org/archive/html/qemu-devel/2006-05/msg00112.html ?


Without it, QEMU is essentially unusable on my SuSE 10 host; with it,
the mouse stuff works perfectly.  A couple of other people on that
thread had similar experiences with it.


I'll add my voice to this - with WinXP and Win2000 guests, without this 
patch they were virtually unusable.  They work fine with it.


--
-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/
   Mail Me Anywhere - http://www.mailmeanywhere.com/


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] QEMU 0.8.1 VNC: Segfault on closing

2006-05-21 Thread Michael McConnell
When I try to use QEMU's VNC server, every time I close the connection it
segfaults.  So far I've been unable to trace the cause of this (gdb appears
to be next to useless at tracing the execution), but it is totally
repeatable.

Running with kqemu 1.3.0pre7 in -kernel-kqemu with Windows XP as the guest 
operating system, the host is an Athlon XP2000+ running kernel 2.6.14, and 
glibc 2.1.3. QEMU was compiled with gcc 3.4.3.

(I tried upgrading glibc, had to restore the machine from a backup.)

Any pointers would be much appreciated...

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] QEMU 0.8.1 VNC: Segfault on closing

2006-05-21 Thread Michael McConnell
On Sun, 21 May 2006, Anthony Liguori wrote:

 Michael McConnell wrote:
  When I try to use QEMU's VNC server, every time I close the connection it
  segfaults.  So far I've been unable to trace the cause of this (gdb appears
  to be next to useless at tracing the execution), but it is totally
  repeatable.

 
 Can you provide more information?  What VNC client are you using? 

TightVNC 1.2.9 - and the fault can also be triggered by just telnetting to 
the VNC port and closing the connection.

 What 
 host architecture are you on?  What is the guest OS/target?

I already gave that - REinserting immediately below.
(It was in the second paragraph, which you inserted your reply above.)
For those not familiar with AMD, the Athlon
XP2000+ is an ix86 32-bit CPU.

  Running with kqemu 1.3.0pre7 in -kernel-kqemu with Windows XP as the guest 
  operating system, the host is an Athlon XP2000+ running kernel 2.6.14, and 
  glibc 2.1.3. QEMU was compiled with gcc 3.4.3.

 Can you provide a stack trace that leads to the seg fault?

GDB seems unable to - this is how it started off when analysing the core 
dump:
[EMAIL PROTECTED] QEMU]# gdb /usr/local/bin/qemu-i386 core
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-redhat-linux...

Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.

Core was generated by `qemu-i386 -m 128 -sync -kernel-kqemu -boot c -net 
nic,macaddr=fe:fd:00:00:00:01'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/local/lib/libSDL-1.2.so.0...done.
Reading symbols from /lib/libpthread.so.0...done.
Reading symbols from /lib/libutil.so.1...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x804ff4a in ?? ()
(gdb) bt
#0  0x804ff4a in ?? ()
(gdb) quit
[EMAIL PROTECTED] QEMU]# gdb ls

I have no idea what this dwarf error is.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] QEMU 0.8.1 VNC: Segfault on closing

2006-05-21 Thread Michael McConnell
On Sun, 21 May 2006, Anthony Liguori wrote:

 Michael McConnell wrote:
  On Sun, 21 May 2006, Anthony Liguori wrote:
 

  Michael McConnell wrote:
  
  When I try to use QEMU's VNC server, every time I close the connection it
  segfaults.  So far I've been unable to trace the cause of this (gdb 
  appears
  to be next to useless at tracing the execution), but it is totally
  repeatable.

  Can you provide more information?  What VNC client are you using? 
 
  TightVNC 1.2.9 - and the fault can also be triggered by just telnetting to 
  the VNC port and closing the connection.
 
 Curious, I've not seen this myself and your configuration does not seem 
 out of the ordinary.
 
 Can you try with CVS and 0.8.1?  Also, make sure that you're doing a 
 full build if you've built this from CVS as the dependences in the 
 Makefile aren't good.

Not having quite figured out how to get CVS to work as I so rarely have to
use it (nor could I find a link on qemu.org) I tried with the
qemu-snapshot-2006-05-21_23.tar.bz2 snapshot from qemu.dad-answers.com.  And
ran into exactly the same problem.  gdb is equally useless on this build too.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Michael McConnell
On Tue, 9 May 2006, Yann Le Doaré wrote:

 You are right ! :
 
 sh-2.05b# qemu-img create /mnt/partitions/windows0/qmeu-disk 4M
 Formating '/mnt/partitions/windows0/qmeu-disk', fmt=raw, size=4096 kB
 sh-2.05b# ls -al /mnt/partitions/windows0/qmeu-disk
 -rwxr-xr-x1 root root0 2006-05-09
 23:37 /mnt/partitions/windows0/qmeu-disk
 sh-2.05b# qemu-img create /mnt/partitions/windows0/qmeu-disk 40M
 Formating '/mnt/partitions/windows0/qmeu-disk', fmt=raw, size=40960 kB
 sh-2.05b# ls -al /mnt/partitions/windows0/qmeu-disk 
 -rwxr-xr-x1 root root0 2006-05-09
 23:38 /mnt/partitions/windows0

IIRC creating a raw QEMU disc image makes use of sparse files, a concept 
not supported under FAT16/32.  A qcow disc image should work fine.  If you 
want to create a raw disc image on a FAT partition, use (from your example)
dd if=/dev/zero of=/mnt/partitions/windows0/qmeu-disk bs=1024 count=40960

It'll take a bit longer than qemu-img would but then it's having to write out 
every block in the disc image to the real disc.

Hope that helps.

 Le lundi 08 mai 2006 à 16:12 -0500, Anthony Liguori a écrit :
  On Sun, 07 May 2006 08:13:01 +, Yann Le Doaré wrote:
  
   Hi,
   
   It seems like qemu 0.8.0 does not accept image file from a vfat partition.
   Is it a bug ?
   
   Greetings.
   
   Yann Le Doaré.
   
   
   strace :
   
   open(/mnt/partitions/windows0/qmeu-disk, O_RDONLY|O_LARGEFILE) = 7
   read(7, , 1024)   = 0 close(7)  
= 0 open(/mnt/partitions/windows0/qmeu-disk,
   O_RDONLY|O_LARGEFILE) = 7 _llseek(7, 128, [128], SEEK_SET)= 0
   read(7, , 4)  = 0 close(7)  
= 0 write(2, qemu: could not open hard disk i..., 74qemu: could
   not open hard disk image '/mnt/partitions/windows0/qmeu-disk' ) = 74
   exit_group(1)   = ?
  
  It's pretty clear that what's happening is that qemu opening the file and
  the filesystem is claiming it's an empty file.
  
  So, I recommend you do the following:
  
  First:
  
  du -sh /mnt/partitions/windows0/qmeu-disk
  ls -al /mnt/partitions/windows0/qmeu-disk
  
  And make sure both report a non-zero result.  If either reports 0 as the
  size, then you screwed up copying the file to your vfat partition.
  
  Second:
  
  In vl.h, change:
  
  #ifndef O_LARGEFILE
  #define O_LARGEFILE 0
  #endif
  
  To:
  
  #ifdef O_LARGEFILE
  #undef O_LARGEFILE
  #endif
  #define O_LARGEFILE 0
  
  And if that fixes your problem, then vfat is broken when open()'d with
  O_LARGEFILE.  If that's the case, you should report it as a vfat bug.
  
  Regards,
  
  Anthony Liguori
  
  
  
  ___
  Qemu-devel mailing list
  Qemu-devel@nongnu.org
  http://lists.nongnu.org/mailman/listinfo/qemu-devel
 
 
 
 ___
 Qemu-devel mailing list
 Qemu-devel@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/qemu-devel
 

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu crash with exit code 135

2006-02-22 Thread Michael McConnell
On Tue, 21 Feb 2006, Christian Bourque wrote:

 Hi!
 
 Every time I try to access a particular functionality in one of my
 application QEMU crashes with the exit code 135, is there a way to
 interpret this number?

Usually, exit codes just over 128 are the result of a signal killing it, with 
the exit code being 128+signal. In this case, the signal was 7, SIGBUS.

You can test this theory... in one xterm, enter sleep 60, and in another, 
look up the process and kill it with signal 7. You may see an error message 
from the sleep window, and the exit code will be 135.

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://mailstripper.eridani.co.uk/ - SMTP spam filter
   Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] getting past the ctrl-alt-del login in NT

2005-09-25 Thread Michael McConnell

Andreas Mohr wrote:

Hi,

On Sun, Sep 25, 2005 at 09:58:30PM +1200, Wesley Parish wrote:

Does anyone using qemu know how to do that?  bochs has a setting in its 
bochsrc file that allows you to click on user-configured button and it 
sends ctrl-alt-del to WinNT 4.0.


Is there any analogy to that in qemu?


I'm almost 100% certain the qemu monitor has an option to send keycodes
that you need for workarounds in certain situations.

DISCLAIMER: Not A Qemu User (tm)


I have an NT4 installation under QEMU on my Linux box - and in grab 
mode, all I do is... press CTRL-ALT-DEL. Clicking in the window or 
hitting CTRL-ALT enters grab mode.


--
-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://mailstripper.eridani.co.uk/ - UNIX spam filter
   Mail Me Anywhere - http://www.mailmeanywhere.com/ - email for phones



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Q: Issue booting Solaris 8 (SPARC)

2005-08-01 Thread Michael McConnell

Blue Swirl wrote:

Hi,

Looks like the boot block gets loaded correctly (nice data point). It's 
a bit confusing to see UFS in the error message, shouldn't that be ISOFS 
or CDFS?


I'm not sure if this is relevant, but the line Kernel loaded surely the size 
should be somewhat larger than 0K?


--
-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://mailstripper.eridani.co.uk/
   Mail Me Anywhere - http://www.MailMeAnywhere.com/


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Qemu with Kqemu on Fedora Core using GCC 4.0

2005-05-10 Thread Michael McConnell
On Tue, 10 May 2005, Fabrice Bellard wrote:

 Hetz Ben Hamo wrote:
  Hi,
  
  At the moment, QEMU does not compile with GCC 4.0. 
  You can find the GCC 3.x RPMS in your installation media, along with
  instructions how to use the GCC 3.x instead of GCC 4.
 
 I just updated the FAQ with this issue.

I can't get it to compile with 2.96 either (QEMU 0.6.1 had no problems there)

-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - The easy spam filter.
   http://mailstripper.eridani.co.uk/



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] QEMU 0.7.0 - IDE patch for Solaris-X86

2005-04-28 Thread Michael McConnell
This is a forward-port of the patch for 0.6.1 (that I found on the web, 
may have been this list, a while back) needed to get Solaris-X86 to run 
with the IDE interface in PCI mode.

--- qemu-0.7.0/hw/ide.c.orig2005-04-27 21:52:05.0 +0100
+++ qemu-0.7.0/hw/ide.c 2005-04-28 08:32:59.0 +0100
@@ -500,6 +500,8 @@
 static inline void ide_set_irq(IDEState *s)
 {
 if (!(s-cmd  IDE_CMD_DISABLE_IRQ)) {
+   BMDMAState *bm = s-bmdma;
+   if(bm) bm-status |= BM_STATUS_INT;
 #ifdef TARGET_PPC
 if (s-openpic)
 openpic_set_irq(s-openpic, s-irq, 1);
--
-- Michael Soruk McConnell
   Eridani Star System
   MailStripper - The easy spam filter
   http://mailstripper.eridani.co.uk/
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel