Monday August 20, 2007 So I did a small program (vdlinux) which corrects these invalid values. It just have to be run on a Linux disk image and then that disk image can be run with LDoms without having to do any fancy tricks (like changing the disk label before and after binding the domain). The utility also applies the workaround for bug 6544963 if this is needed.
# vdlinux bootlinux Incorrect number of partition (0). Updating number of partition to 8. Incorrect vtoc sanity (0). Correcting vtoc sanity (600ddeee). Applying workaround for bug 6544963. Updating label checksum.You only needs to run the program one time on your Linux disk image. So it is best to do it right after you have generated your disk image and unbind the domain. If you execute the program another time, it will just say that the label is correct:
# vdlinux bootlinux Label looks correct.Then you can start your Linux domain as a regular domain without having to care about the label of the Linux disk image.
The vdlinux utility is available here:
The source file can be compiled with the following command:cc -o vdlinux vdlinux.c