[Qemu-devel] Networking problems

2010-08-12 Thread Daniel Carrera
Hello,

I've spent the last day trying to get NetBSD installed on a QEMU
virtual machine. The problem I'm having is that I can't get online. As
of now, this is the command I'm using:

qemu -cdrom netbsd-i386cd-5.0.2.iso -hda NetBSD.img -no-acpi -net
nic,model=pcnet

With this command I can get a virtual machine, NetBSD runs, it detects
the network card, it does not complain about the network card, and it
attempts to use DHCP to get online. And that's where things go wrong.
QEMU emulates a DHCP server and NetBSD cannot even see it.

Earlier I had it at the point where it would receive an IP in the
10.x.x.x region, as well as a gateway and nameserver but then it still
couldn't ping anywhere.

Needless to say, I'm feeling very frustrated right now. I really hope
that someone here can help me out. I want to get networking with QEMU.
I just want it to work and I feel about ready to throw my computer out
the window.

Daniel.
-- 
Intolerant people should be shot.



Re: [Qemu-devel] Networking problems

2010-08-12 Thread Daniel Carrera
On Thu, Aug 12, 2010 at 9:35 PM, Cliff Wright cl...@snipe444.org wrote:
 Its been a while since updating qemu, so on old version I had
 -net nic,model=ne2k_pci -net user -redir tcp:2023::22 -soundhw es1370
 is the missing -net user causing you trouble?

Actually, yes, the -net user flag makes a difference. The QEMU
documentation *says* that it is not necessary, so I omitted it. But if
you add -net user then at least NetBSD can get an IP and gateway
from QEMU's DHCP server.

Unfortunately, that's as far as it goes. It still cannot go online.
When NetBSD tries to ping 10.0.2.3 (gateway I think) it just gets
100% packet loss. Let me show you qemu's output on the command line:

%
$ qemu -cdrom foo.iso -hda bar.img -net nic,model=ne2k_pci -net user -no-acpi
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
%

Judging from wikipedia, KVM is a reference to kernel-based native
virtualization using Intel VT-x or AMD-V. Unfortunately, my CPU is
just a bit to old to support VT-x so naturally I don't get KVM. But
QEMU should not require KVM to work, since that's a very recent
feature on Linux.

Daniel.
-- 
Intolerant people should be shot.



Re: [Qemu-devel] No useful documentation.

2006-07-06 Thread Daniel Carrera
On Wed, 2006-05-07 at 17:00 -0700, Mike Swanson wrote:
 On Wednesday 05 July 2006 15:01, Daniel Carrera wrote:
  Yes, but the doc doesn't, for example, explain how you are supposed to
  put a bootable image in file. This is addressed by the excellent
  responses from Nathaniel and Rick, and I included it in my proposed
  tutorial.
 
  This is the sort of thing that might be obvious to you in hindsight
  (you're very involved in qemu) but won't be to a lot of people who are
  technically competent, but don't already know qemu.
 
 It doesn't require any involvement to understand,

I didn't say it required involvement to understand. I understand it now,
and it only took 1 sentence to explain it. But that sentence really has
to be in the documentation, and where it can be found.

You are confusing complexity with poor documentation. Qemu is not hard
to use, it is poorly documented. Big difference. The way qemu works is
not at all obvious, it needs to be explained, even if the explanation
only takes 1 paragraph.

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] No useful documentation.

2006-07-05 Thread Daniel Carrera
Hello,

I write here because there doesn't seem to be a Bugzilla for qemu and
whoever is responsible for the qemu documentation must be here.

The documentation is quite worthless.

I'm sure you don't like hearing that, but consider that it doesn't
actually show the user how get qemu to do what qemu is supposed to di
(ie. run a host OS). Ok, it tells me how to create a blank disk image,
that's great, but how do I create a disk image with something bootable
on it? Sorry, no information on that. I expect that the most typical use
case for qemu is running Windows under Linux, so you'd expect to see
some documentation for that, right? Nope, none. Sure, there are
trouble-shooting tips, but what use are trouble-shooting tips if you
can't even get started?

I've looked at qemu several times over the past several years. Every
time I get excited at the prospect of migrating people to GNU/Linux by
letting them run the one windows app they need... and every time I hit a
brick wall, as qemu fails to actually do anything useful.

Try to take this approach: You are writing to a technically competent
user (perhaps a sysadmin) who wants to run Windows under Linux with qemu
(perhaps to migrate some of the company computers). He has a Windows
install CD, he has qemu installed, and is ready to go. Please write
something that this person can use to get Windows running under qemu.

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] No useful documentation.

2006-07-05 Thread Daniel Carrera
On Wed, 2006-05-07 at 17:12 -0400, Nathaniel McCallum wrote:
 A person who is in your position (frustrated for lack of documentation)
 is actually the most qualified person to write documentation.  Feel free
 to ask any questions you have on this list.

I would be happy to contribute a section. First I need to learn how qemu
works though. Just the basics. On another list someone told me that the
way qemu works is by first creating a blank image, then booting a CD
from the virtual machine and installing.

At this point I know how to make a blank image, and I know how to boot a
CD:

qemu -cdrom /dev/cdrom

Now I need to figure out how to put these together so that if this CD
can install an operating system, qemu will know to use the blank image I
made (call it c.img) as a hard drive for its virtual machine.

Could someone tell me how to do that?

I'll be happy to write an intro tutorial for new users with the
knowledge I gain.

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] No useful documentation.

2006-07-05 Thread Daniel Carrera
On Wed, 2006-05-07 at 16:25 -0500, Rick Vernam wrote:
 qemu -cdrom /dev/cdrom -hda /path/to/your/image -boot d

Thank you!!! You're the man!

I'll write a brief tutorial and post it here as promised.

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Qemu tutorial

2006-07-05 Thread Daniel Carrera
Hello all,

As promised, here is a tutorial I would recommend to get people started.
It's short and sweet:

-
Tutorial: Full system emulation under Linux
---
Alright, you have qemu installed and now you want to run a client OS
under qemu. Follow these steps:

1) You need a blank disk image. This is like adding a blank disk to the
virtual computer that qemu creates. Use this command to create a 2Gb
blank disk image:

qemu-img create -f qcow c.img 2G

The last argument is the size of the image (2G). For more information on
creating a blank image, see a href=#SEC153.6 Disk Images/a.

2) When you install an OS on a real computer you normall boot an
install CD. We'll do the same with the virtual computer. Put the CD
(e.g. Windows install CD) on the CD drive.

qemu -cdrom /dev/cdrom -hda c.img -m 256 -boot d

This boots from the CD ROM (-boot d) using 256MB of RAM (-m 256) using
c.img as /dev/hda (-hda c.img).

Now you can install the client OS just as you would in a real computer.
-

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] No useful documentation.

2006-07-05 Thread Daniel Carrera
On Wed, 2006-05-07 at 23:46 +0200, Udo 'Robos' Puetz wrote:
 __Straight from the docs__
 
 -hda file
 -hdb file 

Yes, but the doc doesn't, for example, explain how you are supposed to
put a bootable image in file. This is addressed by the excellent
responses from Nathaniel and Rick, and I included it in my proposed
tutorial.

This is the sort of thing that might be obvious to you in hindsight
(you're very involved in qemu) but won't be to a lot of people who are
technically competent, but don't already know qemu.

 I *guess* you, daniel, would have liked something where you had it all
 pre-chewed so that you don't have to read.

If what you mean is good documentation, yes, that would be nice. Feel
free to use my proposed tutorial, I would be flattered if you did. And
yes, I do know a couple of things about documentation. Good
documentation gives clear steps and doesn't leave important things
unexplained. Step-by-step procedures, even if they don't exactly match
the reader's use case (but can be generalized), are a good idea.


 Some other people said it before in other contexts, I repeat it for qemu:
 it isn't free, you have to pay by reading stuff (short version)

That's a very sad attitude. That's not the attitude that I took when I
wrote the user guide for OpenOffice.org (http://oooauthors.org). I took
the attitude that documentation is critically important and that to
serve its role well one has to put a strong focus on clarity and
explanation. It is tempting to simply list all the features that a
program has. But a feature-based documentation is mostly useful as a
reference. That is, something you use once you have the mechanism down.
It is critically important to write task-based documentation. In other
words, ask what does the user want to do? and write down how to do it.

 If you become agitated because some docs are (in your opinion) bad, think
 about what you paid for it and - in my case - I still see the (bad) docs
 but keep myself from insulting people who work for free and in their free 
 time!!

I have spent a lot of time working for free on my free time, so I know
the feeling. I still say that making things difficult and calling it
payment is not a good attitude. Other people in this list took the
approach of helping solve a problem and in turn I suggested a tutorial
that would cover this situation.

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Qemu tutorial

2006-07-05 Thread Daniel Carrera
A quick FYI. I mentioned that on another list someone explained that I
was supposed to create a blank disk image first and then boot from a CD
ROM. I then asked there do you know how to do that?. His response was
No, I don't... I switched to vmware.

The point of this is that I'm not the only person who can't figure this
out from the documentation. You won't hear much about this because
people who can't get started are not likely to join this list and ask.
Please do use a quick tutorial like the one I wrote.

Cheers,
Daniel.

On Wed, 2006-05-07 at 22:49 +0100, Daniel Carrera wrote:
 Hello all,
 
 As promised, here is a tutorial I would recommend to get people started.
 It's short and sweet:
 
[snip]


-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] No useful documentation.

2006-07-05 Thread Daniel Carrera
On Wed, 2006-05-07 at 15:34 -0700, Ronnie Misra wrote:
 I think it's great that you've offered to write documentation for  
 qemu, but perhaps the discussion would have been smoother if you'd  
 started with:

Point taken. I admit I have little patience for poor documentation.
Especially when it's something fundamental in a way that probably causes
users to give up early, so the writer never finds out that there's a
problem. I'm trying to be polite now.

Cheers,
Daniel.
-- 
http://opendocumentfellowship.org
  The reasonable man adapts himself to the world; the
  unreasonable man tries to adapt the world to himself.
  Therefore all progress depends on unreasonable men.
-- George Bernard Shaw


signature.asc
Description: This is a digitally signed message part
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel