Assigner un disque dur physique à une VM

De $1

  

 

How can I assign a physical disk to a VM?

You don't have to do anything at host level (i.e. not add to fstab or anything), just set is as available directly to the KVM guest:

qm set <vmid> -ide# /dev/sdb

Or:

qm set <vmid> -ide# /dev/disk/by-id/[your disk ID]

...since having the drive letter change (should you add a drive) might have unintended consequences.

Also see /etc/qemu-server/<vmid>.conf if you want to add it editing the conf file by hand (i.e. adding ide1: /dev/sdb2). After that you can run the VM as usual, and you will have the new storage device available inside it. Beware that you can't assign it to more than one running VM if the filesystem is not designed for such scenario.

 

Exemple :

 

root@proxmox999:~# qm set 100 -sata1 /dev/sdb

root@proxmox999:~# qm set 100 -sata2 /dev/sdc

root@proxmox999:~# qm set 100 -sata3 /dev/sdd

root@proxmox999:~# qm set 100 -sata4 /dev/sde
 

 

recherche01_small04.pngSources 

http://forum.proxmox.com/threads/4458-How-can-I-assign-a-physical-disk-to-a-VM

 

 

 howto05_small.pngVous en pensez quoi ?


 

 

 

 

 

Cette page n'a encore aucun contenu. Enrichissez Yakakliker en y contribuant vous aussi.

 
Images (0)
 
Commentaires (0)
Vous devez être connecté pour poster un commentaire.