diff --git a/devicemodel/samples/bridge.sh b/devicemodel/samples/bridge.sh index f06ccc348..063844822 100755 --- a/devicemodel/samples/bridge.sh +++ b/devicemodel/samples/bridge.sh @@ -49,4 +49,5 @@ EOF fi # add tap device under the bridge +ifconfig acrn_tap0 up brctl addif acrn-br0 acrn_tap0 diff --git a/devicemodel/samples/launch_uos.sh b/devicemodel/samples/launch_uos.sh index efb884a7d..cea22c8ba 100755 --- a/devicemodel/samples/launch_uos.sh +++ b/devicemodel/samples/launch_uos.sh @@ -13,20 +13,15 @@ if [[ "$result" != "" ]]; then exit fi - #for memsize setting -memsize=`cat /proc/meminfo|head -n 1|awk '{print $2}'` -if [ $memsize -gt 4000000 ];then - mem_size=1750M -fi - mem_size=1000M -./acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ +acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 5,virtio-console,@pty:pty_port \ -s 6,virtio-hyper_dmabuf \ - -s 3,virtio-blk,/home/root/clear.img \ - -s 4,virtio-net,tap0 -k /home/root/bzImage \ + -s 3,virtio-blk,/root/clear-21180-kvm.img \ + -s 4,virtio-net,tap0 \ + -k /usr/lib/kernel/org.clearlinux.pk414-standard.4.14.23-19 \ -B "root=/dev/vda3 rw rootwait noxsave maxcpus=$2 nohpet console=tty0 console=hvc0 \ console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \ consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \