ZF2 Running Windows 7, 8 & 10 using KVM - ZenFone 2 General

Let me preface that ever since I heard of an Intel based phone, the idea of running Windows at near native speeds has always intrigued me.
It's not perfect, but I think we're very close to that goal
Here's a video of my ZE551 running Windows 7:
Edit:
Here's @knightmare running Windoze 10 on his ZF2
http://forum.xda-developers.com/showpost.php?p=62008697&postcount=144
Edit:
Here's a video of my ZE551 installing Windoze 8: ( pretty boring for most people since it's just the install )
Edit:
Here's a video of my ZE551 playing ( I use that term loosely here ) a D3D9 game: Runes of Magic. Even though the Windows 8 QXL driver says it's hardware enabled in DxDiag, it's painfully slow.. taking nearly 15 minutes to start up/log in.
Edit:
Here's a video of Passmark 8 on Windows 8. Some people asked for benchmarks:
Here are the tools you will need to get this running yourself ( ZE551 ):
1. KVM enabled kernel - http://forum.xda-developers.com/zen...fhd-kernel-ze551-kvm-bridge-compiled-t3145055
2. Linux chroot - the one I use is called Linux Deploy ( in the Play Store )
3. Spice client - the one I use is called aSPICE ( in the Play Store )
4. Root - kinda duh
5. Unlocked Bootloader - without an unlocked bootloader, you can't install a new kernel
6. Terminal Emulator - the one I use is called Terminal Emulator ( in the Play Store )
7. SSH client - the one I use is called VX ConnectBot ( in the Play Store )
8. Busybox - most every root-based app uses this ( in the Play Store )
9. OS iso - any cdrom image of the OS you want to run, ie windows 7?
Optional:
1. (optional) a decent sized MicroSD card, I use a 128 gb one that's partitioned 50 gigs or so as ext4 for Linux & 70'ish gigs for vFAT
2. (optional) an SD Card partitioner - the one I use is called Aparted ( in the Play Store )
After unlocking your bootloader and getting root running, this is the process you will follow:
1. Flash the 2.19 kernel img using fastboot flash boot boot_2.19_kvm_bridge.img and reboot. Pray you boot up.
2. Start Terminal Emulator
2a. at the $ prompt, type: su
2b. Grant Permission to Terminal Emulator for Root access ( 1 time thing )
2c. check to see if kvm.ko and kvm-intel.ko are loaded by typing: lsmod
2d. If they aren't loaded, load them using the commands: insmod /lib/modules/kvm.ko and insmod /lib/modules/kvm-intel.ko
2e. exit out of Terminal Emulator by tying the command: exit and then exit again
3. Partition your microSD card using Aparted * OPTIONAL *
4. Use Linux Deploy to install your favorite Linux distro. Unless you are hoping to compile the Android AOSP kernel ( what the FHD phone kernel is ), you can use just about any of them. ONLY use SSH, you won't need framebuffer or X access. This could take upwards of half an hour.
5. After Linux Deploy has installed your linux distro, click Start to start up the chroot.
6. Use an SSH client to connect to your linux distro. ( I prefer to ssh in via my laptop, but also use VX ConnectBot when I'm out and about )
7. Use the package manager to install qemu-kvm for your distro. Most Debian & Ubuntu distros use apt-get, Arch uses pacman, Fedora uses rpm, etc...
7a. (optional) I find it easier to grant superuser privileges to my qemu-kvm executable, so I chmod a+s /usr/bin/qemu-system-x86_64 ; if you are paranoid about security, read through the documentation to do this correctly
8. I recommend creating a shell script to start up qemu-kvm because it can be a pain in the butt to remember all of the switches you like. ie...
qemu-system-x86_64 -full-screen -m 1G -enable-kvm -cpu host \
-drive file=/mnt/0/machine1.img,format=raw -boot menu=on \
--usbdevice tablet -smp 4 -vga qxl -monitor stdio -balloon virtio \
-soundhw hda -net nic,model=virtio \
-net user,smb=/mnt/MicroSD \
-spice port=5900,addr=127.0.0.1,disable-ticketing [email protected]
I have this line ( it's broken up by \'s <-- MAKE SURE THERE IS NO WHITE SPACE AFTER THE \ ) in my bash script called start_win7.sh
Here's a quick explanation of the line:
8a. qemu-system-x86_64 - This is the name of the qemu-kvm executable on my Arch x86_64 distro
8b. -full-screen - Full screen
8c. -m 1G - 1 gig of ram for our virtual machine
8d. -enable-kvm - enable KVM, the whole point of this endeavor
8e. -cpu host - use the same cpu information as our ZF2
8f. -drive file=/mnt/0/machine1.img,format=raw - the location of my hard drive, this is a 10 gig file
8g. -boot menu=on - boot menu enabled ( hit F12 etc.. )
8h. -usbdevice tablet - Qemu SUCKS at tracking the mouse, this forces qemu to track where we touch the screen
8i. -smp 4 - we're using 4 threads ( cores )
8j. -vga qxl - we're using the qxl vga adapter
8l. -monitor stdio - allow us to use the console to make immediate changes to the VM
8m. -balloon virtio - use the virtio balloon feature in the KVM kernel
8n. -soundhw hda - use the Intel HD Audio driver for sound
8o. -net nic,model=virtio - create a network card using the virtual IO feature in the KVM kernel
8p. -net user,smb=/mnt/MicroSD - create a shared folder, in this case the vFAT portion of the microSD card
8q. -spice port=5900,addr=127.0.0.1,disable-ticketing - Start up the SPICE engine for passing video & audio
8r. [email protected] - pass any further arguments to our qemu-kvm executable
so my file: start_win7.sh looks like this:
#!/bin/bash
qemu-system-x86_64 -full-screen -m 1G -enable-kvm -cpu host \
-drive file=/mnt/0/machine1.img,format=raw -boot menu=on \
--usbdevice tablet -smp 4 -vga qxl -monitor stdio -balloon virtio \
-soundhw hda -net nic,model=virtio \
-net user,smb=/mnt/MicroSD \
-spice port=5900,addr=127.0.0.1,disable-ticketing [email protected]
8s. chmod +x start_win7.sh to make it executable
9. Start up the qemu-kvm virtual machine referencing the location of your windows 7 install cd. ie...
./start_win7.sh -cdrom /mnt/MicroSD/Vcd/en_windows7.iso
9a. Qemu will start up and then show you this:
QEMU 2.3.0 monitor - type 'help' for more information
(qemu)
9b. you can then issue QEMU commands from the (qemu) prompt
10. Start up aSPICE
11. Click the OFF button to the left of Show Advanced Settings
12. Make sure Enable Sound is checked, if it isn't, do so.
13. The default connection is 127.0.0.1:5900, so click Connect
At this point, you should see your Windows install starting.
After this you will need the virtio drivers for your Windows box. I'll try to get those urls, but you should be able to Google them. Redhat has VirtIO & Spice guest driver cd's for Windows.
Redhat Windows Virtio Drivers CD: https://fedoraproject.org/wiki/Windows_Virtio_Drivers
SPICE Guest Drivers: http://www.spice-space.org/download.html ( download the QXL Driver and Spice Agent, the executable does not work )
Windows 8 QXL Drivers from Red Hat People: http://people.redhat.com/~vrozenfe/qxlwddm/
How to connect to Windows via RDP: http://forum.xda-developers.com/showpost.php?p=62096457&postcount=165
Edit:
Verified that Windows 8.1 pro can be upgraded to Windows 10. Redhat's qxl windows 8 driver works with Windows 10.

Great job bro. This is iam waiting for using zenfone 2.Is there any sound for windows 7?
if like can i change into windows 8 or 10??.
Tq

Yes, there is sound using aspice if you use the Intel hd audio driver. Unfortunately, the pc link video grabber doesn't record sound. ( why there isn't audio in my video )
Since this virtual machine is simply a pc, you should be able to install Windows 8 or 10.
Please let us know how that turns out!
Sent from my ASUS_Z00AD using XDA Free mobile app

this is amazing...this means there is a chance in the future, to run windows 10 or windows phone 10 (whenever that comes out) ? what about connecting mouse/keyboards via bluetooth? i cant wait for this to grow more! amazing work...!!!

Amazing! Care to try with Windows 10 to see how it behaves?
Seems already fast in your video, you already have ideas to make closer to native speed or it's already the best?

You've outdone yourself. A full modern Windows desktop OS in our pockets.

@ycavan
The very important question: What about video driver? Is it just dummy SVGA or full featured 3D graphics card?
Without Direct3D, windows for me will be nearly useless.

At the moment there is no direct 3d. The problem there is that my chroot doesn't seem to have proper access to all the hardware.
I've heard that the vmware driver is supposed to support d3d9 natively via gallium.
So... The next step would be to look at getting qemu-kvm compile for Android.
If any awesome Android developers out there are willing to do that, we might have a chance at full speed Windows with direct 3d.
I will say this... Epsxe was able to start up ps1 games with Pete's opengl driver via spice.
Sent from my ASUS_Z00AD using XDA Free mobile app

I've been messing around with the Android NDK lately, and if I have time today, I can try cross-compiling qemu-kvm.

This type of stuff is why I love supporting the XDA Community. Very cool. I'll give it a shot today - if USB OTG works, I'll have to see if I can get my Tactrix OpenPort cable to work with it and MazdaEdit.

This is a wonderful job bro... Can we follow the same procedure on other phones (Oneplus One in my case) with a kernel that supports KVM?

vigneshnallamad said:
This is a wonderful job bro... Can we follow the same procedure on other phones (Oneplus One in my case) with a kernel that supports KVM?
Click to expand...
Click to collapse
Since the Oneplus One is using an ARM based chip , not a x86 chip so I don't think it's possible to run Windows

damn man, that's some awesome stuff right there. imma have to find me self a zenfone 2

Jay.Lent said:
damn man, that's some awesome stuff right there. imma have to find me self a zenfone 2
Click to expand...
Click to collapse
Do it. Peer pressure!

awesome work Bro..
btw will it increases battery life of zenfone 2? or making it worse?
as we all know that android 5.0 is very buggy, the memory leak problem cause battery draining, so I wonder about your trick by installing windows 7 on asus zenfone 2 will it fix the battery draining problem?

Awesome Work !! Wish you all the very best for future developments

Wow excellent job.:thumbup:..didn't except such a beautiful stuff....lol touch screen Windows 7
Sent from my ASUS_Z00AD using XDA Free mobile app

Oh my glob! If there is any possibility to have tf2 in my pocket... I will seriously throw money at someone.

qkall said:
Oh my glob! If there is any possibility to have tf2 in my pocket... I will seriously throw money at someone.
Click to expand...
Click to collapse
You could always stream it from your PC as I'm not certain it would run well even on minimum settings.

As per the fact that the windows 7 runs on VM inside the Android, it should ideally worsen the battery life. Windows 7 doesn't replace the android os. If someone is worried about battery should not try this. Nevertheless, it truly would be a great thing to witness.

Related

[LINUX] - How To: UBUNTU on Dell Streak

EDIT: I can't post to XDA due to the fact that i just signed up for an account, but look at fards' copy of my post to see how to install Ubuntu on your Dell Streak
Here's Pats Post on modaco;
although it would be nicer to keep development discussion to just one thread, the more constructive input the better
Hello All,
I'm attempting to natively port Ubuntu and/or Debian to the Streak. With it being such a powerful device there really is no reason it SHOULDN'T be running a “desktop” operating system. However, implementing his is quite a difficult task, so if any and everyone's help would be very much appreciated.
In the mean time, this is my first guide on how to get ubuntu running piggyback on the Dell Streak. After quite a while (and numerous different trials), I have found that this is the easiest way to get Ubuntu Mobile up and running fast. All commands can be done through either ADB shell or the terminal emulator on the phone.
This was *NOT* done entirely by me, but is a culmination of the effort of lots of people in the android community. I just modified it so that it would work on the Streak.
**This Installation DOES NOT install Linux natively, and as such is should not be destructive to your Android system, however i take absolutely no responsibility for anything that happens and you do this COMPLETELY at your own risk**
Here is how to do it:
1) Root your phone. There are plenty of guides on how to do it, so find one and get root access on your phone.
**YOUR PHONE MUST BE ROOTED. THIS WILL NOT WORK WITHOUT IT.**
2) Download Ubuntu Mobile Bundle: http://uploading.com/files/bbm6b311/ubuntu.zip/
This contains an image of the filesystem as well as other necessary scripts to get it working.
2) Busybox - Install Titanium Backup from Android Market - if you press the "Problems" button it will install Busybox on your phone for you (Feel free to uninstall Titanium after this is done). This is the fastest and most pain free way to install busybox on the streak that i know of for now (the other ways of doing this ARE NOT fun...)
3) On your SD card's root directory, create a folder called ubuntu and extract all files in the ubuntu mobile bundle there.
4) Replace the bootubuntu executeable file in the ubuntu directory with mine, found here http://www.mediafire.com/?fi011w4fbmymw3y
5) Unmount phone from computer. ADB and Android Terminal will not work if the phone is mounted.
5) Download a terminal from the Android Market - I used Jack Palevich's Android Terminal Emulator (android market search: terminal) but anything similar should work the same
CODE
Code:
su
cd /sdcard/ubuntu
sh ubuntu.sh
6) Ignore any errors thrown up by ubuntu.sh. From this point, all that is needed to boot ubuntu is just to enter this:
CODE
Code:
bootubuntu
To start ubuntu from now on, this is all you need to do.
You should now have ubuntu working on your laptop, and while it DOES connect to your phone's internet sources, it DOES NOT yet have a graphical interface.
Here is how to add one:
1) Update the system with the following commands in ubuntu:
CODE
Code:
apt-get update
apt-get upgrade
The first one updates the package lists, the second one downloads updates to the system itself.
2) Install TightVNC in ubuntu:
CODE
Code:
apt-get install tightvncserver
3) Configure TightVNC:
CODE
Code:
export USER=root
vncserver -geometry 800x480
For security purposes, it is recommended that you assign a password to your VNC server when asked.
4) Download Android VNC Viewer from the market
5) Configure Android VNC Viewer:
Change the port to 5901 and type in your password that you entered before.
Other Problems
There appears to be a bug with the X window server sometimes refusing to connect to VNC. DO NOT change any settings on Android VNC Viewer, instead open a terminal and run the folloring command:
CODE
Code:
rm -R /tmp/.X11-unix
What Does Not Work – Will Try To Fix
Keyboard from Android VNC Viewer
Shutdown – Does Nothing
Reboot
Log Out
Native Install
I hope you guys enjoy this, and I can't wait to get your feedback.
- Pat
Click to expand...
Click to collapse
there was a thread about this but it wasnt work on me. now i am downloading and i will inform you again
what is the address for vnc ?
OMG! Could that be any slower on the download?
EDIT:
That sounded totally ungrateful - sorry!
Thank you very much for this
yeah works fine without problems.
it is better from g1 but not as well as a netbook. so only experimental use i think
I connected to the loopback 127.0.0.1 on 5901 and it worked - haven't seen how to connect to it remotely though
Edit:
Reading is fundamental - I can connect to it form another machine
now to fix the keyboard issue
in terminal emulator there is a note : localhost:1 vnc could work properly so i connect with only port and password.
is it possible to install jolicloud since its an ubuntu based system?
Newbie questions, sorry....
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
No your missing the point here, this isn't an OS separate to android. Think of this as an app it runs on top of the android system. Also this is very experimental most features would be limited and no ubuntu can't be used as an smartphone os -No phone...
beginner said:
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
Click to expand...
Click to collapse
1) Ubuntu does not replace android, and the UI only runs in a VNC server, so you can switch back and forth between ubuntu and the phone app (or angry birds?)
2) I installed mine on top of DJ Steve's 1.8.1 rom... It's not native, so it only runs on top of android instead of replacing it
3) Haven't tried audio yet, but it should work (let me know how it goes)... internet connectivity works and provided you have an internet connection enabled in android you can use tools like APT or Firefox in ubuntu... only problem is keyboard is a bit wonky...
For those who had trouble figuring out how to set up the VNC, here is a picture of my VNC configuration on my phone. If you find out the phone's IP address you should even be able to VNC into it from your computer (if your on the same wifi network)
Also, openoffice.org
- pat
Is anyone actively attempting to get Ubuntu running native?
audio not working
keyboard not working
also lots of lags.
ear0wax said:
Is anyone actively attempting to get Ubuntu running native?
Click to expand...
Click to collapse
Yes, i'm looking into it, but it's quite an uphill battle in order to get it working. I'll let everyone know when we make some progress.
www.cepdukkani.net said:
audio not working
keyboard not working
also lots of lags.
Click to expand...
Click to collapse
cause you are running 2 operating systems at the same time
But seriously, if ubuntu can run native (no android in the background) then the lag would be gone, and (if set up right) audio and keyboard would work.
- pat
could i recieve phone and uses sms?
Getting error
Hi all after passing command for booting ubuntu I get a error chroot can't find /bin/bash folder or directory missing
Sent from my Dell Streak using XDA Premium App
www.cepdukkani.net said:
audio not working
Click to expand...
Click to collapse
Im wondering if I install a rdp server instead of vnc if I can get remote audio working.
Ill post with whatever results i get once I'm done waiting 2 hours for the ubuntu image to download.
As for lag. I had a n900 running @600mhz and was doing a chroot into ubuntu and it ran fine, but it used xpyher not vnc. Is there any embedded X servers for android yet? (I highly doubt it)
data requirement for updating GUI pkg of Ubuntu
Can any body tell me size of the data required to update to gui ......as i m not using wi -fi i hv to stick on gsm data usage which is limited in my plan
Very cool!
I had lots of trouble rooting my 2.2.2, but finally got it done by running Gingerbreak twice in a row on a cleanly re-started Streak.
Thanks for a fun gig!

Triple booting win8, win7 and ubuntu

Hi guys I have just downloaded win 8 from Microsoft but I want to triple boot my laptop is that please help.
Extra info : ram 4gb
Hard disk 320gb
Core 2duo processor
Sent from my GT540 using xda premium
You can dual boot win8 and win7 its a breeze, i just did follow this simple steps posted on microsoft-news.com
just make three partition on your laptop...one for each.. or you can install Ubuntu through wubi on windows 7 and windows 8 on a separate partition.. am currently using like this...
Easiest way is to install ubuntu inside windows 7 and use VMware to instal Windows 8 on virtual machine.
I did that today. Could go without windows eight tho.
thnx everyone i run win8 in VMware..
rajatbajpai0072 said:
Hi guys I have just downloaded win 8 from Microsoft but I want to triple boot my laptop is that please help.
Extra info : ram 4gb
Hard disk 320gb
Core 2duo processor
Sent from my GT540 using xda premium
Click to expand...
Click to collapse
Its actually pretty simple.Just dual boot windows 7 and 8.Im sure u knw how o do this.Then install Ubuntu alongside 7 through the boot setup!
If you had a newer CPU, I'd suggest using Client Hyper-V (from Win8) to run the other OSes virtually, but the Core 2 family lacks second-level address translation, which means Hyper-V messes up desktop performance so MS made SLAT mandatory on client (non-server) builds if you want Hyper-V.
rajatbajpai0072 said:
Hi guys I have just downloaded win 8 from Microsoft but I want to triple boot my laptop is that please help.
Extra info : ram 4gb
Hard disk 320gb
Core 2duo processor
Sent from my GT540 using xda premium
Click to expand...
Click to collapse
I had my windows 7 installed , and then i installed ubuntu. Now , lets say you installed windows 7 on a LocalDrive (c):, then in this drive there will be some files.
wubildr
wubildr.cfg
wubuildr.mbr
These are the files that gets your ubuntu booted.
So just install windows 8 normmally on some other drive. (note: dont keep any operating system in same drive. Make a 100gb for windows 7 , 50gb for ubuntu(if you not compiling any big projects) and 100 gb for Windows 8 , and the rest 70 gb a 4th hard drive )
You can store songs and stuff in any drive you want.
NOTE:
When you boot up your computer,this is what happens,
1) Bios awakes all the hardware("Goodmorning mouse,keyboard harddisk, any other devices connected too (except your internet router) )
2)Bios finds a operating system and boots up its "SELECT OPERATING SYSTEM"(called bootmanager).(in my pc when i use windows 8 and shut it down, the next time i start pc i get windows 8's boot menu. but if i use windows 7 and shut it down , and next time when i turn on my pc i get windows 7's bootmenu, You wont get ubuntu boot menu on startup)
3)Go to Windows 8 , open my computer . Now you will see that the drive on which you installed Windows 8 is now C drive..
4) Find out on which drive you had your windows 7, open it, go to program files. and use which ever software you had without reinstalling it, Like lets say if i want photoshop, then i will go to windows 7 drive, open program files, then Adobe, then photoshop cs5 and here there will be photoshop.exe, i will create shortcut on desktop (use this method only when the software publisher have not published the software for windows 8, eg TeamViewer , they released their software for windows 8 , so i wont link it to desktop from my windows 7 files.. I will download a new one.. )
Thats it.. have fun buddy..
Check this out.
Google EasyBCD. And then download that software. so if you ever mess up , then you can make a new entry in your bootmanager and name it what you want. lets say you mess up with ubuntu, and in boot menu ubuntu option doesnt come, then you go to windows 7/8 and then open up EasyBCD , make a new entry , name it Ubuntu(or what ever you want) and then point it out to "wubildr.mbr" (remeber , make backup of the three files i told above..) Also you can change the names of existing OS. Like Windows 7 can be changed into Hello, This is Windows 7 . Then this will appear in your boot screen..
Hope i helped. I know you booted windows 8 in VM, but VMs are slow... I just gave you extra info so u know what to do if you mess up on install new OS again
rajatbajpai0072 said:
Hi guys I have just downloaded win 8 from Microsoft but I want to triple boot my laptop is that please help.
Extra info : ram 4gb
Hard disk 320gb
Core 2duo processor
Sent from my GT540 using xda premium
Click to expand...
Click to collapse
It is easy install Ubuntu alongside win7 and install windows 8 to a different partision
you can install them separately, each on a partition
it is very normal and easy
i did it, i installed windows 7 then 8 then ubuntu
just make sure to install ubuntu after all because of the grub boot loader
Win 8, then Hyper-V as many different OSs as you have space for, its quick, painless, you don't need to worry about Linux over zealous bootloaders screwing everything up, unless you are running several at the same time even a moderate spec'd PC with the correct hardware requirements will run them both without much of an issue.
one thing I miss from 7 is the ability to run XP programs right of my desktop, I have some USB hardware that only supports 32bit XP, on 64 bit 7 I VM'd with XP mode, had the program icon that used said hardware right on my 7 desktop, double clicked, and for all intensive purposes it ran and worked the hardware as if it was on that very os
pretty impressed I have to say, alas it doesn't work like that on 8 which is a shame

[Q] Creating a Nexus 7 Android Emulator in Eclipse

Hi Folks,
Brand new to the forum (and, indeed, Android development). I have a Nexus 7, and I'm developing on Windows 7 using Eclipse. To try out the tutorials on the Android site, I attempted to follow their instructions to create a virtual Nexus 7 device. Seemed pretty straightforward. However, when I try to start the deveice, I get the error "Failed to allocate memory:8". It doesn't matter if I put 200 in the "SD Card Size" or select the SD card img file, I get the same message and the emulator is terminated by the application.
I have searched the archive on this forum but can't find anything close to this. Any ideas?
Cran0g said:
Hi Folks,
Brand new ot the forum (and, indeed, Android development). I have a Nexus 7, and I'm developing on Windows 7 using Eclipse. To try out the tutorials on the Android site, I attempted to follow their instructions to create a virtual Nexus 7 device. Seemed pretty straightforward. However, when I try to start the deveice, I get the error "Failed to allocate memory:8". It doesn't matter if I put 200 in the "SD Card Size" or select the SD card img file, I get the same message and the emulator is terminated by the application.
I have searched the archive on this forum but can't find anything close to this. Any ideas?
Click to expand...
Click to collapse
You might not have enough ram in your PC, try 512mb that's as low as you can go for 4.2
Sent from my Nexus 7 using xda app-developers app
IRX120 said:
You might not have enough ram in your PC, try 512mb that's as low as you can go for 4.2
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Hello,
I''m new as well and have exactly the same scenario on installing Eclipse on win 7 64 bits and try to learn with a Nexus 7 tablet.
I've tried adding the parameter to set 512mb but I'm still have the same problem. what else can be the problem ?
Thanks for any feedback.
Cran0g said:
Hi Folks,
Brand new to the forum (and, indeed, Android development). I have a Nexus 7, and I'm developing on Windows 7 using Eclipse. To try out the tutorials on the Android site, I attempted to follow their instructions to create a virtual Nexus 7 device. Seemed pretty straightforward. However, when I try to start the deveice, I get the error "Failed to allocate memory:8". It doesn't matter if I put 200 in the "SD Card Size" or select the SD card img file, I get the same message and the emulator is terminated by the application.
I have searched the archive on this forum but can't find anything close to this. Any ideas?
Click to expand...
Click to collapse
Did you solve this issue ?. I have exactly the same problem you have and I couldn't find any answer yet.
Thanks.
nexusnino said:
Did you solve this issue ?. I have exactly the same problem you have and I couldn't find any answer yet.
Thanks.
Click to expand...
Click to collapse
There seems to be a bunch of things that the prior respondents never bothered mentioning
- What version of OS are you using on your PC? (also, 32-bit, or 64-bit?)
- How much RAM is in your PC?
- After you boot up your PC, and have a look with the Windows Task Manager, how much memory do you have in use with your PC sitting idle?
- What version of the Android Developement Tools do you have installed into Eclipse (v21.1 or above)?
- Does your processor have Intel/AMD Virtualization extension support?
- You are *not* attempting to run an emulator under an emulator (e.g. VirtualBox) are you?
- Which API Level and Device are you trying to run from the AVD?
I have a Win7 Pro x64 box, i5 quad-core uP w/ VT-X extensions, 4 GB RAM. When I create (for instance) an "API Level 17" Nexus 7 emulator, the AVD dialog complains:
Android Virtual Device Manager said:
On Windows, emulating RAM greater than 768M may fail depending on the system load. Try progressively smaller values of RAM if the emulator fails to launch
Click to expand...
Click to collapse
Now, the default settings for a Nexus7/API 17 AVD device are 1024 MB RAM (just as with the physical device). When I attempt to run this way, sure enough I get a message
Starting Android Emulator said:
...Failed to allocate memory: 8...
Click to expand...
Click to collapse
but when I edit that virtual machine to use 768 MB, it runs just fine.
Monitoring the physical memory in use:
Windows 7 Pro x64: ~1.0 GB
+ Eclipse (v3.6.2) + AVD : ~ 1.2 GB
+ 768 MB Emulator Running: ~1.7 GB.
I conclude that the "768 MB" limit is some strange interaction between the ADT and Windows - I routinely operate other VMs on my machine that use up to 2 GB of memory.
hope that helps.
bftb0 said:
There seems to be a bunch of things that the prior respondents never bothered mentioning
- What version of OS are you using on your PC? (also, 32-bit, or 64-bit?)
- How much RAM is in your PC?
- After you boot up your PC, and have a look with the Windows Task Manager, how much memory do you have in use with your PC sitting idle?
- What version of the Android Developement Tools do you have installed into Eclipse (v21.1 or above)?
- Does your processor have Intel/AMD Virtualization extension support?
- You are *not* attempting to run an emulator under an emulator (e.g. VirtualBox) are you?
- Which API Level and Device are you trying to run from the AVD?
I have a Win7 Pro x64 box, i5 quad-core uP w/ VT-X extensions, 4 GB RAM. When I create (for instance) an "API Level 17" Nexus 7 emulator, the AVD dialog complains:
Now, the default settings for a Nexus7/API 17 AVD device are 1024 MB RAM (just as with the physical device). When I attempt to run this way, sure enough I get a message
but when I edit that virtual machine to use 768 MB, it runs just fine.
Monitoring the physical memory in use:
Windows 7 Pro x64: ~1.0 GB
+ Eclipse (v3.6.2) + AVD : ~ 1.2 GB
+ 768 MB Emulator Running: ~1.7 GB.
I conclude that the "768 MB" limit is some strange interaction between the ADT and Windows - I routinely operate other VMs on my machine that use up to 2 GB of memory.
hope that helps.
Click to expand...
Click to collapse
=========================================
Thanks for the message; here are the answer to the questions you sent:
1- I have Windows 7 ( 64 bits)
2- 4 GB of Ram
3- When the computer just started and idle use 1.3Gb of Ram
4- I've installed ADT V 22.0.1 - 685705
5- I can't find how to check if the VT-x is enable or not
6- I don't use any kind of Virtual Machine on this computer
7- API level is set to 17, but not sure what you refer to Device or AVD
As an extra comment I have and Nexus 7 that is running 4.2.1, that eventually I would like to test the apps in there.
Thanks for your time and help.
nexusnino said:
=========================================
Thanks for the message; here are the answer to the questions you sent:
1- I have Windows 7 ( 64 bits)
2- 4 GB of Ram
3- When the computer just started and idle use 1.3Gb of Ram
4- I've installed ADT V 22.0.1 - 685705
5- I can't find how to check if the VT-x is enable or not
6- I don't use any kind of Virtual Machine on this computer
7- API level is set to 17, but not sure what you refer to Device or AVD
As an extra comment I have and Nexus 7 that is running 4.2.1, that eventually I would like to test the apps in there.
Thanks for your time and help.
Click to expand...
Click to collapse
@nexusnino
Your setup looks pretty close to mine. Win7/x64, 4 GB. Now that I think about it a little more, I'm not sure if the VT-X processor extensions matter for the emulator, as the Android emulator is an ARM instruction-set emulator, not a true x86 native instruction-set VM.
(In my case, I built my own machine; knowing that I was going to be using VMs a lot, I went through Intel's processor model comparison database and selected an processor model that supports the VM hardware extensions. Intel sells a lot of "i5", "i7" processor model variants. In your case, you would need to find out the exact processor model in your PC to figure out if it has Intel VT-X or AMD/V. But, as I mention above, I'm not certain it is relevant to the Android emulators).
In the AVD (Android Virtual Device) v21.1, when I select Nexus 7, it pre-populates the VM RAM/Heap settings. If I leave RAM at 1024 MB, I get the error 8 message. But if I adjust the VM RAM size downward (e.g. 768 MB), the VM starts correctly. I didn't try other values - the /!\ caution message seems to indicate that other values, possibly higher, might work.
I just updated my ADT (and eclipse plugins) to 22.0.
Same deal on v22.0 as on v21.0 - the emulator errors out (error:8) if I leave the RAM set to 1024, but if I drop it to 768, it starts up just fine.
see attachment image
What happens if you drop the RAM settings down?
bftb0 said:
@nexusnino
Your setup looks pretty close to mine. Win7/x64, 4 GB. Now that I think about it a little more, I'm not sure if the VT-X processor extensions matter for the emulator, as the Android emulator is an ARM instruction-set emulator, not a true x86 native instruction-set VM.
(In my case, I built my own machine; knowing that I was going to be using VMs a lot, I went through Intel's processor model comparison database and selected an processor model that supports the VM hardware extensions. Intel sells a lot of "i5", "i7" processor model variants. In your case, you would need to find out the exact processor model in your PC to figure out if it has Intel VT-X or AMD/V. But, as I mention above, I'm not certain it is relevant to the Android emulators).
In the AVD (Android Virtual Device) v21.1, when I select Nexus 7, it pre-populates the VM RAM/Heap settings. If I leave RAM at 1024 MB, I get the error 8 message. But if I adjust the VM RAM size downward (e.g. 768 MB), the VM starts correctly. I didn't try other values - the /!\ caution message seems to indicate that other values, possibly higher, might work.
I just updated my ADT (and eclipse plugins) to 22.0.
Same deal on v22.0 as on v21.0 - the emulator errors out (error:8) if I leave the RAM set to 1024, but if I drop it to 768, it starts up just fine.
see attachment image
What happens if you drop the RAM settings down?
Click to expand...
Click to collapse
Thanks very much for the very detail post; I've adjust to 768 and I can consistently run without getting the error back.
Much appreciate your time and help.
Paulo

