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