Moving a NVME from one VM to a new one

dcarnelutti

New Member
Feb 25, 2023
6
1
3
So, I created a new VM and I want to passthrough a NVME I had on a previous VM to the new one.

I detached the NVME from the old VM and I'm trying to attach it to the new one. However, I get an error "volume does not exist".

The disk exists as you can see here. Any advice as to why is this happening?

lrwxrwxrwx 1 0 0 10 May 2 20:32 dm-uuid-LVM-gz4dnT1hRnLg3UqmSMUuiyRaCPzn8sWJanCK2YX7CqmyYc1Bbd3BPiU2ZH9cJ0b5 -> ../../dm-0
lrwxrwxrwx 1 0 0 10 May 2 20:32 dm-uuid-LVM-gz4dnT1hRnLg3UqmSMUuiyRaCPzn8sWJebdHkxVbwQlNwQWBVDJ9Z7lckRAJYJ6n -> ../../dm-7
lrwxrwxrwx 1 0 0 10 May 2 20:32 dm-uuid-LVM-gz4dnT1hRnLg3UqmSMUuiyRaCPzn8sWJI9MJgpbPOB2EfEVfBuZtmNa6IVYz0Gt7 -> ../../dm-1
lrwxrwxrwx 1 0 0 10 May 2 20:32 dm-uuid-LVM-gz4dnT1hRnLg3UqmSMUuiyRaCPzn8sWJLhoJM0y3eZ7W6o92BnKHhUQzRAARruDE -> ../../dm-9
lrwxrwxrwx 1 0 0 10 May 2 20:32 dm-uuid-LVM-gz4dnT1hRnLg3UqmSMUuiyRaCPzn8sWJsEY9CrWOKx4KoR0dGIw1Ct01YzXmlBYL -> ../../dm-8
lrwxrwxrwx 1 0 0 10 May 2 20:32 dm-uuid-LVM-gz4dnT1hRnLg3UqmSMUuiyRaCPzn8sWJtVeACwwtkzWLnrIFcVqdueZXy6xTE1ss -> ../../dm-6
lrwxrwxrwx 1 0 0 10 May 4 14:00 lvm-pv-uuid-7sEAcy-ou8O-pdDY-Jdsa-Lbhs-WJ26-bF23TV -> ../../sdc3
lrwxrwxrwx 1 0 0 9 May 19 10:52 lvm-pv-uuid-ICyyZb-POmm-f827-7Qws-HPuW-belR-rW80nu -> ../../sdb
lrwxrwxrwx 1 0 0 13 May 2 20:32 nvme-CT1000P3SSD8_2314E6C52079 -> ../../nvme0n1
lrwxrwxrwx 1 0 0 13 May 2 20:32 nvme-eui.6479a77800000054 -> ../../nvme0n1
lrwxrwxrwx 1 0 0 9 May 2 20:32 wwn-0x5000c500e632b7b1 -> ../../sda
lrwxrwxrwx 1 0 0 10 May 2 20:32 wwn-0x5000c500e632b7b1-part1 -> ../../sda1
lrwxrwxrwx 1 0 0 10 May 2 20:32 wwn-0x5000c500e632b7b1-part2 -> ../../sda2
lrwxrwxrwx 1 0 0 9 May 2 20:32 wwn-0x5000c500e632c923 -> ../../sdd
lrwxrwxrwx 1 0 0 10 May 2 20:32 wwn-0x5000c500e632c923-part1 -> ../../sdd1
lrwxrwxrwx 1 0 0 10 May 2 20:32 wwn-0x5000c500e632c923-part2 -> ../../sdd2
lrwxrwxrwx 1 0 0 9 May 2 20:32 wwn-0x5000c500e6340b71 -> ../../sde
lrwxrwxrwx 1 0 0 10 May 2 20:32 wwn-0x5000c500e6340b71-part1 -> ../../sde1
lrwxrwxrwx 1 0 0 10 May 2 20:32 wwn-0x5000c500e6340b71-part2 -> ../../sde2
root@dckn:~# qm set 6000 -scsi1 /dev/disk-by-id/nvme-CT1000P3SSD8_2314E6C52079
update VM 6000: -scsi1 /dev/disk-by-id/nvme-CT1000P3SSD8_2314E6C52079
volume /dev/disk-by-id/nvme-CT1000P3SSD8_2314E6C52079 does not exist
root@dckn:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 2G 0 part
└─sda2 8:2 0 3.6T 0 part
sdb 8:16 0 953.9G 0 disk
sdc 8:32 0 223.6G 0 disk
├─sdc1 8:33 0 1007K 0 part
├─sdc2 8:34 0 512M 0 part
└─sdc3 8:35 0 223.1G 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
├─pve-root 253:1 0 65.8G 0 lvm /
├─pve-data_tmeta 253:2 0 1.3G 0 lvm
│ └─pve-data-tpool 253:4 0 130.6G 0 lvm
│ ├─pve-data 253:5 0 130.6G 1 lvm
│ ├─pve-vm--100--disk--0 253:6 0 50G 0 lvm
│ ├─pve-vm--1000--disk--0 253:7 0 20G 0 lvm
│ ├─pve-vm--2001--disk--0 253:8 0 20G 0 lvm
│ └─pve-vm--2002--disk--0 253:9 0 32G 0 lvm
└─pve-data_tdata 253:3 0 130.6G 0 lvm
└─pve-data-tpool 253:4 0 130.6G 0 lvm
├─pve-data 253:5 0 130.6G 1 lvm
├─pve-vm--100--disk--0 253:6 0 50G 0 lvm
├─pve-vm--1000--disk--0 253:7 0 20G 0 lvm
├─pve-vm--2001--disk--0 253:8 0 20G 0 lvm
└─pve-vm--2002--disk--0 253:9 0 32G 0 lvm
sdd 8:48 0 3.6T 0 disk
├─sdd1 8:49 0 2G 0 part
└─sdd2 8:50 0 3.6T 0 part
sde 8:64 0 3.6T 0 disk
├─sde1 8:65 0 2G 0 part
└─sde2 8:66 0 3.6T 0 part
nvme0n1 259:0 0 931.5G 0 disk
 
What does ls /dev/disk-by-id/nvme* say on the node?
And what does ls /dev/disk-by-uuid/nvme* say?
 
root@dckn:~# ls /dev/disk-by-id/nvme*
ls: cannot access '/dev/disk-by-id/nvme*': No such file or directory
root@dckn:~# ls /dev/disk-by-uuid/nvme*
ls: cannot access '/dev/disk-by-uuid/nvme*': No such file or directory
root@dckn:~#

root@dckn:~# ls -n /dev/disk/by-id/nvme*
lrwxrwxrwx 1 0 0 13 May 2 20:32 /dev/disk/by-id/nvme-CT1000P3SSD8_2314E6C52079 -> ../../nvme0n1
lrwxrwxrwx 1 0 0 13 May 2 20:32 /dev/disk/by-id/nvme-eui.6479a77800000054 -> ../../nvme0n1
root@dckn:~#

This is weird

more info
root@dckn:~# blkid | grep -i nvm
/dev/nvme0n1: UUID="26f40a0f-9b1a-4943-a35b-07104b24b01e" BLOCK_SIZE="4096" TYPE="ext4"
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!