1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Helping diskless VMs to boot correctly

git-svn-id: http://svn.opennebula.org/one/trunk@926 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Constantino Vázquez Blanco 2009-12-10 11:56:23 +00:00
parent 7f8dbbd4df
commit 669d3ce68d

View File

@ -85,7 +85,9 @@ class LibVirtDriver < VirtualMachineDriver
domain = tmp.read
tmp.close()
cmd = "cat > #{remote_dfile} && #{LIBVIRT[:create]} #{remote_dfile}"
images_path = File.dirname remote_dfile
cmd = "mkdir -p #{images_path} && cat > #{remote_dfile} && " \
"#{LIBVIRT[:create]} #{remote_dfile}"
deploy_exe = SSHCommand.run("'#{cmd}'", host, log_method(id), domain)