Turning note into a Linux laptop: a step by step guide

Turning note into a Linux laptop: a step by step guide
The main advantage of the method here is that you can run android app and linux program side by side. Moreover, S-pen can act as mouse
Device: p600
ROM: P600UEUBMK1
(Following method may be applicable if your device is rooted and has other selinux permissive ROM installed)
1 Root and flash selinux permissive kernel
a. for root method, see
http://forum.xda-developers.com/showthread.php?t=2490805
b. Flash selinux permissive kernel, for instructions, see
http://forum.xda-developers.com/showthread.php?t=2590311
Please read the instructions completely.
c. Install SElinuxModeChanger
Install SElinuxModeChanger from Google Play (app is free and without ads) and change selinux mode to permissive.
Reboot note, if SELINUX status is Permissive in the Setting--about device, you can move on to next step.
2 Install Linux distro using Linux Deploy
Install Linux Deploy from Google Play (app is free and without ads), Start Linux Deploy and push the Download Button, and then in the Deploy option, you have the following choices:
a. Distribution
I have tried Debian and Ubuntu, both have been successful installed.
b. Distribution suite
For Debian , choose Jessie.
For Ubuntu, choose Trusty.
c. Architeture
Choose armhf.
d. Mirror URL
For Debian, http://202.141.160.110/debian
202.141.160.110 is the IP address of debian.ustc.edu.cn (one of the Debian mirrors in China)
You can choose other mirrors from
https://www.debian.org/mirror/list
but remember to convert the web address into IP address
For Ubuntu, http://18.7.29.125/ubuntu-ports/
18.7.29.125 is the IP address of mirrors.mit.edu
The above mirrors are chosen because they are stable and fast for users in China.
e. Installation type
File(default option)
f. Installation path
For Debian, /storage/emulated/0/debian.img
For Ubuntu, /storage/emulated/0/ubuntu.img
In fact , You can choose whatever file name you like. I chose the above names, because I actually installed both Debian and Ubuntu on my device.
g. Image size
Automatic calculation (default option)
h. File system
Auto (default option)
i. User name
Android (default option)
j. DNS server
Automatic detection (default option)
k. Localization
en_US.UTF-8 (default option)
l. Desktop environment
Xfce
m. Select components
Just check all components
After the Deploy options have been set, choose Install under Action options.
The installation time taken depends on the mirror chosen and how stable the internet connection is.
When you see “end: Install”
Push the Stop Button, and then Start Button.
If no information about failure of starting SSH and VNC services are shown, then the installation is successful.
3 Configure startup environment using Linux Deploy
Push the Download Button, ensure that both SSH and GUI are checked under STARTUP option.
for Graphic subsystem, choose VNC
for GUI setting, Display is set to 0, Depth 24, DPI 270, Width 2560, Height 1600.
check Custom mounts
For Mount points, add /mnt/extSdCard/ so that you can access external sdcard under linux environment.
or add /mnt/0/ to access internal sdcard.
Back to the main page, push Stop and then Start Button to see if external sdcard and internal sdcard can be mounted.
4 Set up ssh and vnc client
a. Install JuiceSSH from Google Play (app is free and without ads),
Launch JuiceSSH, under Connections, choose New Connection,
In basic settings, Type is set to SSH, Address is set to 127.0.0.1 (IP of local host), and Identity is android.
Back to the main page, connect to 127.0.0.1, when prompting for password, enter changeme. You are now login into Debian or Ubuntu.
b. Install bVNC from Google Play (there are free and pro versions, free version is fine)
In the Connect Type, choose Basic VNC.
In the VNC Connections Settings, Address is set to 127.0.0.1, port 5900, and password changeme.
Push the connect button, You are now login into Debian or Ubuntu desktop.
Can you please upload a video of Linux running on your note, if you can please. Never thought Linux would run on note. It would really transform this tablet into a powerful productivity tool.
excalibar001 said:
Can you please upload a video of Linux running on your note, if you can please. Never thought Linux would run on note. It would really transform this tablet into a powerful productivity tool.
Click to expand...
Click to collapse
I have no experience of making and uploading video .
some screenshots are attached
Does this guide is for P600 only ? :silly:
It's impractical at best. I mean I appreciate the time it took for you to write this, but linux through chroot is not very useful, it cannot be. It's like trying to run linux on a p3 machine, which is painful to see especially since our machines have the raw power of a fast core 2 duo (if cross platform benchs are to be believed).
What we need is a custom bootloader which would enable dual boot of Linux and android and then a proper linux kernel including driver support for all our tablets main components. Native linux. I've always dreamt of an ultra portable do-it-all machine and my note is almost that, with *almost* being the imperative word.
Note 2012 has it, raspberry f....ING pi has it even though it includes 1/10th of the firepower of our note, we don't, and I miss it oh so much for certain apps. The pen via hovering can act like a proper ultra portable mouse (tapping -> left click, pressing the key + tapping -> right click) + a floating keyboard (like Sammy 's official one) and we're golden. Alas without a proper kernel and a proper bootloader we're nothing.
Appreciate the effort, I really do, but linux deploy is mostly a toy :/
I'll await for the day that native linux comes.
does it work with framebuffer option (instead of vnc)?
Stevethegreat said:
It's impractical at best. I mean I appreciate the time it took for you to write this, but linux through chroot is not very useful, it cannot be. It's like trying to run linux on a p3 machine, which is painful to see especially since our machines have the raw power of a fast core 2 duo (if cross platform benchs are to be believed).
What we need is a custom bootloader which would enable dual boot of Linux and android and then a proper linux kernel including driver support for all our tablets main components. Native linux. I've always dreamt of an ultra portable do-it-all machine and my note is almost that, with *almost* being the imperative word.
Note 2012 has it, raspberry f....ING pi has it even though it includes 1/10th of the firepower of our note, we don't, and I miss it oh so much for certain apps. The pen via hovering can act like a proper ultra portable mouse (tapping -> left click, pressing the key + tapping -> right click) + a floating keyboard (like Sammy 's official one) and we're golden. Alas without a proper kernel and a proper bootloader we're nothing.
Appreciate the effort, I really do, but linux deploy is mostly a toy :/
I'll await for the day that native linux comes.
Click to expand...
Click to collapse
Linux through chroot is sufficient for the following purposes:
1 have a taste of different linux distro
2 learning programming in R, python, and octave.
3 editing and compiling no so large latex files
4 learning and practicing the universal editor emacs ( I use it with R,python and octave) if equipped with a physical keyboard.
In sum, note 10.1 with linux through ssh and vnc is perfect for educational purpose.
For developer, at least, they can learn how their linux program looks like in a 10 inch screen with 2560*1600 resolution.
ziotom2 said:
does it work with framebuffer option (instead of vnc)?
Click to expand...
Click to collapse
I have the same question for op or anyone in the know. Can you start gui without vnc?
I have tried framebuffer on several devices, including note , without success.
Are there any prerequisite to use it?
Thank you for the guide. I am stuck in point 4th setup ssh and vnc when I try to connect I think it doesnt rcognize address 127.0.0.1 as I recive this msj: failled to connect to /127.0.0.1 port 22 connect failed ECONREFUSED. Any idea why?
Thank you
What I can do on Linux?
Sent from my Galaxy Note 2
Why install Linux?
Stevethegreat said:
It's impractical at best. I mean I appreciate the time it took for you to write this, but linux through chroot is not very useful, it cannot be. It's like trying to run linux on a p3 machine, which is painful to see especially since our machines have the raw power of a fast core 2 duo (if cross platform benchs are to be believed).
Click to expand...
Click to collapse
Actually there are several Linux applications I would like to run, which require very little processing power and I believe would run just fine.
WikidPad and FreeMind are the obvious ones for me; but I also have a proprietary simulation package that would probably benefit from running slower
Their value to me would because they are always available so using them would lack the friction I currently endure- I have to be at home to use them.

