Help required with Solaris LDoms

System: SPARC S7-2 Server; 2x8-core CPUs; 128Gb RAM; 2x600Gb HDD.

I am trying to figure out how to run these is multiple Virtual Machines (LDoms). Unfortunately I cannot find a tutorial so am using the Oracle VM Server for SPARC 3.4 Administration Guide; which is frustrating because it assumes a higher level of knowledge than I possess.

So far I have managed to create two client LDoms and installed Solaris 10 on one and Solaris 11 on the other. I was unable to network them; that is my next challenge.

I wish to be able to make snapshots of the LDoms as I go so that I can fall back if I make a mistake; also to be able to duplicate a usable LDom rather than have to start from the beginning each time I want a new virtual system. With this in mind I have used:

ldm list-constraints -x domain > XML_file

to make the configuration file, and I understand that one of

ldm add-domain -i XML_file
ldm set-domain -i XML_file

is required to restore it. The admin guide (mentioned above) does not state whether you should use

ldm remove-domain domain

before restoring the domain.

Can anyone help, either by giving me advice, or by directing me to a proper tutorial?

I also have physical Solaris 10 systems that, if I could, I would virtualise using the ldmp2v utility and run on one of my new systems while I sorted out a newer configuration on the other. I have managed to run it in Collection Phase, but need help in the Preparation and Conversion phases.

I'll be grateful for any help,

Andrew

Hi. I lost the mother board on my Sparc server running Solaris 10 and lost the SP.
the below restored everything. Very easy as long as you have backups.

ldm list-spconfig
factory-default - should be current. ( next startup )

Will not restore primary if spconfig and ldom-db.xml differ

mv /var/opt/ldom-db.xml /var/opt/ldom-db.xml-orig

reboot

ldm init-system -r -i primary-ldomname.xml

ldm add-domain -i ldomname.xml

bind ldomname
ldm start-domain ldomname

That's it. Then ldm add-spconfig latest

Thanks for this. So this is how you restored a working client domain onto a brand-new hardware after the old one croaked?

I don't appear to have an /var/opt/ldom-db.xml . Is it possibly somewhere else on a Solaris 11 system?

Andrew

Hi. Yep Solaris 11 is different. That was just a slight gotcha I noticed for solaris 10. But in answer to your question. Try restoring the guest domain before deleting it, and see what happens. Ldm wont allow you to duplicate existing configs. So a simple delete and add should restore you to where you want.

it should be noted that the virtual disk service, virtual switch configurations and virtual console configs are in the LDM config but not part of an individual LDOM export.

you'll have to do ldm list -l >file.txt to get that.