9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Kim Lassila <kim.lassila@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Plan9 on virtual machine in Mac os
Date: Wed, 25 Mar 2020 12:04:39 +0200	[thread overview]
Message-ID: <26023930-CA20-4922-B0F2-C6B91AE3E59A@gmail.com> (raw)
In-Reply-To: <527DF2F5-4EB1-48E7-B253-8CA2E86D6FAD@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]

On Mar 25, 2020, at 3:32 AM, Mark Everett <everettm@gmail.com> wrote:
> 
> Does anyone know of a virtual machine running on current Mac OS that hosts plan9?  Preferably one that isn’t too difficult to set up….

Hi Mark,

I run both 9front and 9legacy on macOS with Qemu. The installation of qemu 4.2.0 was a breeze via Homebrew:

Mac % brew install qemu

The Plan 9 file server VM boots off a virtual disk image that has 9fat, nvram, and fossil. I launch it with the following command:

Mac % cd $HOME/plan9/fs &&
qemu-system-x86_64 -m 512 -name 'file server' \
-nographic \
-no-reboot \
-drive 'if=none,id=hd,file=fossil.raw,format=raw' \
-device 'virtio-scsi-pci,id=scsi' -device 'scsi-hd,drive=hd' \
-device virtio-net-pci,netdev=n0,mac=52:54:00:09:09:02 \
-netdev user,id=n0,hostfwd=tcp::564-:564

The Plan 9 terminal boots directly off a 9front kernel supplied on the command line. I launch the VM with this command:

Mac % cd $HOME/plan9/terminal &&
qemu-system-x86_64 -m 1024 -kernel 9pc64 -initrd plan9.ini \
-name terminal \
-no-reboot \
-device virtio-net-pci,netdev=n0,mac=52:54:00:09:09:09 \
-netdev user,id=n0,hostfwd=tcp::8080-:80 2>&1 | grep -v 'multiboot knows VBE'

I was testing a simple web server written in Go on the terminal and that’s why I am forwarding tcp port 8080 into it. 

It took quite a lot of iterations to get these commands right. Hope this helps.

Kim


[-- Attachment #2: Type: text/html, Size: 6373 bytes --]

  parent reply	other threads:[~2020-03-25 10:04 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10  3:30 plan9port fossil kim.lassila
2020-03-18 15:37 ` [9fans] " Steven Stallion
2020-03-19 12:34   ` Lucio De Re
2020-03-25  1:32     ` Plan9 on virtual machine in Mac os Mark Everett
2020-03-25  6:39       ` [9fans] " Cyber Fonic
2020-03-25 18:00         ` Ethan Gardener
2020-03-25 20:11           ` Brian L. Stuart
2020-03-25 22:17             ` Ethan Gardener
2020-03-25  6:44       ` Cyber Fonic
2020-03-25 21:35         ` Mark Everett
2020-03-25 21:43           ` Skip Tavakkolian
2020-03-25 10:04       ` Kim Lassila [this message]
2020-03-25 21:24       ` Skip Tavakkolian
2020-03-25 21:30       ` Nicolas S. Montanaro
2020-03-25 22:21         ` Ethan Gardener
2020-04-02 12:09     ` [9fans] plan9port fossil Ole-Hjalmar Kristensen
2020-04-02 13:37       ` Lucio De Re
2020-03-20  3:41   ` Kim Lassila
2020-04-01 23:52 ` cigar562hfsp952fans
2020-04-02  0:59   ` [9fans] " Jeremy Jackins
2020-04-02  1:23     ` Jeremy Jackins
2020-04-04 13:45       ` [9fans] " Kim Lassila

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=26023930-CA20-4922-B0F2-C6B91AE3E59A@gmail.com \
    --to=kim.lassila@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).