A better solution to mount a boot disk from a file is to create another domain and assign that boot disk to this domain as a second disk (i.e you will not boot on this disk). Once this other domain is booted, you can access your disk and do whatever you want.
alex. Liam Merwick wrote: > Vic Engle wrote: >> If I export a file from the control domain to a guest for use as a boot disk >> is it possible to lofi mount that file in the control domain when the guest >> is shutdown? I'm thinking about cases where a config change in the guest >> prevents booting; the sort of thing you would traditionally boot from CD to >> correct. >> > > By default, no - but it is possible. > > If a disk image (file) is installed so that the root partition starts on > cylinder 0 then you can use lofi and mount the file. However the Solaris > installer puts swap on cylinder 0 by default. > > There is a long standing bug logged against lofi to enhance it > to allow multiple slices be mounted or slices at a non-zero offset. > 4765069 RFE: lofiadm should be VTOC aware > > >> Also, can the exported file be copied and used to boot another guest? > > Yes, once the guest using the file is stopped and unbound. > > -- Liam > _______________________________________________ > ldoms-discuss mailing list > ldoms-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss
