LPI
305-300 · Question #59
Which of the following KVM parameters is identical to the KVM parameter -hdb file.img?
The correct answer is D. -drive file=file.img,index=1,media=disk,if=ide. In QEMU/KVM, the legacy parameter -hdb file.img attaches a disk image as the primary IDE slave device. According to QEMU documentation, this corresponds to an IDE device with index 1, media type disk, and interface IDE. The modern equivalent using the -drive syntax is: -drive…
Virtualization
Question
Which of the following KVM parameters is identical to the KVM parameter -hdb file.img?
Options
- A-drive bus=ide1,type=slave,image=file.img
- B-drive type=loop,src=file.img,dst=disk:hdb
- C-drive image=file.img,if=ide,device=hdb
- D-drive file=file.img,index=1,media=disk,if=ide
- E-drive bus=hd,busid=b,src=file.img
How the community answered
(26 responses)- A8% (2)
- B15% (4)
- C4% (1)
- D69% (18)
- E4% (1)
Explanation
In QEMU/KVM, the legacy parameter -hdb file.img attaches a disk image as the primary IDE slave device. According to QEMU documentation, this corresponds to an IDE device with index 1, media type disk, and interface IDE. The modern equivalent using the -drive syntax is: -drive file=file.img,index=1,media=disk,if=ide
Topics
#KVM#disk parameters#virtual drives#QEMU
Community Discussion
No community discussion yet for this question.