yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 General] m.alali.sy:
thanks for your help .. but both are on the list ?!
[ZenFone 2 General] base_band5:
Just wondered if I could use your v2.19 kernel on my phone which is now running Z00A-WW_2.15.40.10? Reason why I reverted to the older fw is because when I was on Z00A_WW_2.19.40.18 using dual sims (as the phone is designed to cope with dual sims) everytime I received a call or sms on my 2nd sim, the screen froze and I could not answer or decline the call! So I reverted back to the 2.15.40.10 firmware which I knew works with dual sims, as this was the original fw when I bought the phone in May 2015.

I thought I'd get your view as I don't want any bootloops by putting newer kernel on an older firmware.

Cheers.
[ZenFone 2 General] m.alali.sy:
i solved it by using sudo . . . and now i get this error message :( :

and this is start8.sh :

windows iso file is located in : MicrosD/8.iso
[ZenFone 2 General] AKman1984:
I can't wait to get this working on my phone
[ZenFone 2 General] Devhux:
How's the battery life with Windows running?
[ZenFone 2 General] ycavan:
Honestly? not sure. I think worse-case? you could re-flash the boot image from 2.15 if it doesn't work.

re: battery life

I tend to have my phone plugged in all most of the time I'm not using it, but I haven't seen any more drain than normal.

re: smbd

You will need to install smb (samba) using your distro's package manager.
[ZenFone 2 General] DrGit:
OpenGL

Here's a possible solution for OpenGL while we wait for the PowerVR drivers which may never materialize:

http://openswr.org/

This is supposedly being integrated into Mesa as we speak, and if that's finished before Mesa 11.0 is released, there's a chance Ubuntu 15.10 will get it, and I'm sure a bunch of other Linux distributions will package it.

Unfortunately, this is yet another thing to wait for (the currently available code is outdated and only supports OpenGL 1.5), and without AVX/AVX2 on our Atom SoC, it may not be significantly faster than llvmpipe anyway, let alone nearly as fast as a real GPU. If it allows games to run, that would be more than I can say for TF2, which won't run at all because Steam doesn't launch under llvmpipe, at least on my Pentium N/Bay Trail laptop.
[ZenFone 2 General] kaktuss77:
Hi,

My SDcard is a sandisk 64GB UHS-I, IO are at 99% alltime with windows XP. So I have mount my internal storage on my chroot distro. My IMG file is on my internal MMC and now IO are OK.

BTW, is there a solution for map all usbhost device directly in the VM?

Thanks a lot for your work ^^
[ZenFone 2 General] majacik:
Hi. I have a problem. I came to the point 8S. I do not executable start_win7.sh. Even as Android @ localhost or as a root @ .... when I am android @ localhost enter command: chmod + x start_win7.sh (I'm in the folder mnt / 0 /) and answer:

chmod: Changing permission of "start_win7.sh": Operation not permitted

I tried to use a + x, 777, 111 and nothing. When I try to run a start_win7.sh and get:

command not found
[ZenFone 2 General] ycavan:
your start_win7.sh should be in your /home/android ( or whatever account you're using ) directory.

Not sure if /mnt/0 ( I'm guessing you linked /mnt/sdcard/0 ) has execute enabled for that entire partition.
[ZenFone 2 General] majacik:
Okay, but where? Android file system, or Linux?Chmod it is not even on the SD card or the internal memory. Linux in my linux.img. How do I create this script? In Windows and copied to the phone or via console in Linux phone?
[ZenFone 2 General] ycavan:
you should be in your linux chroot when you're running your script since qemu will be running from linux.

You can use any text editor to write up your start script, I like nano ( another version of pico ) since that's what I'm familiar with.

basically:

1. start up your chroot ( using Linux Deploy ) only starting up the ssh server

2. ssh into your chroot with the android user account ( default password: changeme ) <-- do change that password

3. use your package manager to install qemu

4. I prefer to run qemu-system-x86_64 & qemu-img w/ full privileges to prevent stupid error messages: $ sudo chmod a+s /usr/bin/qemu-x86_64 and $ sudo chmod a+s /usr/bin/qemu-img

5. Create a new hard drive image, most likely on your /mnt/0 internal sdcard: $ qemu-img create -f raw /mnt/0/machine1.img 10G <-- this would create a 10 gig raw hd file

6. Create your startup script: $ nano start_win7.sh

7. type in the flags that you want, if you want to use more than 1 line, add a backslash character \ WITHOUT ANY WHITESPACE after the \

8. make it executable: $ chmod +x ./start_win7.sh

Let me know if that still doesn't make sense.
[ZenFone 2 General] hydkrash:
HI all, Finally managed to get Windows 10 going on my zf2.

However, I noticed a limitation on the about of memory that can be allocated which is the maximum of 2047MB for qemu.

Does anyone know if it is possible to extend this to maybe even 3GB?
[ZenFone 2 General] ycavan:
are you using a 32 bit or 64 bit distro?
[ZenFone 2 General] hydkrash:
Didn't see any option to select the 32/64bit distro from Linux Deploy, but probably suspect it is a 32bit distro.

But qemu is running the 64bit version isn't it?
[ZenFone 2 General] ycavan:
that would be the source of the problem... Linux Deploy currently assumes that you want to run 32 bit distros & that'll limit how much ram an application can use to 2 gigs.

I'm not sure about any other distros, but Arch Linux will allow you to "upgrade" from 32->64 bit. That's what I did so I could compile linux kernels on my phone actually. The directions are here: https://wiki.archlinux.org/index.php/Migrating_Between_Architectures_Without_Reinstalling

You will want to use Method 2: Updating without re-installing.

Once you have 64 bit Arch running, then you can assign more than 2 gigs of ram to the VM.
[ZenFone 2 General] hydkrash:
Thanks Bro, trying this now, will provide update in a bit.
[ZenFone 2 General] Kauser Ahmed:
need help, does the windows only work as emulated or it takes over as the system? I mean can we use the phone as a phone after installing windows??
[ZenFone 2 General] hydkrash:
Hi Kauser,

We can still use the phone.

Basically it's a virtual machine running in Android.

---------- Post added at 04:25 PM ---------- Previous post was at 04:23 PM ----------

Great stuff, 64bit confirmed working with 3GB ram.

However, seems to crash every now and then probably from the system attempting to free more ram up.

For whatever reason, windows seems to be really really painfully slow.

In system properties, my proc is showing as Intel Z3580 1.33Ghz.

Somehow seems something is throttling the CPU.
[ZenFone 2 General] Kauser Ahmed:
wow......... thanks a lot, I'm now running cm12.1 unofficial on my zenfone 2, so I can now install windows 10 on my phone and use it whenever I want?
[ZenFone 2 General] ycavan:
Re: memory

I was worried about the memory usage since our phones use like 1.8 gigs of ram without anything else running.

Re: processor speed

Our phones are 1.33 ghz processors that boost up to 2.33 so Windows shows that original speed. Actually, if you do $ cat /proc/cpuinfo from Linux or Android terminal, you'll see it says that there too.

Re: cm

You will need to check with the cm guys if they have kvm compiled into their kernel, otherwise qemu may not work correctly.
[ZenFone 2 General] Kauser Ahmed:
oh... ok, thanks
[ZenFone 2 General] base_band5:
I'm trying to format the 1st partition of the 64gb ext sdcard as exFat and the 2nd partition will be ext4. After flashing the latest KVM 2..20 kernel - my phone will not mount any exFat formatted ext_sdcard! I've used Windows 7 and Aparted to format it as ex_Fat, but the phone just refuses to mount it automatically or through Settings => SDCard => Mount. Any ideas?
[ZenFone 2 General] ycavan:
Sadly, Asus didn't give us exFAT sources for our custom kernels, so no exFAT support.
[ZenFone 2 General] base_band5:
Thanks for the quick update. I can now give up trying! lol
[ZenFone 2 General] cool_recep:
I am getting an error on Linux Deploy.

Checking mount points fail

The container is already mounted.

Solved this problem by removing and then updating Environment from Settings. Now facing another problem:

Retrieving base packages:

acl ... fail

And yes I tried two different repos.

Update: Talked to devs, should be fixed soon. https://github.com/meefik/linuxdeploy/issues/266
[ZenFone 2 General] ycavan:
great... now whatever the dev did prevents an i686->x86_64 in-place upgrade in Arch linux. ( You guys will notice that the Arch Linux x86-64 install doesn't work. )
[ZenFone 2 General] cool_recep:
Eveything is solved. Now Aparted does not detect SD card.

---------- Post added at 03:45 PM ---------- Previous post was at 03:33 PM ----------

Apated does not detect any storage. How did you even partition the device ?

---------- Post added at 04:07 PM ---------- Previous post was at 03:45 PM ----------

OK got aparted working after reastarting the phone. Duh! Want to install Windows into internal storage. How to partititon it ? There is no vFAT option in Aparted.

---------- Post added at 04:50 PM ---------- Previous post was at 04:07 PM ----------

So how do I install wemu ? The article does not even exist. https://wiki.archlinux.org/index.php/QEMU#Installing_QEMU

Installed with command:

sudo pacman -S qemu

The code is wrong.
[ZenFone 2 General] cool_recep:
Now I need to install samba which is not mentioned anywhere on the guide... Great.

---------- Post added at 06:15 PM ---------- Previous post was at 06:09 PM ----------

I have the MicroSD but Samba does not detect it. Why ?

/mnt/MicroSD No such file or directory.
[ZenFone 2 General] cool_recep:
Beacuse you did not tell it in the first page but in the 8th page...
[ZenFone 2 General] cool_recep:
Got it up an running finally.

View attachment 3456982
[ZenFone 2 General] sirnono:
Network

Hello

I also have installed the Red Hat Virtio Lan driver but i do not have any network access from inside the VM (eg "limited").

Did you need to alter the starting shell script or anything else to make it work ?

I installed windows 8.1

thanks

regards

Arnaud
[ZenFone 2 General] cool_recep:
And here is our video:

[YOUTUBE]PH7t7zdOyZc[/YOUTUBE]
[ZenFone 2 General] scienco:
Got it up finally...

Thanks for the great work!
[MENTION=684728]ycavan[/MENTION]

One small contribution from my side: when playing video games or flash games (that's why I need winxp on my cellphone), by putting "hardware acceleration" in the "display properties" from "full" to "none" would improve a lot the performance of the game.

[IMG="installing windows xp"]https://dl.dropboxusercontent.com/u/5750375/Screenshot_2015-09-26-01-20-20.jpg[/IMG]

[IMG="running windows xp"]https://dl.dropboxusercontent.com/u/5750375/Screenshot_2015-09-29-21-25-10.jpg[/IMG]
[ZenFone 2 General] mehran24:
hah Nice job buddy! I think im gonna install Win 10 on it.
[ZenFone 2 General] thesilence1:
Thanks for the guide ycavan.

Does anyone know how i can connect to spice from another computer on my network? The spice client i'm using cant find the server. I tried the android's, linux's, and win's ip.
[ZenFone 2 General] ycavan:
You would want to remove the addr=127.0.0.1 part of the spice line. I use that to prevent people from hijacking my virtual machine. :)
[ZenFone 2 General] thesilence1:
worked like a charm. i have usb redirecting working thanks to spice guide. i can check login using a smart card. i'm running out of things to do.
[ZenFone 2 General] :
Im speechless. WELL DONE !!!
[ZenFone 2 General] archangeles:
I need help, I'm stuck on step 7, my command prompt says E: invalid operation qemu-kvm I installed Debian, not sure what to do, any advice would help a lot
[ZenFone 2 General] TanHung.Bio:
I'm going to create Ubuntu ROm for Zen2 :D
[ZenFone 2 General] DrGit:
Good luck! I'm having one heck of a rough time figuring out which of Ubuntu's modified AOSP manifests to download - the CM-based tree is way outdated (CM10.1/2), as is the porting/building documentation. Even if you get past the lack of a CM12.1 tree and go with some other AOSP device tree for the ZF2, expect plenty of issues ahead.

I'm debating whether I should even bother trying to port Ubuntu Touch - personally, I'd prefer KDE Plasma Mobile on Wayland, but that's not happening anytime soon. I got 64bit Arch Linux to boot with KDE, but no 3D, sound, modem, or nearly anything else works without using Android drivers.
[ZenFone 2 General] archangeles:
any chance of someone sharing their bash script?
[ZenFone 2 General] De_A:
Have been trying to get this to work

got it to the install procedure for win8 or win10, but installation is aborted at around 50% with Error Code 0x8007045D. My guess is the qcow2 .img file grows untill 4GB and then can't grow further. According to "DiskInfo app" the filesystem of the MicdoSD partition for the iso and img files is vfat.

any ideas?
[ZenFone 2 General] Stevethegreat:
BTW now that we have the official bootloader unlock: http://xdaforums.com/zenfone2/general/official-asus-ze551ml-bootloader-unlock-t3224747

We can conceivably have a dual boot rom, one booting android (phone mode) and another Windows (PC mode)....
[ZenFone 2 General] thesilence1:
Archangel,

Try using the name of the debien package like "kvm". Could be others only found one guide stating debien entries.

---------- Post added at 04:59 AM ---------- Previous post was at 04:54 AM ----------

Fat32's file limit is 4 gigs. You'll have to change file systems (ext) or move your img to internal storage. Exfat isn't available on ycavans kernal.
[ZenFone 2 General] De_A:
Yes thanks, got it to work on the internal storage now.
[ZenFone 2 General] TheCherryKing:
Would I be able to run Windows 8.1 on the ZF2 without emulation?

I was wondering if there is a way to run Windows 8.1 on the Asus Zenfone 2 completly REPLACING Android. I have seen that Asus has released a bootloader unlocker and I was wondering if that would work.
[ZenFone 2 General] ycavan:
Give it a shot and let us know. :)

Fyi, the important thing is lack of Windows drivers.
[ZenFone 2 General] TheCherryKing:
Windows 8.1 running on ZF2.

There might be drivers. My main concern is finding a way to boot an Windows 8.1 .iso.
[ZenFone 2 General] thesilence1:
My upload speed under windows is very low. Can't figure out why.
[ZenFone 2 General] TheCherryKing:
Are you running Windows by emulation or are you running it natively? Are you using cellular data or Wi-Fi?
[ZenFone 2 General] thesilence1:
I'm using kvm. I've been Wi-Fi last two weeks. I run speedtest on both Android and Windows, but under Windows i get less than 1mbs. Idon't really a problem with web browsing, though. Some services timeout or just don't connect.
[ZenFone 2 General] ycavan:
Could you post your qemu script?
[ZenFone 2 General] thesilence1:
#!/bin/bash

qemu-system-x86_64 -full-screen -m 1G -enable-kvm -cpu host \

-drive file=/mnt/0/win10.img,format=raw -boot menu=on \

--usbdevice tablet -smp cores=2,threads=2,sockets=1 -vga qxl -monitor stdio -balloon virtio \

-soundhw hda -net nic,model=virtio \

-device ich9-usb-ehci1,id=usb \

-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,multifunction=on \

-device ich9-usb-uhci2,masterbus=usb.0,firstport=2 \

-device ich9-usb-uhci3,masterbus=usb.0,firstport=4 \

-chardev spicevmc,name=usbredir,id=usbredirchardev1 \

-device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 \

-chardev spicevmc,name=usbredir,id=usbredirchardev2 \

-device usb-redir,chardev=usbredirchardev2,id=usbredirdev2 \

-chardev spicevmc,name=usbredir,id=usbredirchardev3 \

-device usb-redir,chardev=usbredirchardev3,id=usbredirdev3 \

-net user,smb=/mnt/ \

-spice port=5901,addr=127.0.0.1,disable-ticketing $@
[ZenFone 2 General] ycavan:
Since you are using the virtio network module, I'm guessing there's some congestion or additional overhead with your Windows install.

There's also the very real possibility that our ZF2's wifi adapter doesn't like being shared.

Anyone else seeing this drop in network performance w/ windows under kvm?
[ZenFone 2 General] TheCherryKing:
Wi-Fi Problem

I would try running Windows directly on the ZF2 without emulation on the native hardware. Hopefully It will detect my SIM-Card.
[ZenFone 2 General] thesilence1:
Found a tread on google that said to turnoff tcp segregation offload. This wasn't possible in chroot, so i went into advaned driver settings and turned it off for trasmitting only. I can login to wow but unplayable at 0 fps and i can connect to a party on xbox app. I was getting 42 mbs in android and 5 mbs in windows, so it not full connection speed but good enough for services to reach out.
[ZenFone 2 General] 6sicSIX:
Has anyone noticed that the qemu process only uses 50% of the phones cpu when the guest is at 100% cpu usage?

Also in a windows guest it shows as two processors on two sockets, kind of explaining the low cpu usage..

I thought it would be simple so changed the qemu smp setting to:

-smp cores=4,threads=1,sockets=1

This now shows four cores in windows, and I can now max out the host cpu when the guest is maxed.. However, it just feels more sluggish and is almost unusable... Anyone have any ideas on this (i have tried smp 8 but the qemu process threads went up to 11 from 8 when smp is set to 4..) ?

I'm also having issues with the drivers, I only have resolutions between 1024x768 and 1600x1440 after installing the newest qxl windows 8 driver (qxlwddm-0.12) on windows 10 ..?
[ZenFone 2 General] thesilence1:
I tried to get hyper threading to work with 4 core and 2 threads each. I dont think android support it, i did a google search and nothing about android on a phone came up I also tried a few other combinations bit the 2 and 2 seems to work for me. both cpuz and antutu shows all 4 cores reaching up 2.3ghz. as for the resolution i use 1080.

---------- Post added at 08:29 AM ---------- Previous post was at 08:28 AM ----------

So the TSO disable only seems to work some of the time so im not sure why its so slow even on lte.
[ZenFone 2 General] thesilence1:
6,

Are using the red hat drivers?

https://fedoraproject.org/wiki/Windows_Virtio_Drivers

It has other hardware drivers also.
[ZenFone 2 General] 6sicSIX:
Yeah I am, from device manager I have installed the windows 8 qxl 0.12 driver, virtio network and virtio balloon drivers but to be honest there are so many that I'm not sure which devices require the drivers.

I did right click install all of the remaining inf files though to make sure. but still its still running slow compared to the YouTube video in this thread.

I will have another go when I get home and when the spice website comes back up

I also installed spice agent (vdagent?) which seems to have done nothing at all.

Did you install the spice qxl driver or the win 8 qxl driver?

What version of windows are you using?

Thanks for your help

My bash script by the way

#!/bin/bash
qemu-system-x86_64 -full-screen -m 1536M -enable-kvm -cpu host \
-drive file=/mnt/sdcard0/qemu/hda.img,format=raw -boot menu=on \
--usbdevice tablet -smp 4 -vga qxl -monitor stdio -balloon virtio \
-soundhw hda -net nic,model=virtio \
-net user,hostfwd=tcp::13389-:3389,smb=/mnt/MicroSD \
-spice port=5900,addr=127.0.0.1,disable-ticketing $@
[ZenFone 2 General] thesilence1:
6,

I used the wddm qxldod driver. I also installed everything from the iso. Also for spice drivers you have to dl the files below the exe. The exe is useless.
[ZenFone 2 General] 6sicSIX:
Okay I think I've found the problem; smp on its own sets the amount of sockets/cpus not cores, and consumer versions of Windows only support two cpus.

I changed to smp 2 and the cpu info in windows stayed the same, as did host cpu usage.

I did revert to using -smp cores=4,threads=1,sockets=1 but again the performance felt slow even though I could reach 100% host cpu usage instead of just 50%

The best performance I have found so far is:

-smp cores=3,threads=1,sockets=1

I assume that the performance is worse with -smp cores=4,threads=1,sockets=1 because android processes are being scheduled on the same core as windows.

Anyone else want to try -smp cores=3,threads=1,sockets=1 and let me know what they think?
[ZenFone 2 General] ycavan:
That sounds pretty reasonable. :)
[ZenFone 2 General] neptvne:
guys do you think the displaylink is ok with zenfone 2...
[ZenFone 2 General] m0r001:
info

Hello, friend's

questions:

- X64 linux distro which use as a base light with everything you need x windows 7 x64?

- As you can 'mount on win 7 x64 a pendrive USB 2.0 or USB 2.0 DVB TV?

* (also to limit network via virtual LAN)

- Videos with acc. 3d possible now or in the future?

- Sound problems at times working spice there and win 'solution?

- The network there is' a video or a guide x set good remote desktop instead of spice?

Thanks in advance x response.

bye :)
[ZenFone 2 General] ycavan:
If you don't need X in your VM, I don't think you would need to have X running on your phone.

Yes, you can mount USB devices with an OTG cable. Not sure about using DisplayLink with USB 2.0, give it a whirl & let us know. Right now, the USB 3.0 DisplayLink devices I have all seem to hate not having a "supported" graphics card in my Windoze VM's.

No accelerated 3d until Asus/Intel/Imagination Technologies provides us with 64-bit display drivers.

It might be possible if someone recompiled Qemu for Android X86 & the Virgil 3D Project advances.

I haven't had any sound issues with Spice. What kind of problem are you seeing?

I believe I put in examples in this thread to show you how to set up ip forwarding for RDP and such. Microsoft's RDP client on Android is pretty sweet.
[ZenFone 2 General] m0r001:
hello, thank you again,

then x audio in windows 7 x64 config. -m 2048M, -smp 2 -soundhw hda or ac97 "

when loading a video with" media player classic "and codec" mega pack k-lite "in the first three seconds sound is ok after I see only video without sound.

Possible solution?

did not you say what linux distro 'more' performance as the basis x run windows 7 x64 in kvm.

also there is' real difference in performance between win 32-bit and 64-bit?

a good script confing kvm where can I find it?

bye : )
[ZenFone 2 General] Runnerman2:
Stuck on the installation

Hello,i used win 7,8,10,but i stuck on installation part,when i choose advanced,windows shows me that i have 0.0 mb,after i tried upgrade option,but windows write to me that i install it from a flash drive.

My script:

qemu-system-x86_64 -full-screen -m 2G -enable-kvm -cpu host \

-drive file=/mnt/0/win.img,format=raw -boot menu=on \

--usbdevice tablet -smp 4 -vga qxl -monitor stdio -balloon virtio \

-soundhw hda -net nic,model=virtio

$@

I removed spice and net user line because it shows an error at the start
[ZenFone 2 General] TheCherryKing:
No Network connection

I am running Windows 8.1 Pro x64 on the Zenfone 2 551ML. I am using KVM and Aspice. I have installed the Virtio Network drives but I still get the "limited" connection with the ethernet logo and yellow triangle. Please help.
[ZenFone 2 General] aniruddha007:
Is it possible to dual boot android and Windows 8.1
[ZenFone 2 General] gouster3:
Is possible to run Windows 10 on ASUS TF103C? i not found guide to unlock bootloader on it, no custom kernel, rom or recovery.
[ZenFone 2 General] goohac:
Hackintosh zen fone 2

Sir can you try and hackintosh zen fone 2?
[ZenFone 2 General] 111gopher:
ZF2 mount storage

Hello,

I have successfully unlocked bootloader, installed Linux via Linux deploy and now I have problem with mounting external storage - I have tried ext2, ext4 and exFAT but it is impossible for me to mount this storage.

I tried to install modul exfat.ko via command:

insmod exfat.ko but system notified me about:

insmod: init_module 'exfat.ko' failed (Exec format error) so I cannot use exfat file system.

When I tried partition SD card with ext2/ext4 file system first partion was FAT32 (mmcblk1p1) and second was ext2, ext4 (mmcblk1p2) I cannot mount to linux this file system.

Could somebody help me?

Many thanks.

Lukas