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

VM creation failing with zfs #8

Open
builderall opened this issue Nov 26, 2018 · 1 comment
Open

VM creation failing with zfs #8

builderall opened this issue Nov 26, 2018 · 1 comment

Comments

@builderall
Copy link

Hi, can you please see if anything can be done, using ON 5.6 with local zfs (all in one box)
log:
Mon Nov 26 00:41:05 2018 [Z0][VM][I]: New state is ACTIVE
Mon Nov 26 00:41:05 2018 [Z0][VM][I]: New LCM state is PROLOG
Mon Nov 26 00:41:06 2018 [Z0][VM][I]: New LCM state is BOOT
Mon Nov 26 00:41:06 2018 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/3/deployment.0
Mon Nov 26 00:41:07 2018 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Mon Nov 26 00:41:08 2018 [Z0][VMM][I]: ExitCode: 0
Mon Nov 26 00:41:08 2018 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Nov 26 00:41:09 2018 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/3/deployment.0' 'localhost' 3 localhost
Mon Nov 26 00:41:09 2018 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/3/deployment.0
Mon Nov 26 00:41:09 2018 [Z0][VMM][I]: error: internal error: process exited while connecting to monitor: 2018-11-26T05:41:09.027737Z qemu-system-x86_64: -drive file=/var/lib/one//datastores/0/3/disk.0,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Image is not in qcow2 format
Mon Nov 26 00:41:09 2018 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/3/deployment.0
Mon Nov 26 00:41:09 2018 [Z0][VMM][I]: ExitCode: 255
Mon Nov 26 00:41:09 2018 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon Nov 26 00:41:09 2018 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/3/deployment.0
Mon Nov 26 00:41:09 2018 [Z0][VM][I]: New LCM state is BOOT_FAILURE

oneadmin@localhost:~$ oneimage show 11
IMAGE 11 INFORMATION
ID : 11
NAME : ttylinux - kvm
USER : oneadmin
GROUP : oneadmin
LOCK : None
DATASTORE : zfs
TYPE : OS
REGISTER TIME : 11/26 00:39:46
PERSISTENT : No
SOURCE : localhost:tank/ONE/images/one-11
PATH : http://marketplace.opennebula.systems//appliance/4fc76a938fb81d3517000003/download/0
SIZE : 200M
STATE : used
RUNNING_VMS : 1

PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---

IMAGE TEMPLATE
DEV_PREFIX="vd"
DRIVER="qcow2"
FORMAT="qcow2"
FROM_APP="27"
FROM_APP_MD5="b8ccdc63fb9d72ed12547fb1499c8b73"
FROM_APP_NAME="ttylinux - kvm"

VIRTUAL MACHINES

ID USER     GROUP    NAME            STAT UCPU    UMEM HOST             TIME
 3 oneadmin oneadmin ttylin-dev1     fail    0      0K localhost    0d 00h36
@FlorianHeigl
Copy link
Contributor

The relevant error seems to be this:

file=/var/lib/one//datastores/0/3/disk.0,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Image is not in qcow2 format

I don't know (yet) if qcow2 can work but your template surely demanded qcow2 from an image that was not.

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