Skip to content

Commit 4c8ee24

Browse files
committed
ubuntu desktop qemu kind of working
1 parent 9aa572e commit 4c8ee24

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ubuntu-18.04.1-desktop-amd64.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ fi
4040

4141
# Run the installed image.
4242
qemu-system-x86_64 \
43-
-drive file=ubuntu-18.04-desktop-amd64.snapshot.qcow2,format=qcow2 \
43+
-drive "file=${disk_img_snapshot},format=qcow2" \
4444
-enable-kvm \
4545
-m 2G \
4646
-smp 2 \
4747
-soundhw hda \
4848
-vga virtio \
49+
"$@" \
4950
;

ubuntu-18.04.1-server-arm64.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set -eux
1010
id=ubuntu-18.04.1-server-arm64
1111
#id=debian-9.6.0-arm64-xfce-CD-1
1212
img="${id}.img.qcow2"
13+
img_snapshot="${id}.img.snapshot.qcow2"
1314
iso="${id}.iso"
1415
flash0="${id}-flash0.img"
1516
flash1="${id}-flash1.img"
@@ -58,9 +59,9 @@ fi
5859
qemu-system-aarch64 \
5960
-cpu cortex-a57 \
6061
-device rtl8139,netdev=net0 \
62+
-device virtio-scsi-device \
6163
-device scsi-cd,drive=cdrom \
6264
-device virtio-blk-device,drive=hd0 \
63-
-device virtio-scsi-device \
6465
-drive "file=${iso},id=cdrom,if=none,media=cdrom" \
6566
-drive "if=none,file=${img_snapshot},id=hd0" \
6667
-m 2G \

0 commit comments

Comments
 (0)