turn old phone as arm board project

hi all,
so , i've 4 old phones arm based uc :
htc wildfire, acer liquid e1 , thomson every40, and a ms lumia 640 ,
i would like to reuse them in a arm board project .
my goals are:
to set up one as "home nas" conneted in wifi to my providerbox and provide ssh(at least ) ,vpn and files server service.
And a second one set up as: a mobile hotspot (open wifi) where connected user can drop and drag files .
and add a webgui where I will able to turn the wifi card into a wifi repeater .
i don't need user interface (screen on the device) the goal is to turn on and get the system loaded and setuped
so guys , do you have some leads, advice or trick for load mini linux(openwrt or debian arm ) directly by the bootloader .
thx
I don't know about the Lumia, but you can easily run a Linux desktop distro on the Android phones. If you have experience with Linux, or just Google a bit, you can easily find tools that provide what you want. To get a desktop distro running, root the device. Then you can either chroot into a distro manually (plenty of guides on XDA for that), or use an app called Linux Deploy. Both methods will give you a complete, un-emulated distro. Both methods need booting into Android, but even such old phones should be able to handle a minimal Debian or Ubuntu ARM chroot pretty well. Just do not install a DE, do the initial set up over SSH. I don't think you can boot into something other than Android on those devices.
grip-it & rip-it
an even easier option (and better, imho) is to just download termux and yer set. You can download appropriate packages, dependencies, libs. etc... from inside the terminal. and that's all m8.
ch33rs

Categories

Resources