1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
% qemu, balena
# boots a balenaOS vm
qemu-system-x86_64 -name balena0 \
-netdev "user,id=net0,hostfwd=tcp::22222-:22222" -device e1000,netdev=net0 \
-bios /usr/share/edk2-ovmf/OVMF_CODE.fd \
-m 4G -smp 4 \
-cpu max \
-machine type=pc,accel=kvm \
-display none \
-drive format=vvfat,file=fat:rw:/tmp/qemu,index=1 \
-drive format=raw,cache=none,if=virtio,index=0,file=balena.img
% qemu, ubuntu
# boots an ubuntu vm
qemu-system-x86_64 -name ubuntu0 \
-netdev "user,id=net0,hostfwd=tcp::2222-:22" -device e1000,netdev=net0 \
-m 4G -smp 4 \
-cpu max \
-machine type=pc,accel=kvm \
-display none \
-drive format=vvfat,file=fat:rw:/tmp/qemu,index=1 \
-drive format=qcow2,cache=none,index=0,file=/home/robert/ubuntu.qcow2
|