Need help attaching Sata Drive

Abstract3000

Member
Feb 21, 2019
23
1
8
44
I have been trying to follow this wiki https://pve.proxmox.com/wiki/Physical_disk_to_kvm with no luck whatsoever, upon finishing it completely Toasts my VM and requires an entire new install.

l
Code:
shw -class disk -class storage

     *-disk
          description: ATA Disk
          product: Samsung SSD 860
          physical id: 0.0.0
          bus info: scsi@0:0.0.0
          logical name: /dev/sda
          version: 2B6Q
          serial: S3Z8NB0M125631B
          size: 931GiB (1TB)
          configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512

Verification of the Serial # needed
Code:
ls -l /dev/disk/by-id/

lrwxrwxrwx 1 root root  9 Mar  9 18:10 ata-Samsung_SSD_860_EVO_1TB_S3Z8NB0M125631B -> ../../sda

I then use this command
Code:
qm set 100 -virtio2 /dev/disk/by-id/ata-Samsung_SSD_860_EVO_1TB_S3Z8NB0M125631B

This is the VM configuration verifying its in there, as well it shows up in the GUI
Code:
cat /etc/pve/qemu-server/100.conf
balloon: 4096
bios: ovmf
boot: dcn
bootdisk: virtio0
cores: 4
cpu: host
efidisk0: local:100/vm-100-disk-1.qcow2,size=128K
ide2: local:iso/en_windows_10.iso,media=cdrom
machine: q35
memory: 12288
net0: virtio=F2:F6:0A:EB:41:C9,bridge=vmbr0
numa: 0
ostype: win10
sata0: local:iso/virtio-win-0.1.141.iso,media=cdrom,size=309208K
scsihw: virtio-scsi-pci
smbios1: uuid=185230cc-6018-4d8f-91ae-1750960397dc
sockets: 1
usb0: host=5-3
usb1: host=5-4.1
usb2: host=4-2,usb3=1
virtio0: local:100/vm-100-disk-0.qcow2,cache=writeback,size=128G
virtio2: /dev/disk/by-id/ata-Samsung_SSD_860_EVO_1TB_S3Z8NB0M125631B,size=976762584K
vmgenid: 9b45763d-6900-4814-b4ae-4453b38bf713


After applying this the VM will no longer boot just a Black screen, if I detach the Hard disk from the GUI Removing it, I still can no longer boot into the VM, The only way to get back is to completely Remove the VM and do a new install.

I have also tried:
Code:
qm set 100 -scsi1 /dev/disk/by-id/ata-Samsung_SSD_860_EVO_1TB_S3Z8NB0M125631B
qm set 100 -sata1 /dev/disk/by-id/ata-Samsung_SSD_860_EVO_1TB_S3Z8NB0M125631B
Any help would be appreciated, I am simply trying to add the HDD for additional space on a Win10 VM
 
Last edited:
Any help would be appreciated, I am simply trying to add the HDD for additional space on a Win10 VM
Yes, add the disk normaly as storage to proxmox and give some space the the vm. With this you are able to give other vm's space from this disk too.
https://pve.proxmox.com/wiki/Storage
LVM-Thin is the recommendation for single server. But choose what you like.
 
  • Like
Reactions: Abstract3000
Yes, add the disk normaly as storage to proxmox and give some space the the vm. With this you are able to give other vm's space from this disk too.
https://pve.proxmox.com/wiki/Storage
LVM-Thin is the recommendation for single server. But choose what you like.

Thank you for the Suggestion, that pointed me in the correct direction :) I didn't realize that you needed to format the Drive first via the command line then add it into the mix via the datacenter, Upon doing that I was able to add the disk as a Sata device and use Disk Manager in Windows to format and add the space to the VM :)
 
  • Like
Reactions: fireon
Upon doing that I was able to add the disk as a Sata device and use Disk Manager in Windows to format and add the space to the VM
Use SCSI instead. This should be the default. Better performance an much more stable then the virtual sata. But you have to install the drivers from the virtio ISO.
 
  • Like
Reactions: Abstract3000

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!