Autodétection du format de disque Qemu

Autodétection du format de disque Qemu.
1) Lancement de Puppy Tahr avec Qemu :

[~/VIRTUALISATION/Debian.reseau] ➔ qemu-system-i386 -enable-kvm -k fr -m 1024 -sdl -vga std -hda station01/vhda.img -net nic,macaddr=`source genmac.sh` -net tap,ifname=tap0,script=no -no-quit
WARNING: Image format was not specified for 'station01/vhda.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.

2) Solution pour éviter l’avertissement :
Modifier le paramètre ‘-drive’ :

 -drive file=station01/vhda.img,format=raw,index=0,media=disk

Soit :

[~/VIRTUALISATION/Debian.reseau] ➔ qemu-system-i386 -enable-kvm -k fr -m 1024 -sdl -vga std -drive file=station01/vhda.img,format=raw,index=0,media=disk -net nic,macaddr=`source genmac.sh` -net tap,ifname=tap0,script=no -no-quit

3) Lien :
http://zonalivre.org/2015/11/30/qemu-disk-format-autodetection/

Comments are closed, but trackbacks and pingbacks are open.