9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: John Soros <sorosj@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] lguest on 2.6.25
Date: Mon, 25 Aug 2008 11:03:30 +0200	[thread overview]
Message-ID: <20080825110330.10b075c6@dazone> (raw)
In-Reply-To: <5bb2fcc60808242158j42d67700vc40fb0ea69ebc825@mail.gmail.com>



On Sun, 24 Aug 2008 23:58:21 -0500
"Alex Lee" <alexlee@uchicago.edu> wrote:

> On Sun, Aug 24, 2008 at 11:32 PM, ron minnich <rminnich@gmail.com> wrote:
> [snip]
> >> lguestnetwork is
> >
> > see this line? It's a variable read in /rc/bin/cpurc. You can check
> > that script and see how it can be set so that networking is a little
Hello,
I have gotten the lguest port working on the 2.6.25.0 kernel, it works mighty fine here.
The load issue for me is only on plan9, on the host I can see with 'top' that the lguest guest isn't consuming all the cpu, so this might ust be a plan9 problem. I have also seen quite a few messages in /sys/log/cron i get a lot of lines saying:
$sysname Aug 25 08:31:14 time went backward

I found routed networking to be the simplest, nat gives me the creeps.
So here is my way to start the lguest guest, I hope it will be helpful:

====snip
#!/bin/bash
set -x
/root/bin/lguest --tunnet=$1 --block=/dev/mirror/plan9cpu \
	512 /home/johnny/9lguestcpu.2.6.25.elf 'bootargs=local!#S/sd00/fossil;sysname=9soul;bootdisk=local!#S/sd00/fossil'
sleep 10
ip route add $3 via $1 dev $2
ip route del 192.168.0.0/24 dev $2
echo 1 > /proc/sys/net/ipv4/conf/$2/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
====snip

$1 is the host ip, $2 is the tap interface the guest will use, and $3 is the ip the guest will have. This method only works for static networking, also you will need to install the iproute2 utilities. These command also assume the your net is 192.168.0.0 netmask 255.255.255.0, change that to whatever suits you.

Cheers,
John


> > better. More I do not recall and the machine is not nearby ...
> >
> [snip]
> >> 2. I can ping from the host machine to the lguest interface
> >> (192.168.19.2), but when I try to connect with drawterm the connection
> >> is refused.
> >
> > Try restarting the listen? that's an odd one. If you telnet to the
> > port from the host to the guest what do you see?
>
> Ah, I see now. I added "lguestnetwork=NAT" to parameters in RUNLGUEST,
> and now both networking and drawterm are working great!
>
> >> 3. lguest always runs at full CPU. How can I figure out why this is
> >> happening? (I don't feel comfortable running lguest for more than a
> >> few minutes at a time -- the laptop gets pretty hot.)
> >
> > hmm. I have not seen this one. Again, not sure why this is happening.
> > But the halt
> > may not be working. Possibly the API has changed -- not sure.
> >
> > ron
>
> Let me know if there's any information that I can provide to help with
> this. Many thanks for all the hard work that you've put into doing
> this port.
>
> Best,
> Alex
>
>



  reply	other threads:[~2008-08-25  9:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-24 23:23 Alex Lee
2008-08-25  4:26 ` ron minnich
2008-08-25  4:32 ` ron minnich
2008-08-25  4:58   ` Alex Lee
2008-08-25  9:03     ` John Soros [this message]
2008-08-25 10:56       ` erik quanstrom
2008-08-25 14:52         ` ron minnich
2008-08-25 14:52           ` ron minnich
2008-08-25 14:59           ` erik quanstrom
2008-08-25 15:09             ` ron minnich
2008-08-25 18:48             ` John Soros
2008-08-25 18:54               ` lucio
2008-08-25 20:39                 ` John Soros
2008-08-25 21:27                 ` John Soros
2008-08-25 23:53                   ` [9fans] Anyone handy with Alpha assembler? Benjamin Huntsman
2008-08-26 15:24                     ` Paweł Lasek
2008-08-26 17:56                       ` Benjamin Huntsman
2008-08-26 22:03                         ` Paweł Lasek
2008-08-26 23:09                           ` Benjamin Huntsman
2008-08-25 22:44               ` [9fans] lguest on 2.6.25 ron minnich
2008-08-26  6:44                 ` John Soros
2008-08-28  2:28                   ` Alex Lee
2008-08-28  2:38                     ` ron minnich
2008-08-28 12:06                       ` erik quanstrom
2008-08-28  8:21                     ` John Soros
2008-08-28 15:38                       ` ron minnich
2008-08-28 16:50                         ` John Soros
2008-08-28 16:59                           ` erik quanstrom
2008-08-28 17:24                         ` Alex Lee
2008-08-28 18:07                           ` John Soros
2008-08-28  8:27                     ` Richard Miller
2008-08-28 11:55                     ` erik quanstrom
2008-08-28 17:34                       ` Alex Lee
2008-08-28  2:39                   ` ron minnich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080825110330.10b075c6@dazone \
    --to=sorosj@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).