elijah-cloudlet icon indicating copy to clipboard operation
elijah-cloudlet copied to clipboard

Base Vm Creation

Open SainathK333 opened this issue 11 years ago • 8 comments

Well, i have been trying to create a windows base vm. But when i try to do that the IPXE command line is saying that it can't boot from the cd rom. Can you just guide me how to create a base Vm of windows? Another problem is when i try to create a base VM of ubuntu i get an error as "The creation of swap space in partition #5 of SCSI1 (0,0,0,) (sda) failed" . Which type of file system should i select while i try to install?

SainathK333 avatar Jan 31 '14 13:01 SainathK333

First of all, can you boot the Windows VM without cloudlet code? I mean, can you run the VM with regular QEMU/KVM hypervisor or libvirt?

There's no special magic in creating base VM part. It just launches virtual machine using libvirt API base on /vat/lib/cloudlet/conf/VM_TEMPLATE.xml template file.

I'd like to note that you need to prepare a VM disk image that already installed vanilla OS, then cloudlet create base VM using this a VM disk image.

krha avatar Jan 31 '14 15:01 krha

Dear Sir,

We have achieve following milestone of work:

  1. Created cloudlet & installed Base VM with the help of following steps: https://github.com/cmusatyalab/elijah-provisioning#how-to-create-vm-overlay
  2. From above link we got success upto : launch the VM synthesis server at Cloudlet.

Problem :

  1. How to create VM overlay : https://github.com/cmusatyalab/elijah-provisioning#how-to-create-vm-overlay
  2. Flow to test created VM overlay on Android Client.

Sir,We are glad to have your answer.we are doing our PG Thesis based on the steps you have mentioned.

This steps are the only hope to achieve milestone.

Thanks in advance :(

anilce avatar Jan 23 '15 10:01 anilce

Hello @anilce,

I'd like to help you. Please help me understand the situation better. If I understand correctly, you have successfully install this cloudlet package and was able to resume the base VM using 'cloudlet overlay /path/to/base-vm' command. Is that correct?

If you have sucessfully resumed the base VM, then the next step is modifying the resumed VM whaterver you like to do. At this point, install your software that will communicate with your mobile client program. After that, if you close the window that you were interacting, then the cloudlet code will generate VM overlay, which contains your modification. Please let me know which step you're in. Thanks.

krha avatar Jan 24 '15 03:01 krha

thanks for your response..

i am working on 14.04 LTS for cloudlet setup.

Problem:

  1. after importing base VM, i run next “ synthesis_server” . in this i am not getting last line “INFO [INFO] Start UPnP Server ”
  2. In VM overlay creation: after execution of “cloudlet overlay /path/to/base_disk.img ” This will launch VNC, now How & What to do in order to get VM-overlay?. screenshot from 2015-01-24 20 31 54

anilce avatar Jan 24 '15 15:01 anilce

  1. after importing base VM, i run next “ synthesis_server” . in this i am not getting last line “INFO [INFO] Start UPnP Server ”

There could be multiple reasons for not having UPnP server properly. But you can perform VM synthesis without UPnP. At the client, you can specify the IP address of the Cloudlet (server). For example,

> synthesis_client -s localhost -o [file path to your VM overlay file]
  1. In VM overlay creation: after execution of “cloudlet overlay /path/to/base_disk.img ” This will launch VNC, now How & What to do in order to get VM-overlay?.

The command 'cloudlet overlay' will resume the base VM and let you creat your VM Overlay. That means, after having VNC window, you can install your program (i.e. backend server) and launch the program inside of the VM. After finishing all modification, you can just close the VNC windows, then the cloudlet code will automatically generate a VM overlay, which contains all your modification. It will finally generate a single zip file that you can use at 'synthesis_client' command.

Please let me know any further issue.

krha avatar Jan 27 '15 12:01 krha

Thanks a lot for your kind support.

As per path given by you, I have successfully created a VM Overlay and tested it. Now, I am trying for running an Andriod app on my cloudlet. I want to create Andriod Client for application. Both client and Cloudlet are located in same broadcasting domain (WiFi).

Problem: Now you please help me that what to do during “interaction” for overlay creation.
I have attached snapshot of my cloudlet.I am getting this command prompt view of my VNC cloudlet.So I dont know to interact it andriod application. Suggest me an application like fluid application for which i can do work with my cloudlet. screenshot from 2015-02-01 14 40 49

anilce avatar Feb 01 '15 09:02 anilce

Hi,

What cloudlet-provisioning code can do is just allows you to launch your custom backend server to a nearby cloudlet rapidly. That means, you first have to prepare your own client program (running on a mobile device) and corresponding backend server program (that runs typically on Cloud, but we will launch it at Cloudlet).

Once you have these code ready, then you can create VM overlay.

Now you please help me that what to do during “interaction” for overlay creation.

The thing you will do after having VNC is installing & starting you backend server. Once you have configured this virtual machine with your server program and make it ready to receive requests from a mobile client, then close the VNC window. 'cloudlet code' will generate a VM overlay file for you. With this VM overlay file, you can resume your backend server at any cloudlet. Does it clearly to you? Thanks.

Now, let me tell you about process of using Cloudlet & your VM overlay. In elijah-provisioning repo, you can find Android application that include code for requesting VM synthesis to cloudlet. Using that code, your mobile device can tell nearby cloudlet to launch specific VM overlay tranferring from your mobile device. Cloudlet will return ack after finishing resuming your custom VM (using your VM overlay) and the mobile application can launch your mobile.

Please read more at '2) Android client' paragragh in https://github.com/cmusatyalab/elijah-provisioning. Thanks.

Kiryong

krha avatar Feb 03 '15 14:02 krha

Hello @krha

After importing the Base VM and resuming the Base VM with the overlay command, how do I import my application from the host system onto this VM in order to make customizations on top of the base VM. I tried SSH for file transfer, but the connection gets timed out. I would be glad to have your help and suggestions on this.

Thanks in advance.

anshitha1706 avatar Jan 24 '20 13:01 anshitha1706