Richard W.M. Jones
2021-Apr-01 09:43 UTC
[Libguestfs] virt-customize options that should work with Windows
These are the virt-customize operations that should work on Windows
guests. All others likely do not work.
--copy SOURCE:DEST
--copy-in LOCALPATH:REMOTEDIR
--delete PATH
--edit FILE:EXPR
This should work, although there may be problems
with line endings.
--firstboot SCRIPT
--firstboot-command 'CMD+ARGS'
Obviously you need to use a batch file or powershell
script. We know this should work because we use
it in virt-v2v.
--hostname HOSTNAME
--timezone TIMEZONE
I *think* these should work, but I've not tested them.
--mkdir DIR
--move SOURCE:DEST
--touch FILE
--truncate FILE
--truncate-recursive PATH
--upload FILE:DEST
--write FILE:CONTENT
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
Yongkui Guo
2021-Apr-01 10:02 UTC
[Libguestfs] virt-customize options that should work with Windows
Hi rjones, Many thanks for the info. ----- Original Message -----> > These are the virt-customize operations that should work on Windows > guests. All others likely do not work. > > --copy SOURCE:DEST > --copy-in LOCALPATH:REMOTEDIR > --delete PATH > > --edit FILE:EXPR > This should work, although there may be problems > with line endings. > > --firstboot SCRIPT > --firstboot-command 'CMD+ARGS' > Obviously you need to use a batch file or powershell > script. We know this should work because we use > it in virt-v2v. > > --hostname HOSTNAME > --timezone TIMEZONE > I *think* these should work, but I've not tested them. > > --mkdir DIR > --move SOURCE:DEST > > --touch FILE > --truncate FILE > --truncate-recursive PATH > --upload FILE:DEST > --write FILE:CONTENT > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-builder quickly builds VMs from scratch > http://libguestfs.org/virt-builder.1.html >