I have a guest which uses a zfs-local volume. On that guest, is a partition 3 partitions, one of them is an LVM partition/volume group. And that volume group contains several volumes, one of them I want to modify OUTSIDE of the virtual. I basically need to inject some files before the first boot of that system.
On any other system, a vgscan or vgdisplay would bring back the volumes and you could then operate on those volume groups/lvm volumes. I can't quite figure out the magic to get this work with the proxmox config. This is probably less about Proxmox than it is LVM on top of ZFS... But my Internet searches have turned up nothing, so I'm hoping this is something someone here has run across.
I can easily mount the "dos" partition of this image. What I think is the relevant config below:
vm config:
relevant zfs targets:
extract of
On any other system, a vgscan or vgdisplay would bring back the volumes and you could then operate on those volume groups/lvm volumes. I can't quite figure out the magic to get this work with the proxmox config. This is probably less about Proxmox than it is LVM on top of ZFS... But my Internet searches have turned up nothing, so I'm hoping this is something someone here has run across.
I can easily mount the "dos" partition of this image. What I think is the relevant config below:
vm config:
Code:
balloon: 0
boot: c
bootdisk: scsi0
cores: 2
ide2: none,media=cdrom
memory: 4096
name: <redacted>
net0: virtio=<redacted>,bridge=vmbr0,tag=30
net1: virtio=<redacted>,bridge=vmbr0,tag=10
net2: virtio=<redacted>,bridge=vmbr0,tag=20
net3: virtio=<redacted>,bridge=vmbr0,link_down=1
numa: 0
ostype: l26
scsi0: local-zfs:vm-920-disk-0,discard=on,size=54G,ssd=1
scsihw: virtio-scsi-pci
serial0: socket
smbios1: uuid=<redacted>
sockets: 1
vmgenid: <redacted>
relevant zfs targets:
Code:
root@pve:~# ls -l /dev/zvol/rpool/data/vm-920*
lrwxrwxrwx 1 root root 14 Jun 13 15:40 /dev/zvol/rpool/data/vm-920-disk-0 -> ../../../zd896
lrwxrwxrwx 1 root root 16 Jun 13 15:40 /dev/zvol/rpool/data/vm-920-disk-0-part1 -> ../../../zd896p1
lrwxrwxrwx 1 root root 16 Jun 13 15:40 /dev/zvol/rpool/data/vm-920-disk-0-part2 -> ../../../zd896p2
lrwxrwxrwx 1 root root 16 Jun 13 15:40 /dev/zvol/rpool/data/vm-920-disk-0-part3 -> ../../../zd896p3
extract of
fdisk -l /dev/zvol/rpool/data/vm-920-disk-0
Code:
root@pve:~# fdisk -l /dev/zvol/rpool/data/vm-920-disk-0
Disk /dev/zvol/rpool/data/vm-920-disk-0: 54 GiB, 57982058496 bytes, 113246208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 8192 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/zvol/rpool/data/vm-920-disk-0p1 * 1 409599 409599 200M b W95 FAT32
/dev/zvol/rpool/data/vm-920-disk-0p2 409600 442367 32768 16M 82 Linux swap / Solaris
/dev/zvol/rpool/data/vm-920-disk-0p3 442368 113245199 112802832 53.8G 8e Linux LVM
Partition 1 does not start on physical sector boundary.
root@pve:~#