copy a file while creating a vm
I want to copy a file from host to guest while spinning a vm .. any pointers?
Since network is not setup on my cluster ..I figured i just copy the unxibench gzip to benchmark the vm.
But what i fail to understand is how do i copy the gzip tp vm while creating the vm ? I am using this script to create vms
server = nova.servers.create(name = vmName, image = image.id, flavor = flavor.id, nics = nics, availability_zone = availability_zone , userdata = user_data, key_name = key_pair.name )
the files is 139571 bytes unixbench.gzip