Vm don't start without disk

riquet78

New Member
Dec 29, 2016
3
0
1
51
Hi,

Yesterday after rebooting my home server, my VM "NAS" don't want to start...

kvm: -drive file=/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9,if=none,id=drive-virtio1,aio=native,cache=none,detect-zeroes=on: could not open disk image /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9: Could not open '/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9': No such file or directory
TASK ERROR: start failed: command '/usr/bin/kvm -id 102 -chardev 'socket,id=qmp,path=/var/run/qemu-server/102.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/102.vnc,x509,password -pidfile /var/run/qemu-server/102.pid -daemonize -smbios 'type=1,uuid=ecd7da93-483c-421b-8b2e-5580cbacb98d' -name NAS -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep -m 8192 -k fr -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:ef3033e33a9' -device 'lsi,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDLUZCKU,if=none,id=drive-scsi1,aio=native,cache=none,detect-zeroes=on' -device 'scsi-block,bus=scsihw0.0,scsi-id=1,drive=drive-scsi1,id=scsi1' -drive 'file=/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7PCF,if=none,id=drive-scsi3,aio=native,cache=none,detect-zeroes=on' -device 'scsi-block,bus=scsihw0.0,scsi-id=3,drive=drive-scsi3,id=scsi3' -drive 'file=/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9,if=none,id=drive-virtio1,aio=native,cache=none,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio1,id=virtio1,bus=pci.0,addr=0xb' -drive 'file=/var/lib/vz/images/102/vm-102-disk-1.qcow2,if=none,id=drive-ide0,format=qcow2,aio=native,cache=none,detect-zeroes=on' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=103' -drive 'file=/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC74UJ,if=none,id=drive-scsi2,aio=native,cache=none,detect-zeroes=on' -device 'scsi-block,bus=scsihw0.0,scsi-id=2,drive=drive-scsi2,id=scsi2' -drive 'if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -netdev 'type=tap,id=net0,ifname=tap102i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=72:A4:A4:95:52:78,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1


I think it's because a disk is not present. (I take it from my office and plug in this evening to try boot VM)
I have added this disk a few days ago to make monthly external backup of my NAS.

I have already reboot VM without any trouble. Why yesterday it doesn't work ?
Is there any config that I can apply to avoid this ?

Here is the result of the qm config :
:/# qm config 102
boot: cdn
bootdisk: ide0
cores: 2
ide0: local:102/vm-102-disk-1.qcow2,format=qcow2,size=16G
ide2: none,media=cdrom
keyboard: fr
memory: 8192
name: NAS
net0: virtio=72:A4:A4:95:52:78,bridge=vmbr0
onboot: 1
ostype: l26
scsi1: /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDLUZCKU,size=2930266584K
scsi2: /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC74UJ,size=2930266584K
scsi3: /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7PCF,size=2930266584K
smbios1: uuid=ecd7da93-483c-421b-8b2e-5580cbacb98d
sockets: 1
startup: order=2,up=30
vga: cirrus
virtio1: /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9,size=2930266584K


Thanks in advance.
 
Reboot and stop/start is something different. You cannot start a VM if disks are missing. So please add the missing disk, or remove the disk from the VM configuration.
 
Hi,

can you check if the disk is availible?
Code:
ls -hal /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9
 
I know the disk is not available, because it is not plugged in server :rolleyes:

Is there any tip to manage "hot plug" disk with VM in Proxmox ?
 
you can uncommand the line in the config.

#virtio1: /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WCC4NDXC7VJ9,size=2930266584K
 
I Confirm : all is fine when disk is plugged :)

Instead of pass disk into VM, i think mount disk into proxmox host and share it with nfs to nas VM will be more appropriate...

Do you know how to auto mount nfs share with hot swap SATA drive into proxmox ?
 

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!