Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # Install if lshw not found
  2. apt-get update
  3. apt install lshw
  4.  
  5. # Check disk info
  6. lshw -class disk -class storage
  7.  
  8. # Do this again for every disk
  9. qm set <disk_id> -virtio<number from 2 to 999, remember that you cannot use 1!> /dev/disk/by-id/<disk_long_id>
  10. # (this prints: update VM <disk_id> -virtio2 /dev/disk/by-id/<disk_long_id>)
  11.  
  12. # Check if it did work
  13. cat /etc/pve/qemu-server/<disk_id>.conf
  14.  
  15. # (output is something like this:
  16. # virtio2: /dev/disk/by-id/<disk_long_id>,size=1953514584K
  17. # virtio3: /dev/disk/by-id/<disk_long_id>,size=2930266584K
  18. # virtio4: /dev/disk/by-id/<disk_long_id>,size=2930266584K
  19. # )
  20.  
  21. # As always when you change the hardware for a KVM guest, do a poweroff and a start (reboot is not enough).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement