Fix qemu options so a full install really works
This commit is contained in:
parent
b693071019
commit
2fd0460dc1
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -1,9 +1,2 @@
|
||||||
fs
|
tmp-*
|
||||||
fs-*
|
|
||||||
iso
|
|
||||||
iso-*
|
|
||||||
mnt
|
|
||||||
mnt-*
|
|
||||||
*.iso
|
*.iso
|
||||||
disk.img
|
|
||||||
disk.img-*
|
|
||||||
|
|
16
run.sh
16
run.sh
|
@ -46,20 +46,28 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
cfg=""
|
cfg=""
|
||||||
|
|
||||||
|
cfg+=" -drive file=${DISK},media=disk,format=raw,if=virtio"
|
||||||
|
cfg+=" -enable-kvm"
|
||||||
|
cfg+=" -m 2048"
|
||||||
|
cfg+=" -usbdevice tablet"
|
||||||
|
|
||||||
|
cfg+=" -vga vmware"
|
||||||
|
#cfg+=" -vnc :0"
|
||||||
|
|
||||||
case $boot in
|
case $boot in
|
||||||
c)
|
c)
|
||||||
echo "booting CD with empty disk"
|
echo "booting CD with empty disk"
|
||||||
rm -f ${DISK}
|
rm -f ${DISK}
|
||||||
dd if=/dev/zero "of=${DISK}" bs=1M count=0 seek=10240
|
dd if=/dev/zero "of=${DISK}" bs=1M count=0 seek=10240
|
||||||
cfg+=" -drive file=${iso},index=1,media=cdrom"
|
cfg+=" -drive file=${iso},media=cdrom,if=none,id=cd"
|
||||||
cfg+=" -drive file=${DISK},index=0,media=disk,format=raw"
|
cfg+=" -device virtio-scsi-pci -device scsi-cd,drive=cd"
|
||||||
cfg+=" -boot d"
|
cfg+=" -boot d"
|
||||||
;;
|
;;
|
||||||
d)
|
d)
|
||||||
echo "booting disk with no CD"
|
echo "booting disk with no CD"
|
||||||
cfg+=" -drive file=${DISK},index=0,media=disk,format=raw"
|
|
||||||
cfg+=" -boot c"
|
cfg+=" -boot c"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
qemu-system-x86_64 -enable-kvm -m 2048 -vga vmware $cfg
|
qemu-system-x86_64 $cfg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user