Skip to content

Commit

Permalink
Interactive mode: fix qemu config
Browse files Browse the repository at this point in the history
  • Loading branch information
DanteG41 committed May 18, 2016
1 parent fbd0318 commit 73d257f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vmadm.df
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ if [ "$yqtap" = "y" ]; then echo "VM_NET_QTAP='yes'" >>$ftmp
read -n 1 -p "Использовать интерфейс TAP? [y/n]" ytap;echo ''
if [ "$ytap" = "y" ]; then echo "VM_NET_TAP='yes'" >>$ftmp
else echo "VM_NET_TAP='no'" >>$ftmp;fi
echo "VM_KERNEL_APPEND='root=LABEL=root virtio_blk.use_bio=1'">>$ftmp
echo "VM_APPEND='-cpu qemu64,+x2apic,+ssse3,+sse4_1,+sse4_2 -enable-kvm -balloon virtio'">>$ftmp
echo "VM_SHUTDOWN_TIMEOUT='300'">>$ftmp
echo "VM_KERNEL_APPEND='root=LABEL=root virtio_blk.use_bio=1 net.ifnames=0 ipv6.disable=1'">>$ftmp
echo "VM_APPEND='-cpu qemu64,+x2apic,+ssse3,+sse4_1,+sse4_2'">>$ftmp
PS3="Выберите ядро:"
select kernel in "Ядро гостевой системы" "По умолчанию qemu" "vmlinuz-3.7.10-gentoo-r1-ka-64"
do
Expand All @@ -148,9 +147,11 @@ echo "VM_KERNEL='no'">>$ftmp
echo "novmkernel">>$ftmp.sc
;;
"По умолчанию qemu" )
echo "VM_KERNEL='yes'">>$ftmp
echo "default">>$ftmp.sc
;;
"vmlinuz-3.7.10-gentoo-r1-ka-64" )
echo "VM_KERNEL='yes'">>$ftmp
echo "vmlinuz-3.7.10-gentoo-r1-ka-64">>$ftmp.sc
;;

Expand Down

0 comments on commit 73d257f

Please sign in to comment.