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@front ~]# getenforce --> Frontend Disabled [root@nc1 ~]# getenforce --> Worker Node Disabled [oneadmin@front ~]$ cd /var/lib/libvirt/images/ [oneadmin@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@front images]$ ls -lrth total 5.0G -rw------- 1 oneadmin oneadmin 8.0G Jul 8 18:23 win7.qcow2 [oneadmin@front images]$ exit [root@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 Creating domain... | 0 B 00:00 (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is empty [oneadmin@front ~]$ oneimage create --name "win7-x86_64" --path "/var/lib/libvirt/images/win7.qcow2" --driver qcow2 --datastore default ID: 12 [oneadmin@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@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@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@front ~]$ onetemplate instantiate win7 --name myvm8 VM ID: 36 [oneadmin@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@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: -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 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
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org