Recent content by AHTOH

  1. A

    [SOLVED] Attach block device as a raw disk to VM

    Ok, marking this thread as Solved, but if somebody has any remarks/suggestions, you are welcome. To resume, I see two solutions: 1) Persistent solution (the drive will be added to the VM config file and automatically attached at the next boot): qm set 102 -scsi1...
  2. A

    [SOLVED] Attach block device as a raw disk to VM

    I have one big LUKS partition with LVM on top of it, with multiple LVs passed to the different VMs. This allows me to decrypt the whole disk at once, instead of decrypting each LV inside the VMs. Moreover, when LVM on top of LUKS works well, the opposite (LUKS on top of LVM) has no big sense...
  3. A

    [SOLVED] Attach block device as a raw disk to VM

    After some testing I discovered that it's not an acceptable solution for me :-( The problem is that when I do "qm set", the property is added to the VM config file. It means that when the next time the VM is started, it will be started with this property. In my case, the VM will not start, since...
  4. A

    [SOLVED] Attach block device as a raw disk to VM

    Thank you, Stoiko. Indeed your procedure is a bit simpler than mine :) EDIT: After some testing I discovered that it's not an acceptable solution for me :-( The problem is that when I do "qm set", the property is added to the VM config file. It means that when the next time the VM is started...
  5. A

    [SOLVED] Attach block device as a raw disk to VM

    Ok, finally got it working, but I'm open to any simpler solution... What I did (Please note that I'm new to Proxmox so I can't guarantee that my manipulations are "right", "safe" or "optimal") : 1) Detect the sockets qemu listening on # qm monitor 101 qm> info chardev which return something...
  6. A

    [SOLVED] Attach block device as a raw disk to VM

    Thanks elmarconi! Seems to work. Any idea on how to run it in a non-interactive mode? (A workaround would be to run it interactively and redirect stdin from a file, but it's ugly). For the record: # qm monitor <vm id> > drive_add 0...
  7. A

    [SOLVED] Attach block device as a raw disk to VM

    Thanks elmarconi, I also found this howto, added the line virtio1: /dev/mapper/gueststorage-intrastorage,size=3500G in the VM config file and it seems to work. Now need to find the way to attach it to the running VM :)
  8. A

    [SOLVED] Attach block device as a raw disk to VM

    Hello, I'm migrating from KVM to Proxmox VE. Two small questions about the storage: 1) How to attach a block device as a raw disk to VM? I have a hdd with LUKS encrypted partition with LVM on it. I would like to pass one of the LVs to my VM as a raw disk. 2) Is it possible to attach the disks...