physical drive on VM

  • Thread starter Thread starter keats
  • Start date Start date
K

keats

Guest
Hello

I try actualy to have my second physical drive on a virtual machin in ubuntu(in kvm) but I have a big probleme

I add my physical drive in the VM with this command
Code:
qm set 108 --ide1 /dev/sdb1
The web interface confirm the command work fine but when i go in my vm i can't find disk

The command fdisk -l as no result like they have no virtual hard drive.

this is my config file for this VM (/etc/pve/qemu-server/108.conf)

Code:
bootdisk: ide0
cores: 1
ide0: local:108/vm-108-disk-1.raw
ide1: /dev/sdb1
ide2: none,media=cdrom
memory: 512
name: nfs
net0: rtl8139=62:F3:1E:D7:D6:A5,bridge=vmbr0
onboot: 1
ostype: l26
sockets: 1

If anyone have an idea ?
ps : sorry for my english
 
did you stop your VM and start again to apply the disk?
 
Yes I reboot my VM. that's the first thinks i have do ;)
I found one of my error
To list my disk the command is sudo fdisk -l
Actualy my vm is in backup so i wait the end (100Go).
 
I compare the answer for "sudo fdisk -l" before and after add the "qm set 108 --ide1 /dev/sdb1"
They have no change.
 
My probleme is resolv and it's only due to mystake

Thanks for help