create a full file
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
9baec034b2
commit
0a4ed4a156
9 changed files with 56 additions and 0 deletions
16
base_data/start_vm.sh
Normal file
16
base_data/start_vm.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
rm nocloud_alpine.qcow2
|
||||
cp nocloud* nocloud_alpine.qcow2
|
||||
|
||||
qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-cpu host \
|
||||
-m 512 \
|
||||
-smp 1 \
|
||||
-serial unix:/tmp/vm-serial.sock,server,nowait \
|
||||
-monitor unix:/tmp/vm-monitor.sock,server,nowait \
|
||||
-daemonize \
|
||||
-display none \
|
||||
-drive file=./seed/seed.iso,media=cdrom,if=ide \
|
||||
-drive file=nocloud_alpine.qcow2,format=qcow2,if=virtio \
|
||||
-netdev tap,id=net0,ifname=tap551,script=no,downscript=no \
|
||||
-device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:56
|
||||
Loading…
Add table
Add a link
Reference in a new issue