[one-users] VM Failed with Windows OS

Steven Timm timm at fnal.gov
Tue Jul 8 07:26:18 PDT 2014


The errors that you are pointing out, don't seem to have
any direct connection to the fact that you are trying to
install a windows VM, there is nothing windows-specific about them.
Looks like OpenNebula failed to clone the blank windows image
to the system datastore due to some permissions issue.

Steve Timm


On Tue, 8 Jul 2014, Sudeep Narayan Banerjee wrote:

> Dear Sir,
> 
> I have been trying to install Windows-7 64bit in OpenNebula. Our target is
> to create a VM with Windows as OS.
> 
> Below are the steps that I followed. But not able to "runn" the VM. SeLinux
> is Disabled in both servers.
> 
> [root at front ~]# getenforce    --> Frontend
> Disabled
> 
> [root at nc1 ~]# getenforce     --> Worker Node
> Disabled
> 
> [oneadmin at front ~]$ cd /var/lib/libvirt/images/
> 
> [oneadmin at front images]$ qemu-img create -f qcow2 -o preallocation=metadata
> /storage/local/images/winserv1.qcow2 8G
> Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592
> encryption=off cluster_size=65536 preallocation='metadata'
> 
> [oneadmin at front images]$ ls -lrth
> total 5.0G
> -rw------- 1 oneadmin oneadmin 8.0G Jul  8 18:23 win7.qcow2
> [oneadmin at front images]$ exit
> 
> [root at front ~]# virt-install --prompt
> What is the name of your virtual machine?
> myvm7
> How much RAM should be allocated (in megabytes)?
> 1024
> What would you like to use as the disk (file path)?
> /var/lib/libvirt/images/win7.qcow2
> How large would you like the disk (/var/lib/libvirt/images/win7.qcow2) to be
> (in gigabytes)?
> 8
> What is the install CD-ROM/ISO or URL?
> /home/Windows-7-x86.iso
> 
> Starting install...
> Allocating'win7.qcow2'                                                              
?? ?                                  | 8.0 GB     00:00    
> Creatingdomain...                                                                 
?? ?                                    |    0 B     00:00    
> (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is
> empty
> 
> [oneadmin at front ~]$ oneimage create --name "win7-x86_64" --path
> "/var/lib/libvirt/images/win7.qcow2" --driver qcow2 --datastore default
> ID: 12
> 
> [oneadmin at front ~]$ oneimage list
>   ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER STAT
> RVMS
>    3 oneadmin   oneadmin   Ubuntu-14.04_x8 default       287M OS    No
> used    1
>   12 oneadmin   oneadmin   win7-x86_64     default         8G OS    No
> rdy     0
> 
> [oneadmin at front ~]$ onetemplate create --name "win7" --cpu 1 --vcpu 1
> --memory 512 --arch x86_64 --disk "win7-x86_64" --nic "private" --vnc --ssh
> ID: 11
> 
> [oneadmin at front ~]$ onetemplate list
>   ID USER            GROUP           NAME                               
> REGTIME
>    2 oneadmin        oneadmin        Ubuntu-14.04                 06/27
> 02:11:28
>   11 oneadmin        oneadmin        win7                         07/08
> 18:30:39
> 
> [oneadmin at front ~]$ onetemplate instantiate win7 --name myvm8
> VM ID: 36
> 
> [oneadmin at front ~]$ onevm list
>     ID USER     GROUP    NAME            STAT UCPU    UMEM HOST            
> TIME
>     25 oneadmin oneadmin myvm2           runn    0    512M nc1         11d
> 16h14
>     36 oneadmin oneadmin myvm8           fail    0      0K              0d
> 00h00
> 
> 
> ERROR from log file.
> 
> [oneadmin at front ~]$ tail -f /var/log/one/36.log
> 
> Tue Jul  8 18:31:48 2014 [DiM][I]: New VM state is ACTIVE.
> Tue Jul  8 18:31:48 2014 [LCM][I]: New VM state is PROLOG.
> Tue Jul  8 18:35:30 2014 [LCM][I]: New VM state is BOOT
> Tue Jul  8 18:35:30 2014 [VMM][I]: Generating deployment file:
> /var/lib/one/vms/36/deployment.0
> Tue Jul  8 18:35:31 2014 [VMM][I]: ExitCode: 0
> Tue Jul  8 18:35:31 2014 [VMM][I]: Successfully execute network driver
> operation: pre.
> Tue Jul  8 18:35:32 2014 [VMM][I]: Command execution fail: cat << EOT |
> /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/36/deployment.0'
> 'nc1' 36 nc1
> Tue Jul  8 18:35:32 2014 [VMM][I]: error: Failed to create domain from
> /var/lib/one/datastores/0/36/deployment.0
> Tue Jul  8 18:35:32 2014 [VMM][I]: error: internal error process exited
> while connecting to monitor: qemu-kvm: -drivefile=/var/lib/one/datastores/0/36/disk.0,if=none,id=drive-ide0-0-0,format=q
> cow2: could not open disk image /var/lib/one/datastores/0/36/disk.0: Invalid
> argument
> Tue Jul  8 18:35:32 2014 [VMM][I]:
> Tue Jul  8 18:35:32 2014 [VMM][E]: Could not create domain from
> /var/lib/one/datastores/0/36/deployment.0
> Tue Jul  8 18:35:32 2014 [VMM][I]: ExitCode: 255
> Tue Jul  8 18:35:32 2014 [VMM][I]: Failed to execute virtualization driver
> operation: deploy.
> Tue Jul  8 18:35:32 2014 [VMM][E]: Error deploying virtual machine: Could
> not create domain from /var/lib/one/datastores/0/36/deployment.0
> Tue Jul  8 18:35:33 2014 [DiM][I]: New VM state is FAILED
> 
> --
> Thanks & Regards,Sudeep Narayan Banerjee
> 
>

------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525
timm at fnal.gov  http://home.fnal.gov/~timm/
Fermilab Scientific Computing Division, Scientific Computing Services Quad.
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing


More information about the Users mailing list