OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Sep 25, 2018 5:35 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Reading an ISO file for virtualization
PostPosted: Wed Sep 12, 2018 9:38 am 
Offline
Member
Member

Joined: Wed May 02, 2018 1:26 pm
Posts: 53
Hello,

is it possible to read an ISO image in memory just like an elf file in regard to finding its entry point or start address? I just finished setting up VMX on my OS and I also successfully entered the guest by setting the GUEST_RIP field in my VMCS to a dummy function. However, I wanted to try it on a real guest OS, e.g. a linux image. For that to work, I would need to load an ISO image into memory and try to get its entry point.

But this would only work if an ISO image has got the same structure as an elf, which is obviously doesn't.

I hope you can help me understand how to achieve this, maybe in connection to the ISO9660 article on OSDev.


Top
 Profile  
 
 Post subject: Re: Reading an ISO file for virtualization
PostPosted: Wed Sep 12, 2018 10:46 am 
Offline
User avatar

Joined: Mon Sep 03, 2018 2:25 am
Posts: 10
An ISO file is a filesystem so first you would need to create an ISO9660 driver to extract the file that needs to be virtualized, and then when you have the file in memory you can have the ELF loader load the file and then you can use VMX to run the file. Please do note that to run the Linux kernel a lot more infrastructure needs to be in place and you should probably just port qemu or bochs.
-thomtl


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group