Rich Reynolds wrote: > Hi all - > i was just thinking, scary, is there a clean easy way to rewrap a domu > and boot it as the dom0??? thought I would ping the universe it see if > I was just being stupidly hopeful, before i went off and invested a > bunch of time and effort for a zero gain..
It can be done... But I wouldn't call it clean. I'll ignore the zfs root case since I haven't tried to move one of those in the past. The easiest way would be to have a domU use an entire disk so you don't have to dd the disk around. You need to fix up the disk dev links, which can be tricky. i.e. the links in /dev/dsk and /dev/rdsk need to point to the new device path. If you change your disk (e.g. from c0t0d0s0 to c3t0d0s0), you will also have to modify /etc/vfstab for at least root and swap. You also need to modify bootpath in /boot/solaris/bootenv.rc e.g. setprop bootpath /p...@0,0/pci1022,7...@11/pci1000,3...@4/s...@3,0:a If you get that right, you will be able to boot up in metal or dom0 (assuming you have grub installed and a proper menu.lst). It's not that hard, but can be pretty error prone. I've done it many times in the past setting up a disk to boot in a new system, or when you switch from ide to a sata driver, etc. One trick is to boot into the failsafe, and use the /dev/dsk and /dev/rdsk links on the disk your trying to boot. Saves on the typos :-). i.e. when booted from the failsafe which is a ramdisk mount the disk @ /a and do something like the following. # rm /a/dev/dsk /a/dev/rdsk # cd / # tar cpf - dev/dsk | (cd /a;tar xpf - ) # tar cpf - dev/rdsk | (cd /a;tar xpf - ) then you just need to fix your NIC and you should be all set. MRJ _______________________________________________ xen-discuss mailing list [email protected]
