Hi Thanks.
$ virsh
looks interesting, its help says it's similar to
$ xm
as a tool to manage the VM running beneath.
I've been using xm as I tend to avoid GUI -- just a personal preference.
My question, however, is from the bottom looking up.
Not too long ago, one of my VMs wouldn't boot, got caught in an FSCK repair loop. Since the disks are virtual, the answer was to reboot the mother machine, do the FSCK-repair on the real disk, then all the VMs were restarted and were fine.
That got me thinking, say I have a VM, let's call it vm-foobar
which can be running under XEN on some number of machines: Moe, Larry, Curly.
(As we have many architectures {some more decrepit than others} in our heterogeneous shop, we're thinking of using VMs to better enable moving important functions from one machine to another for any disaster or maintenance.)
So when I get onto my VM, say
$ ssh
fubar@foobar.test.lab
is there a way I can determine which host: (Moe, Larry, or Curly) I'm running on?
virsh doesn't run in the VM, it's only available on the mother ship.
/proc/cpuinfo gives me good information, just not what I'm looking for.
Thanks to all for all help received thus far.
-Doug.