Another approach I've had good luck with:

CMS format the V-DISK, so that Linux can see it the first time.
Boot Linux with attached V-DISK, and make sure Linux can see it.  In
2.2, that means putting it into the parmline; in 2.4 you can add it
dynamically.

Once in linux, mkswap /dev/dasda or whatever--just use the whole device.

Shut down Linux and IPL CMS.  Do *NOT* log off.

Use CMSDDR (available from the library at www.vm.ibm.com) to dump the
disk image to a CMS file.

In the Linux guest's PROFILE exec, use CMSDDR to restore the V-disk from
the CMS file.

IPL Linux with swap on /dev/dasda or wherever.

Now, where this gets nice is if you're running a virtual penguin farm,
you can save the "Empty Swap File" image on a common machine, LINK its
disks during the CMS IPL, and rewrite the swap signature onto your
minidisk at boot.

Adam

Reply via email to