mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-11-04 19:51:10 +00:00
create live vm script
This commit is contained in:
parent
08a4b0815f
commit
47b940a311
27
post/create-live-vm.sh
Normal file
27
post/create-live-vm.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create and start a new diskless VM using virt-install, but do not launch any installation
|
||||
virt-install \
|
||||
--connect qemu:///system \
|
||||
--virt-type kvm \
|
||||
--arch x86_64 \
|
||||
--machine q35 \
|
||||
--name my-first-live-vm \
|
||||
--boot uefi \
|
||||
--cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \
|
||||
--vcpus 1 \
|
||||
--memory 2048 \
|
||||
--video virtio \
|
||||
--channel spicevmc \
|
||||
--autoconsole none \
|
||||
--sound none \
|
||||
--controller type=virtio-serial \
|
||||
--controller type=usb,model=none \
|
||||
--controller type=scsi,model=virtio-scsi \
|
||||
--network network=default,model=virtio \
|
||||
--input type=keyboard,bus=virtio \
|
||||
--input type=tablet,bus=virtio \
|
||||
--rng /dev/urandom,model=virtio \
|
||||
--disk none \
|
||||
--cdrom=/var/lib/libvirt/iso/netboot.xyz.iso \
|
||||
--install no_install=yes
|
Loading…
Reference in New Issue
Block a user