問題 lpic-304-200-topic-1-question-11・第3版

従来のQEMU/KVMのIDEの指定-hdb file.imgを-driveの形式へ置き換える。対応する指定はどれか。

  1. A -drive bus=ide1,type=slave,image=file.img
  2. B -drive image=file.img,if=ide,device=hdb
  3. C -drive bus=hd,busid=b,src=file.img
  4. D -drive file=file.img,index=1,media=disk,if=ide
  5. E -drive type=loop,src=file.img,dst=disk:hdb

正解:D

理由

IDEのindex=1、media=disk、file=file.imgを指定する。機器の種類、番号、画像ファイルのパラメーターをそろえる必要がある。

選択肢ごとの説明

A. -drive bus=ide1,type=slave,image=file.img

bus・type・imageというこの組合せは標準の同等の指定ではない。

B. -drive image=file.img,if=ide,device=hdb

fileではなくimageを使い、device=hdbというこの同等の構文ではない。

C. -drive bus=hd,busid=b,src=file.img

busid・srcというこの同等の構文ではない。

D. -drive file=file.img,index=1,media=disk,if=ide

IDEディスクとしてfile.imgを使い、0から数えるindex=1で2台目を指定する。

E. -drive type=loop,src=file.img,dst=disk:hdb

loop・src・dstというこの同等の構文ではない。

参考資料

お問い合わせ

演習する →