Installing virt-customize ok ?

cburkins

Member
Nov 5, 2020
16
1
6
52
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!