Skip to content

Instantly share code, notes, and snippets.

@remoteur
Last active January 22, 2020 18:58
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 remoteur/2a53e0a297fa4d12377d195aa0958ed5 to your computer and use it in GitHub Desktop.
Save remoteur/2a53e0a297fa4d12377d195aa0958ed5 to your computer and use it in GitHub Desktop.
mount qcow
guestfish --rw -a rhcos-43.81.202001142154.0-qemu.x86_64.qcow2
><fs> run
><fs> mount /dev/sda1 /
gunzip rhcos-43.81.202001142154.0-qemu.x86_64.qcow2.gz
virt-edit -a rhcos-43.81.202001142154.0-qemu.x86_64.qcow2 -m /dev/sda1 -e "s/ip=dhcp/ip=ens3:dhcp6/g" /grub2/grub.cfg
sha256sum rhcos-43.81.202001142154.0-qemu.x86_64.qcow2
gzip rhcos-43.81.202001142154.0-qemu.x86_64.qcow2
sha256sum rhcos-43.81.202001142154.0-qemu.x86_64.qcow2.gz
gunzip rhcos-43.81.202001142154.0-openstack.x86_64.qcow2.gz
virt-edit -a rhcos-43.81.202001142154.0-openstack.x86_64.qcow2 -m /dev/sda1 -e "s/ip=dhcp/ip=ens4:dhcp6/g" /grub2/grub.cfg
sha256sum rhcos-43.81.202001142154.0-openstack.x86_64.qcow2
gzip rhcos-43.81.202001142154.0-openstack.x86_64.qcow2
sha256sum rhcos-43.81.202001142154.0-openstack.x86_64.qcow2.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment