Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vzvol fails with spaces in import filename #38

Open
hcw70 opened this issue Sep 14, 2018 · 1 comment
Open

vzvol fails with spaces in import filename #38

hcw70 opened this issue Sep 14, 2018 · 1 comment
Assignees
Milestone

Comments

@hcw70
Copy link

hcw70 commented Sep 14, 2018

When doing:

root@nvidion:~# vzvol -t virtualbox -s 120GB -u hcw -v Win7_64bitVBox --import ~hcw/VirtualBox\ 

i get

VMs/Win7/Win7\ 64\ bit.vdi 
Testing to ensure zvol was created
Testing to ensure zvol exists
Now importing /home/hcw/VirtualBox VMs/Win7/Win7 64 bit.vdi to /dev/zd0
This will DESTROY all data on /dev/zd0
Do you want to continue? [y/N]?y
Beginning import...
dd: nicht erkannter Operand »VMs/Win7/Win7“
„dd --help“ liefert weitere Informationen.
Error occurred in function vzvol_import_img
Exiting

This seems to be caused by spaces in the path to my .vdi file.

Can be fixed in vzvol_import.sh by quoting the dd arguments:

VZVOL_IMPORT_CMD="dd if=\"${IMPORTIMG}\" of=${ZVOL_IMPORT} status=progress"

@RainbowHackerHorse
Copy link
Owner

Thanks for noticing this! I didn't even consider spaces.

@RainbowHackerHorse RainbowHackerHorse added this to the v0.7.1 milestone Nov 2, 2018
@RainbowHackerHorse RainbowHackerHorse self-assigned this Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants