Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2016 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1406b7470736587554075f1f9be58734 to your computer and use it in GitHub Desktop.
Save anonymous/1406b7470736587554075f1f9be58734 to your computer and use it in GitHub Desktop.
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