From mboxrd@z Thu Jan 1 00:00:00 1970
Content-Transfer-Encoding: 7bit
Content-Type: multipart/alternative; boundary="_----------=_1174733578222793"
MIME-Version: 1.0
From: ramkromberg@mail.com
To: 9fans@cse.psu.edu
Date: Sat, 24 Mar 2007 12:52:58 +0200
Message-Id: <20070324105258.B42311CE303@ws1-6.us4.outblaze.com>
Subject: [9fans] [GUIDE] 9plan in qemu under windows
Topicbox-Message-UUID: 2ff3bef2-ead2-11e9-9d60-3106f5b1d025
This is a multi-part message in MIME format.
--_----------=_1174733578222793
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
I made this little guide out of scrambled notes and general boredom, Its
probably full of bugs and won't work at all, Enjoy :-)
benefits in using qemu: qemu is GPL open source and free, everything
works, sound should also work though this remains untested since I don't
know how...
A quick and dirty guide for running plan 9 under qemu Virtual Machine in
windows xp (2000+ should be ok, xp sp2 tested too):
Required Skill: Advance : Networking experience is mandatory and skillz
will also help a lot ;-)
Risks for even the uber-coder when using ms-windows (to whatever purpose,
but especially in the context of this guide): Your PC shall blaze in
hell's fire fury while shooting its own chips in a direct projectory
toward the nearest elderly / infant / your reproductive organs, obviously
I don't take responsibility for whatever damage that may be caused to
your computer, you, or the nearest elderly / infant in 35m distance from
the machine or any connected to it or not.
*** Pls read through at least twice, also unless you know exactly how
your network is set, its better you skip the networking parts, or better
yet, skip this guide...
01. Download "qemu-0.9.0-windows.zip", "openvpn-2.0.9-install.exe" and
"plan9.iso.bz".
02. Extract "plan9.iso" and "qemu-0.9.0-windows" to the same directory.
03. Install "openvpn-2.0.9-install.exe".
04. Rename the new network connection (found in Network Connections) to
"TAP_OpenVPN".
05. Bridge "TAP_OpenVPN" and your WAN/LAN Connection (usually "Local Area
Connection", should be enabled and has packet changes when downloading) -
This is done by choosing the connections (ctrl+ left mouse button the
one, and then the other without releasing) and then in the properties
menu (right click while still holding ctrl) choosing bridge.
06. Notice your configurations now reside in the new "bridge connection"
instead of "Local Area Connection".
07. Use: "qemu.exe -L -m 128 -cdrom ..\plan9.iso -boot d -net
nic,model=3Drtl8139 -net tap,ifname=3DTAP_OpenVPN -soundhw sb16 -localtime"
to start plan9, this command can be inserted into a batch file.
08. In the VM (referred to as "guest machine" : In the boot options
choose to boot from the CD.
09. Guest: You can press "return\enter" for the rest of the questions
presented by in the boot sequence - default will suffice.
10. Done, pls read through the tips...
*. Ctrl+Alt to release the mouse from the qemu window
*. Set networking by dhcp (good with the bridge explained above and if
router supplies ips (dhcp)):
"ip/ipconfig"
"ndb/dns -r"
"ip/ping address"
test by pinging your gateway/router by the ip address, then try a site
like www.google.com you know return icmp(respond to ping).
*. When using acme in qemu with live boot iso, notice that file create is
only possible in /tmp, not even in the /usr/glenda (the user that you log
in as) - this will be resolved if you install to HD.
*. Installing to HardDisk: use "qemu-img.exe create plan9hd.img 1024M" to
set a 1gig Virtual HardDisk, use "qemu.exe -L . -m 128 -hda plan9hd.img
-cdrom .\plan9.iso -boot d -net nic,model=3Drtl8139 -net
tap,ifname=3DTAP_OpenVPN -localtime" to boot.
You can install to HD or mount the drive and format it to use as you
wish, plan9 tends to have a very slow install process in VM.
*. If you don't actually know how to use plan9,
http://plan9.bell-labs.com/sys/doc/ has some good info,
plan9.escet.urjc.es/who/nemo/9.intro.pdf will do even better.
*. qemu will emulate sb16 which is supported by plan9, However, I was
unable to verify its functionality.
*. Common Issue: the pc halts in different parts of the network
configuration process: this is due to other VM virtual nics conflicting
with the each other, solutions vary from disabling to deleting the other
VM's nics, worst case plan 9 can run without networking, though to what
use ?
*. Common Issue: High CPU Usage: this is not a problem but the result of
the qemu normal functionality, if a process on the host machine will
require more CPU time, qemu will reduce the load itself - this can be
forced by reducing the process priority using the task manager.
*. Common Issue: "TAP_OpenVPN" always appear to be disconnected: this is
a false readout, ignore it as it has no ill effects.
*. Common Issue: 9P connectivity seems to be broken : firewall, router
firewall...
* Play around with thew res: 800x600x8 and above seems to be more useful
for working with acme...
* for sound see the qemu readme, I never succeeded though it might have
been for lack of trying...
* Less Questions at boot: download plan9.flp and replace plan9.ini that
with the following (use winimage or mount through loopback device):
#**** plan9.ini content starts here *****
*nomp=3D1
*nodumpstack=3D1
partition=3Dnew
mouseport=3Dps2
vgasize=3D800x600x8
monitor=3Dxga
distname=3Dplan9
ether0=3Drtl8139
audio0=3Dsb16 port=3D0x220 irq=3D7 dma=3D5
bootargs=3Dlocal!#S/sdD0/data
bootfile=3DsdD0!cdboot!9pccd.gz
adisk=3D/dev/sdD0/cdboot
cdboot=3Dyes
#**** plan9.ini content ends here *****
this will reduce the questions to one "press return", the cmd line will
be:
"qemu.exe -L -m 128 -fda plan9.flp -cdrom ..\plan9.iso -boot d -net
nic,model=3Drtl8139 -net tap,ifname=3DTAP_OpenVPN -soundhw sb16 -localtime"
this strategy is unnecessary in hd boot.
* Really many things can go wrong, networking issues are common to even
the simplest of tasks so this task should prove to be quite problematic
to many unexperienced users, also qemu itself runs on different machines
with different success rates, it can crash and burn taking your os with
it (whether your running windows or *nix).
- To contrast all the warnings: At this very second I'm running winamp,
notepad, qemu, firefox, add/remove programs, azureus, process explorer,
putty, and stardock on Windows Media Center SP2 AMD Athlon 2600+ GF5600
with build-in sound, three different vm's nics while removing one of them
indirectly through uninstall and having clamwin do a silent scan at the
back...
ToDo:
1. Sound.
2. Boot with no delays.
3. Slow copy to HD.
4. spellcheck, factcheck, sanitycheck, check to self ;-)
I would like someone to test, retest, organize, do the todos, and post
this in the wiki, I think its rather useful since most of the commercial
VMs fail in different ways to run plan9 (vmware, parallels, virtual
pc...)
Ram Kromberg
ramkromberg@mail.com
--_----------=_1174733578222793
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="iso-8859-1"
I made this little guide out of scrambled notes and general boredom, Its pr=
obably full of bugs and won't work at all, Enjoy :-)
benefits in using q=
emu: qemu is GPL open source and free, everything works, sound should also =
work though this remains untested since I don't know how...
A quick =
and dirty guide for running plan 9 under qemu Virtual Machine in windows xp=
(2000+ should be ok, xp sp2 tested too):
Required Skill: Advance : =
Networking experience is mandatory and skillz will also help a lot ;-)
R=
isks for even the uber-coder when using ms-windows (to whatever purpose, bu=
t especially in the context of this guide): Your PC shall blaze in hell's f=
ire fury while shooting its own chips in a direct projectory toward the nea=
rest elderly / infant / your reproductive organs, obviously I don't take re=
sponsibility for whatever damage that may be caused to your computer, you, =
or the nearest elderly / infant in 35m distance from the machine or any con=
nected to it or not.
*** Pls read through at least twice, also unles=
s you know exactly how your network is set, its better you skip the network=
ing parts, or better yet, skip this guide...
01. Download "qemu-0.9.=
0-windows.zip", "openvpn-2.0.9-install.exe" and "plan9.iso.bz".
02. Extr=
act "plan9.iso" and "qemu-0.9.0-windows" to the same directory.
03. Inst=
all "openvpn-2.0.9-install.exe".
04. Rename the new network connection (=
found in Network Connections) to "TAP_OpenVPN".
05. Bridge "TAP_OpenVPN"=
and your WAN/LAN Connection (usually "Local Area Connection", should be en=
abled and has packet changes when downloading) - This is done by choosing t=
he connections (ctrl+ left mouse button the one, and then the other without=
releasing) and then in the properties menu (right click while still holdin=
g ctrl) choosing bridge.
06. Notice your configurations now reside in th=
e new "bridge connection" instead of "Local Area Connection".
07. Use: "=
qemu.exe -L -m 128 -cdrom ..\plan9.iso -boot d -net nic,model=3Drtl8139 -ne=
t tap,ifname=3DTAP_OpenVPN -soundhw sb16 -localtime" to start plan9, this c=
ommand can be inserted into a batch file.
08. In the VM (referred to as =
"guest machine" : In the boot options choose to boot from the CD.
09. Gu=
est: You can press "return\enter" for the rest of the questions presented b=
y in the boot sequence - default will suffice.
10. Done, pls read throug=
h the tips...
*. Ctrl+Alt to release the mouse from the qemu win=
dow
*. Set networking by dhcp (good with the bridge explained above =
and if router supplies ips (dhcp)):
"ip/ipconfig"
"ndb/dns -r"
"ip=
/ping address"
test by pinging your gateway/router by the ip address, t=
hen try a site like www.google.com you know return icmp(respond to ping).
*. When using acme in qemu with live boot iso, notice that file creat=
e is only possible in /tmp, not even in the /usr/glenda (the user that you =
log in as) - this will be resolved if you install to HD.
*. Installi=
ng to HardDisk: use "qemu-img.exe create plan9hd.img 1024M" to set a 1gig V=
irtual HardDisk, use "qemu.exe -L . -m 128 -hda plan9hd.img -cdrom .\plan9.=
iso -boot d -net nic,model=3Drtl8139 -net tap,ifname=3DTAP_OpenVPN -localti=
me" to boot.
You can install to HD or mount the drive and format it to u=
se as you wish, plan9 tends to have a very slow install process in VM.
<=
br>*. If you don't actually know how to use plan9, http://plan9.bell-labs.c=
om/sys/doc/ has some good info, plan9.escet.urjc.es/who/nemo/9.intro.pdf wi=
ll do even better.
*. qemu will emulate sb16 which is supported =
by plan9, However, I was unable to verify its functionality.
*. =
Common Issue: the pc halts in different parts of the network configuration =
process: this is due to other VM virtual nics conflicting with the each oth=
er, solutions vary from disabling to deleting the other VM's nics, worst ca=
se plan 9 can run without networking, though to what use ?
*. Common=
Issue: High CPU Usage: this is not a problem but the result of the qemu no=
rmal functionality, if a process on the host machine will require more CPU =
time, qemu will reduce the load itself - this can be forced by reducing the=
process priority using the task manager.
*. Common Issue: "TAP_Open=
VPN" always appear to be disconnected: this is a false readout, ignore it a=
s it has no ill effects.
*. Common Issue: 9P connectivity seems to b=
e broken : firewall, router firewall...
* Play around with thew res:=
800x600x8 and above seems to be more useful for working with acme...
* for sound see the qemu readme, I never succeeded though it might have b=
een for lack of trying...
* Less Questions at boot: download plan9.f=
lp and replace plan9.ini that with the following (use winimage or mount thr=
ough loopback device):
#**** plan9.ini content starts here *****
=
*nomp=3D1
*nodumpstack=3D1
partition=3Dnew
mouseport=3Dps2
vgas=
ize=3D800x600x8
monitor=3Dxga
distname=3Dplan9
ether0=3Drtl8139
audio0=3Dsb16 port=3D0x220 irq=3D7 dma=3D5
bootargs=3Dlocal!#S/sdD0/dat=
a
bootfile=3DsdD0!cdboot!9pccd.gz
adisk=3D/dev/sdD0/cdboot
cdboot=
=3Dyes
#**** plan9.ini content ends here *****
this will redu=
ce the questions to one "press return", the cmd line will be:
"qemu.exe =
-L -m 128 -fda plan9.flp -cdrom ..\plan9.iso -boot d -net nic,model=3Drtl81=
39 -net tap,ifname=3DTAP_OpenVPN -soundhw sb16 -localtime"
this stra=
tegy is unnecessary in hd boot.
* Really many things can go wrong, n=
etworking issues are common to even the simplest of tasks so this task shou=
ld prove to be quite problematic to many unexperienced users, also qemu its=
elf runs on different machines with different success rates, it can crash a=
nd burn taking your os with it (whether your running windows or *nix).
-=
To contrast all the warnings: At this very second I'm running winamp, note=
pad, qemu, firefox, add/remove programs, azureus, process explorer, putty, =
and stardock on Windows Media Center SP2 AMD Athlon 2600+ GF5600 with build=
-in sound, three different vm's nics while removing one of them indirectly =
through uninstall and having clamwin do a silent scan at the back...
ToDo:
1. Sound.
2. Boot with no delays.
3. Slow copy to =
HD.
4. spellcheck, factcheck, sanitycheck, check to self ;-)
I wo=
uld like someone to test, retest, organize, do the todos, and post th=
is in the wiki, I think its rather useful since most of the commercial VMs =
fail in different ways to run plan9 (vmware, parallels, virtual pc...)
<=
br>Ram Kromberg
ramkromberg@mail.com
--=20