Installing virt-customize ok ?

cburkins

Member
Nov 5, 2020
16
1
6
53
I'm a fan of grabbing pre-built qcow2 files from the big distros (e.g. Fedora), and booting them right up. Saves me have to build VM's, and they boot right up.

Here's my process:
  1. build a dummy vm
  2. Grab a qcow2 from vendor using wget
  3. copy right over the VM's generic qcow2 file
  4. Use "virt-customize" to add a root password to the image (because logging in is a nice feature)
  5. boot the VM
I'm moving from generic KVM to Proxmox. Proxmox doesn't have virt-customize installed, so just did a quick "apt install libguestfs-tools".

Any harm in that ?
 
In case it's useful, here's the handy command for setting a root password in a qcow2 image before booting:

Code:
virt-customize -a /var/lib/vz/images/101/vm-101-disk-0.qcow2 --root-password password:topSecretPassword