yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 General] goohac:
I am not using zen fone at the moment it is quite difficult for me to retrieve the phone and send you a screen shot.

What kind of errors are you seeing when you run the script?

Took me two weeks averaging 3 hours daily to get the script to run. After that just Windows logo and win 10 installed in about 15 mins.

The errors are most probably due to typos: missing dashes, extra spaces, missing backslash, no capital letters, extra carriage returns. I had like thirty typos for a six line script.

Provided the iso you have downloaded is Bootable, any time soon after you press start_win.sh, you will be greeted with qemu pls type help for more info then straight on to aspice but your iso may not bootable.

---------- Post added at 07:19 AM ---------- Previous post was at 07:14 AM ----------

Anyways I copied ycavan script word for word. Remember not have any extra spaces after backslash and end each line with a backslash, as mentioned by Ycavan.

Linux is very particular about this sort of things.

---------- Post added at 07:19 AM ---------- Previous post was at 07:19 AM ----------

Anyways I copied ycavan script word for word. Remember not have any extra spaces after backslash and end each line with a backslash, as mentioned by Ycavan.

Linux is very particular about this sort of things.
[ZenFone 2 General] goohac:
If you see error messages like incorrect file format you probably type format=raw wrongly like with space - or capital letters. Cannot find USB tablet again typos. No such device monitor studio which should be typed as monitor stdio. You get the drift.
[ZenFone 2 General] troy5890:
I'll go and see if I made any errors when typing out the script. Much appreciated goohac
[ZenFone 2 General] troy5890:
Alright I was close to booting it up, but I realized I don't have any KVM modules in my lib/modules. It gives me an error and I'm not sure if I should compile it or download via terminal
[ZenFone 2 General] goohac:
Have you flashed ycavan's custom kernel? It contains the kvm modules. However if you are running the latest build eg android m beta this may result in boot loop as ycavan's kernel are compiled for build 2.19 and build 2.20.

Refer this thread page 1 step 2:

Start up terminal emulator

Type su

Type lsmod (to check for modules)

As you said they are not there so type

Insmod /lib/modules/kvm.ko

Insmod /lib/modules/kvm-intel.ko

Type: exit twice to quit terminal emulator

The modules may be listed in terminal emulator as loaded but not found in qemu kvm. I think it's something to with the latest version of qemu kvm.

I'll try to remember how I solve that.

Also have you performed step 7 and 7a install qemu kvm.

As for downloading and installing the kvm modules from the Web I think it's not necessary. You most probably haven't loaded the modules yet haven't flashed the custom kernel (beware of boot loop) or there is this new bug in the latest version of qemu kvm modules listed in terminal but not listed in Linux. Or you haven't install qemu kvm yet.
[ZenFone 2 General] troy5890:
I'm running Octodex kernel for beanstalk running android marshmallow. I installed the qemu-kvm already. I'll try to refer to Ismod again and see if it will work
[ZenFone 2 General] goohac:
Since you are running the Octodex kernel you don't have the kvm modules in the phone itself. You have to download the modules from the Web. Never done that before. You have to google it.

If you are impatient you can try running without kvm. That is take out kvm-enabled from the start-up script. Windows may be very slow. Or add disable kvm to the script. You have to google it.
[ZenFone 2 General] troy5890:
Okie dokie, I'll get right on it and see if I can do that. Thank you
[ZenFone 2 General] goohac:
Check if your cpu has Intel VT-x technology to support kvm type, in Linux:

egrep -c '(vmx|svm)' /proc/cpuinfo

if Linux returns 1 means you can run kvm if 0 means the kernel does not support Intel Virtualisation technology no point in trying to add the kernel modules. You can also type kvm-ok if Linux answer you can run kvm then you can go about adding the modules.

If not either you change kernel or run Windows without kvm.
[ZenFone 2 General] maciek90:
Why? This kernel has KVM support.
[ZenFone 2 General] troy5890:
It returned 1 and I looked up the processor to see if it has Intel virtualization
[ZenFone 2 General] goohac:
Have you tried without kvm enabled just to get a feel of how it works. Windows may run at one fifth speed making it unusable. Also it may be harder, instead of taking out -enabled kvm, you may have to install qemu instead of qemu kvm.

Also the kernel needs features like bridge networking, ntfs etc. Refer to link to ycavan's kernels on page one.

I don't how to compile modules to kernel so I can't help you with that.

Maybe you can flash ycavan's kernel leave the rest. Android m may still run. It takes seconds to flash kernels using zen fone custom recovery (twrp). Switch between kernels. Or you may hard brick your phone.

There is a apk titled multirom manager for zenfone 2 I found on the Web, can't find it in Google Play (banned?). Maybe it works or its a fake.

This is the best I can help you. I am beyond my experience here. Anything I add may cause more harm than good. If you don't here anything from me about anything it means I know nothing about it.

No need to thank me so much. I spent 160 hours installing win10 in zen fone 2 and will help out anyone if I can. Good luck.

---------- Post added at 04:58 PM ---------- Previous post was at 04:18 PM ----------

Have you heard the latest news or rumuors Microsoft is going to release in 2017 surface phone with Intel processor and 6gb ram. Maybe already comes with Windows 10 desktop pre-installed. 5.5 inch. Cost about $1000.
[ZenFone 2 General] troy5890:
The cost is outrageous. I'll be sure to start over and add disable to the script. Maybe I'll be able to boot it up like you said, just with slow speeds.
[ZenFone 2 General] j4nitor:
Anyone got this working with RDP? When I added the port forwarding line to the script, soon after logging into Windows aSpice gives an error saying the connection was interrupted. Seems like RDP may be interfering with it, except Remote Desktop app cannot connect either.
[ZenFone 2 General] aditdragonfire777:
my tips for everyone. install rom : BIGROM new version because support KVM and ExFAT / NTFS. buy 128 GB micro sd. split partition on micro sd to be 2GB for SWAP. and the other for ExFAT. install RAM EXPANDER ($9.99 in the market) for increase your RAM using 2GB swap partition on micro sd. make virtual HDD 50GB for install windows 7. because windows 7 didn;t need install driver (not like win XP). but the life of micro sd will decrease because SWAP. or you can using internal memory for SWAP using files on RAM EXPANDER.

---------- Post added at 06:31 AM ---------- Previous post was at 06:25 AM ----------

every custom ROM the path of micro sd is different so you must know path of your micro sd on your system. i already tried some custom ROM on my zenfone 5 and i choose BIGROM for my zenfone 5. because that rom based on lastest ORIGINAL ROM WW 3.24.40.87. all function working correctly (camera, GPS insternal, radio) and enable KVM and support ExFAT/NTFS and etc.

---------- Post added at 06:33 AM ---------- Previous post was at 06:31 AM ----------

if you using other custom ROM and Original ROM, i cann't help you because different custom rom. but i help using my knowledge.

---------- Post added at 06:42 AM ---------- Previous post was at 06:33 AM ----------

maybe if you have trouble access micro sd on other 3rd app maybe tou must edit platform.xml on /system/etc/permissions. you can search about that information using google search machine.

---------- Post added at 06:48 AM ---------- Previous post was at 06:42 AM ----------

my question is when asus launch marshmallow OS for zenfone 5 because the expert on custom kernel (not me) need it for upgrade BIGROM to be marshmallow.
[ZenFone 2 General] j4nitor:
Well I managed to get it working in RDP mode, but the whole thing hogs more memory than it does while using aSpice, and definitely a lot more than I allocated to the VM. Going to try Windows 7 next since it seems Win 10 does not like to use a paging file very much. After that I'll probably go for Remix OS for PC.
[ZenFone 2 General] aditdragonfire777:
why use win 10 on android? what do you want to install on windows 10 on your android?

---------- Post added at 06:33 AM ---------- Previous post was at 06:28 AM ----------

if you have problem about memory on android using qemu, you can buy zenfone 2 deluxe edition with 4GB memory, intel Z3590, internal 128GB, free 128GB MicroSD include (if true). why you not buy MicroSD 128GB and using RAM EXPANDER ?
[ZenFone 2 General] aditdragonfire777:
because ram expander is paid version you can use 98swap_data_v300 and edit size of swap file like 2048. it will run at unit.d folder. this script will use internal memory (/data).
[ZenFone 2 General] aditdragonfire777:
who ever tried zenfone 550ML (Z008) install windows using KVM? i confusing search custom ROM support KVM for 550ML.
[ZenFone 2 General] aditdragonfire777:
anyone try install windows with qemu on ARM proc not intel proc? what the different on process installation?
[ZenFone 2 General] DrGit:
Yes, though it will be much slower until the MTTCG (multi thread safe code generator for taking advantage of multiple processor cores in non-KVM emulation) patches are merged in upstream QEMU. I started porting the Freedreno KMS driver and DSI panel drivers to the LG G4, which, coupled with the QEMU MTTCG work and my WIP msm DRM ioctl patch for QEMU, may eventually enable 3D-accelerated x86[-64] emulation on ARM[64] at acceptable speeds. I'm currently stumped on getting anything to display, but I'll be releasing my kernel patch (~40MB of backports to kernel 3.10 and lots of new code) shortly, even though it's not quite working yet.

To get started, compile QEMU with the MTTCG patches and run it in an ARM Linux chroot. Until QEMU has a GUI for Android, the chroot part is a necessary waste of space.
[ZenFone 2 General] aditdragonfire777:
can you make tutorial from start until running windows on android? please step by step. i didnt have android using ARM so i cant try it.
[ZenFone 2 General] DrGit:
I'll write a guide when I get the display drivers working and clean up the kernel patches for release. Be warned, it is extremely convoluted, and not a single simple "make install". There's still userspace code to fiddle with after that, and I've been rather busy with other projects lately, so don't expect anything from me before January. Until then, you can either find and compile QEMU with the MTTCG patches or wait until they're merged upstream, and it's pretty straightforward from there - though that doesn't get you 3D acceleration yet. I don't duplicate existing work, so you're on your own for a step by step guide right now.
[ZenFone 2 General] aditdragonfire777:
http://www.linux-kvm.org/page/Guest_Support_Status#Windows_Family
[ZenFone 2 General] android_intuitive:
Can you tell us how and where to download and apply MTTCG patches ?,and does this patch works for same architecture between the host and guest (i'd says x86 -> x86) because if it does,it could help to speed up the emulation speed on my zenfone 5
[ZenFone 2 General] DrGit:
The MTTCG patches are floating around on the QEMU mailing lists, check the QEMU Wiki for their status. The Wiki is not always up to date, just a heads up. Some of the patches have already been merged upstream, some are pending review, and some haven't been written yet. It's too much for me to keep track of right now between work and my bazillion other uncompensated personal projects, but the next few releases of QEMU should have more and more of the MTTCG stuff merged, so if you don't understand the code, familiarize yourself with the terminology so you know what to look for in the changelogs when new releases happen.

As I understand it, the MTTCG work only benefits same-architecture QEMU emulation where TCG (binary translation) is used - that is, when KVM, Xen or other hardware based virtualization is unavailable. There isn't really any performance advantage over KVM for same-arch system emulation. In fact, KVM should always be faster than TCG since there is no binary translation overhead. However, if KVM or other forms of virtualization are impossible on the chipset in the ZenFone 5, then yes, the MTTCG work should help performance a lot versus single threaded system emulation.
[ZenFone 2 General] android_intuitive:
Thanks,i'll keep an eye of it.Hope it'll comes with new Qemu update.Actually there is kvm kernel for zenfone 5.But the problem is,when i want to run windows 8.1(with the latest update),10 it won't boot.Qemu logcat showing 0x0000 on qemu procces when i checked it.It seems kvm didn't succesfully booted windows.My hardware is meet the requirement for running windows,even there is nx enabled in my kernel.But when i run it with tcg,it booted.But the performance was really poor,its really unusable.Hope mttcg could help the performance of it .
[ZenFone 2 General] zf2-fan:
I don't have much experience with Linux, but I'm happy that I managed to get Windows 7 running on my ZF2. And I'm pretty surprised how fast it is. So great job, ycavan (and all others supporting this thread)!

Unfortunately I still have 3 smaller problems. Maybe somebody is willing or able to help here.

1. Timezone

I'm living in Germany. So I have set my ZF2 to the right timezone (CEST, which it UTC+2), I have set the chroot Linux system to the correct timezone and also Windows. But with every start of Windows the time in the Windows system is 2 hours past. So when it's actually 11:06 CEST (which is 9:06 UTC) then the phone is set to 11:06 CEST, the Linux system is set to 11:06 CEST, but Windows comes up with 9:06 CEST. If I update the time with a time server the time is correctly set to 11:06 CEST.

Has somebody experienced the same problem? Is the any solution? Of course I could synchronise the time with a time server everytime windows is starting, but that's only a workaround.

2. Keyboard

I use the German keyboard layout on my ZF2 and Windows. For every key that is entered by [AltGr] on the Windows keyboard I need to press [Ctrl][Alt] on my ZF2. For example: "" and "@" are such keys in the German keyboard layout. Both keys are on the Android keyboard, but simply use these keys is doing nothing, only togehter with [Ctrl][Alt] and the key "" or "@" makes it. Also the "Backspace" key (deleting the character left of the cursor) is without function which makes it really hard to enter something as there is also no "Delete" key.

Has somebody experienced the same problem? Is the any solution?

3. Access to MicroSD card

I would like to access the MicroSD card in my ZF2 via Samba in Windows (read/write). But I'm not able to make it running. Can somebody help with this?
[ZenFone 2 General] android_intuitive:
I don't have much knowledge,so i'll see what i can do to help you

-Timezone: add this parameter to your qemu options -realtime

-Keyboard: unfortunately i can't help you this,cuz i've never change the keyboard rather than U.S

-Mount options:Make sure you have installed samba server.On ubuntu type sudo apt-get install samba.Then in linux deploy,make sure on mount points (Downloads logo-->>Mount points) add path to your SDcard.Internal memory probably automatically mounted default.and add this parameters on qemu options -net nic,model=virtio -net user,smb=/mnt/?? (Change ? To mount point,e.g 0 for int sdcard,MicroSD for ext sdcard)

Hope its help
[ZenFone 2 General] zf2-fan:
I don't think this helps.

But I found a solution for the timezone problem by myself. Adding this DWORD to the Registry in Windows will solve the problem:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]

RealTimeIsUniversal = 1
[ZenFone 2 General] android_intuitive:
I forgot that was wrong parameter.Here is the right parameter -localtime
[ZenFone 2 General] giovan797:
someone has the win of the installation of video on zenfone 2? if the tutorial link.

thank you. :fingers-crossed::fingers-crossed:
[ZenFone 2 General] sfrsh:
ycavan're dead
[ZenFone 2 General] arnaldo.vitalizi:
So i have seen in the various videos posted around, that the performance of Windows 10 looks a little bit sluggish, especially animationwise, and i was wondering. does it run as shown in the videos, or better and that effect is just given from the video recording software?

Also, like other users in this thread, i wonder if it would be possible to actually install Native WIndows 10 on this device and make it dual boot with Android. In theory it should be possible, also considering that Asus released a bootloader for the Zenfone 2.

Anyone of you guys had any luck with that?? [MENTION=265128]yca[/MENTION]ravan did you manage to accomplish that?

Thanks in advance

P.S. I am willing to cooperate with anyone working on this. :)
[ZenFone 2 General] azumi011:
autocad can run??=) sim card working???
[ZenFone 2 General] Punk_Oll:
I would be interested in native dual boot however as the bootloader is very different from a desktop bios

issues would arise straight away for windows looking for an mount point an idea would be to create some kind of windows based zip for flashing

something I have no idea in creating
[ZenFone 2 General] steinwayer:
Hello Ycavan! First of all thank you very much for your amazing achievement!! This really is super cool!!

I created a thread to discuss about the possibility to install Windows 10 natively and maybe in dual boot with Android :)

Since you are the top expert in this matter on the ZF2, i would love to have your opinion on that :)

This is the thread:

https://xdaforums.com/zenfone2/general/windows-10-native-installation-zenfone-t3558280

What do you think about it?? Ever tried to do it?
[ZenFone 2 General] Val99:
Hello, I would like to have a tutorial by steps (or video) on how to CORRECTLY install Linux on Linux Deploy. :)

I say that because I'm stuck in the step where you have to install Linux because after it installs, it skips most of the parts of START and fails to initialize the SSH server and refuses any SSH connections. :crying:
[ZenFone 2 General] bahaa87:
We need a video for all this instructions plz.

I have the same problem which happened with [MENTION=6951392]Val99[/MENTION]
[ZenFone 2 General] bahaa87:
Can any one explain what should I do in 6,7,8 and 9 in this intro? Plz

---------- Post added at 02:15 AM ---------- Previous post was at 02:14 AM ----------

Plz help me [MENTION=684728]ycavan[/MENTION]
[ZenFone 2 General] goohac:
USB problem

I can get iTunes in win 10 in zf2 to recognise my iPhone by USB otg so much so that iTunes offered to upgrade it to iOS 10.

But my Nexus 5 and another zf2 is completely not detected.

I have installed USB utilities and tried all the fixes but nothing worked.

Has anyone success with the advice and know the fix? Thank you.
[ZenFone 2 General] TFGBD:
For those that want it, some guy in India made a video tutorial of installing Windows 10 on the Zenfone 2:

https://www.youtube.com/watch?v=rsLpoAKJEno&t=566s

---------- Post added at 04:20 PM ---------- Previous post was at 04:19 PM ----------

I'm surprised there isn't more interest in this. It is simply amazing. The Zenfones are still smaller than the GPD Win and they still run full Windows. Anyway, can someone with this working on the Zenfone 5 take some pictures/videos? I'd like to see the differences. How much RAM can you allocate for Windows?

Also, can someone recommend a brand or model of SDHC card to use? Even the fast one I bought seemed too slow to run Windows from so I just installed it on the internal 64GB storage. It's much faster there than an SDHC card. Also, to use the SDHC card, I had to use a split .vmdk disk image so it would fit on a FAT32 formatted card.

---------- Post added at 04:38 PM ---------- Previous post was at 04:20 PM ----------

That's amazing that you got an iPhone to connect. It may be that your other phones draw too much power for the ZF2's tiny microUSB port. Have you tried a powered USB hub?

---------- Post added at 04:45 PM ---------- Previous post was at 04:38 PM ----------

I have a slightly easier method for using QEMU-KVM on Android. It involves a GUI frontend for QEMU-KVM. If you want, you can export your QEMU command line to a .sh shell script file and then run your VM like the first post by ycvan shows but I like to boot my machine from the GUI when I'm testing the VM. The GUI even lets you add another CD .iso or USB devices at VM runtime.

When I get the chance, I'll post my version of the install guide that involves configuring QEMU with a GUI.

---------- Post added at 04:47 PM ---------- Previous post was at 04:45 PM ----------

Has anyone ever had success getting the AT&T ASUS ZenFone 2E to use KVM?
[ZenFone 2 General] Hungarian888:
Hello, guys! Are there any KVM enabled kernels for the ZX551ML (Z3590, 64GB), and is it possible to install Windows 10 on it (right now)? If not I won't buy it. :(
[ZenFone 2 General] alvavaca:
After hours of errors I realized to install windows 10 on zenfone 2. Its very smooth and amazing. For ease to use, I create first a Windows 10 vdi image in virtualbox and put it in my sdcard. Change the format from raw to vdi (see my script attached) and install samba in linux for error with net smb, and thats it.....sorry for my bad english. My rom is RussiaNBeaRReborN+v1.3+Unified+Z00A-Z008. It has kvm kernel included. In external sd (microsd) the read speed is slow, so you must put the img or vdi file in internal storage.
[ZenFone 2 General] bahaa87:
Plz can you explain step by step or video.

Up to now I can't install windows in my zenfone 2.

Plz and thanks
[ZenFone 2 General] 2D-Kun:
So RussiaNBeaRReborN stock kernel has kvm included?
[ZenFone 2 General] 2D-Kun:
can you write a guide on installing this? im stuck at cd /mnt thing
[ZenFone 2 General] 2D-Kun:
im stuck, i don't know to create shell script -_-
[ZenFone 2 General] alvavaca:
Yes, it has
[ZenFone 2 General] TFGBD:
Does anyone know how to set kernel parameters on the Zenfone 2? I'm trying to follow this guide and set options kvm-intel nested=y

But I don't know where to put it. There is no /etc/modprobe.d on the ZF2.

https://box.matto.nl/nestedkvm.html

Any ideas? Do I need to flash a whole different kernel to get this working?
[ZenFone 2 General] alvavaca:
Hi ycavan:

I managed to install Mac OsX SnowLeopard on zenfone 2 following your guide of kvm and making some changes, but at the start I do not have access to the keyboard or the mouse, can you help me with this?
[ZenFone 2 General] alphaprosper12:
Can't mount /lib/modules/ , how can I use kvm modules in my linux?

Could not access KVM kernel module: No such file or directory

failed to initialize KVM: No such file or directory

and that's why this pop up :(
[ZenFone 2 General] goohac:
Are you using the correct vnc viewer. Only few vnc viewer support mac os. The one I am using is bvnc.

Also because there are no mac tablets maybe you can plug in a PC's mouse and keyboard via USB hub to ZF2 to get it working.

Also in qemu version 2.9 they have applied a patch by Dennis Jordan to run mac os on touch screen tablet mode so that you can use -USB tablet in your script.

While you are at it why not try to boot mac os sierrra.

The link to the start-up script is github kholia OSX-KVM.

The link to a 100% working mac os Sierra iso is https://mega.nz/#F!5100HZoS!tlVV9FNN8uIpRH40Pm_9BQ

Can you post the link to the snow leopard iso you downloaded. Also you start up script and boot flags. Thanks
[ZenFone 2 General] alvavaca:
I make a guide: https://xdaforums.com/zenfone2/general/guide-mac-osx-snow-leopard-zenfone-2-t3611222?goto=newpost i solve the not recognized mouse problem with a kext for mac qemu-kvm posted on a mac qemu project. I dont think there are any problem installing sierra, maybe you can try?
[ZenFone 2 General] Tuanies:
If you have a PC with GeForce GTX graphics that supports Gamestreaming, download Limelight and it'll let you connect to your PC for game streaming.