virt-installと対話したい


古い情報では、何もオプションをつけなければ対話になるとあったが、対話にはなりません。

% virt-install

そこで、manを読んでみると

% man virt-install
(中略)
       --prompt
         Specifically enable prompting for required information. Default prompting is off (as of
         virtinst 0.400.0)

% virt-install --version
0.600.4

どうやら0.400.0以降は対話で実行するには --prompt オプションをつけて実行すればいいみたいです。

% virt-install --prompt 
What is the name of your virtual machine? 
omochikaeri
How much RAM should be allocated (in megabytes)? 
2048
What would you like to use as the disk (file path)?

いい感じ。