Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
cloud-localds -v /cloud/cloudinit_iso_mnt/8.iso /tmp/1.metadata /tmp/2.userdata
"/tmp/1.metadata"
instance-id: i-abcdefg
"/tmp/2.userdata"
#cloud-config
password: passw0rd
chpasswd:
expire: False
ssh_pwauth: True
users:
- name: fedora
lock_passwd: False
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
password: passw0rd
/usr/bin/qemu-system-x86_64 -enable-kvm -cpu host -smp 4,sockets=1,cores=2,threads=2 -m 8G -mem-prealloc -balloon none \
-drive file=/cloud/cloudinit_iso_mnt/8.iso,if=virtio,format=raw \
-drive file=/cloud/maindisk_mnt/8.qcow2,format=qcow2,if=virtio \
-vga none -device vmware-svga,vgamem_mb=32 -display none \
-vnc :0 \
-device virtio-net-pci,netdev=net00 -netdev id=net00,type=user,hostfwd=tcp::2222-:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment