Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#314827 - 09/10/2008 04:10 Linux KVM HOWTO
jcm
new poster

Registered: 27/08/2005
Posts: 49
Hi folks,

Just a quick mention that Linux KVM (free virtualization stack) now supports both serial and USB pass through. Consequently, one is able to use the Rio tools within a Windows 98/2K/whatever guest. In order to do this you will either need a *very* recent libvirt and virt-manager that supports setting these options, or you can just edit the following file (example with serial):

/etc/libvirt/qemu/<yourvirtualmachine>.xml

Add the following:

<serial type='dev'>
<source path='/dev/ttyS0'/>
<target port='1'/>
</serial>

This will pass through "COM1" to Linux native first serial port (/dev/ttyS0) from which you can then talk to the empeg via Hyperterminal (to confirm settings) and then Rio tools.

Just in case anyone else wants to try it.

Jon.

Top
#314879 - 10/10/2008 17:16 Re: Linux KVM HOWTO [Re: jcm]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Cool.

I've been using VMware for years with a Win98 install + empeg tools, but it's nice to see a slightly more free solution emerging!

Cheers

Top
#314882 - 10/10/2008 19:55 Re: Linux KVM HOWTO [Re: mlord]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
Out of interest - what do you need Windows for?
_________________________
LittleBlueThing Running twin 30's

Top
#314885 - 10/10/2008 22:50 Re: Linux KVM HOWTO [Re: mlord]
Phoenix42
veteran

Registered: 21/03/2002
Posts: 1424
Loc: MA but Irish born
VMware have had free products for three years now, but it is always good to have choice and competition.

Top
#314890 - 11/10/2008 04:49 Re: Linux KVM HOWTO [Re: Phoenix42]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
I don't think Mark was talking about the financial cost wink
_________________________
Remind me to change my signature to something more interesting someday

Top
#314893 - 11/10/2008 15:38 Re: Linux KVM HOWTO [Re: LittleBlueThing]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Originally Posted By: LittleBlueThing
Out of interest - what do you need Windows for?


Need? Nothing.

Want? Emplode. (Jemplode is unreliable here, and I haven't updated my own empsync scripts for ages now..).

Cheers

Top
#314903 - 12/10/2008 08:09 Re: Linux KVM HOWTO [Re: mlord]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
Must.

Fix.

Jemplode.

(well, get a linux build environment up so I can at least *start* to look at it again). It works fine for syncing for me but it is fragile and at some point it's going to stop building.
_________________________
LittleBlueThing Running twin 30's

Top
#314914 - 12/10/2008 10:48 Re: Linux KVM HOWTO [Re: LittleBlueThing]
jcm
new poster

Registered: 27/08/2005
Posts: 49
I'm using a temporary Windows VM for testing upgrade image files, since I'm not aware of a Linux tool for e.g. applying builder images. I know how to simply reflash the kernel, but AFAIK builder images require the Windows tools - I'd love to hear otherwise!

KVM differs from VMWare in that it's stock Linux without needing to installing any third party software - VMWare isn't free either. The Player is free, but not the tools needed to make an image.

Jon.

Top
#314917 - 12/10/2008 11:02 Re: Linux KVM HOWTO [Re: jcm]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Originally Posted By: jcm
I'm using a temporary Windows VM for testing upgrade image files, since I'm not aware of a Linux tool for e.g. applying builder images. I know how to simply reflash the kernel, but AFAIK builder images require the Windows tools - I'd love to hear otherwise!

Mark already made one that works over ethernet.

Originally Posted By: jcm
VMWare isn't free either. The Player is free, but not the tools needed to make an image.

VMware Server and ESXi are both free. VMware Server has been free for a very long time.

Top
#314923 - 12/10/2008 13:25 Re: Linux KVM HOWTO [Re: tman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Originally Posted By: tman
Originally Posted By: jcm
I'm using a temporary Windows VM for testing upgrade image files, since I'm not aware of a Linux tool for e.g. applying builder images. I know how to simply reflash the kernel, but AFAIK builder images require the Windows tools - I'd love to hear otherwise!

Mark already made one that works over ethernet.


It's called upgrader.c, and is available somewhere on this BBS (use the Search function).

Cheers

Top
#314941 - 12/10/2008 18:42 Re: Linux KVM HOWTO [Re: mlord]
jcm
new poster

Registered: 27/08/2005
Posts: 49
Ah, but VMWare server and ESXi are both thin virtualization layers. They're not the same as the "desktop" version, or "workstation" or whatever the heck. And they require kernel shims. Without getting ideological, KVM is a very nice alternative. I use it exclusively now in place of VMWare - though I'll be honest, it's not quite as good at emulating platform bugs as VMWare.

The ethernet upgrade option is lovely, once you have working ethernet on the device. But if you've got a brand new disk, you've essentially got to go for the Windows option. But now Mark has posted his instructions, what I can do is:

*). Make sure this 250GB disk works ok this time.
*). Find some time to recycle the old 10GB disk.
*). Write a shell script to add to the manual "partition" and "format" instructions someone else wrote up. Then you can load the ramdisk and kernel into flash with download and run a shell script and not need the Windows tools at all.

Jon.

Top
#314947 - 12/10/2008 19:08 Re: Linux KVM HOWTO [Re: jcm]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Originally Posted By: jcm
Ah, but VMWare server and ESXi are both thin virtualization layers.

ESXi is. VMware Server isn't. You install VMware Server the same way you'd install VMware Workstation. The main difference is that Server is designed to run everything in the background as a daemon/service.

Originally Posted By: jcm
The ethernet upgrade option is lovely, once you have working ethernet on the device. But if you've got a brand new disk, you've essentially got to go for the Windows option. But now Mark has posted his instructions, what I can do is:

There is already an official tool to use. Use upgclient from emptool. The advantage of Mark's utility is that it is significantly quicker.

Top