On Feb 15, 15:25, Matthias Petermann wrote: } } I am using file-backed vnds as storage for my Xen domains. In each of } the vnds there is a GPT with the corresponding partitions. } } Is there an easy way to access the GPT and the partitions from outside, } i.e. preferably from the host to the image file? I would like to } implement a kind of thin-provisioning, where I copy a base image as a } sparse file over and over again, and then change a few small things in } it before the first start of the domain - like the fixed IP address.
Did you try it? i386devel: {19} ls -agl disk -rw-r--r-- 1 root wheel 10485760 Dec 11 19:14 disk i386devel: {20} gpt show disk start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 20413 Unused 20447 32 Sec GPT table 20479 1 Sec GPT header i386devel: {21} gpt add disk disk: Partition 1 added: 49f48d5a-b10e-11dc-b99b-0019d1879648 34 20413 i386devel: {22} vnconfig vnd0 disk i386devel: {23} tail /var/log/messages Feb 15 09:34:13 i386devel /netbsd: [ 8774614.0138168] vnd0: GPT GUID: 72d09e6e-60f0-457b-a9a0-5ae67e18b044 Feb 15 09:34:13 i386devel /netbsd: [ 8774614.0138168] dk2 at vnd0: "fc24628d-f3ef-443e-9928-2886af3b495b", 20413 blocks at 34, type: ffs }-- End of excerpt from Matthias Petermann