LPI
305-300 · Question #59
305-300 Question #59: Real Exam Question with Answer & Explanation
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 fil
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
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
Community Discussion
No community discussion yet for this question.