Hi Avadh, Thanks for that prompt reply. I installed kpartx and tried the first command. It gave me following errors:
Missing major number for persistent device. Couldn't create ioctl argument. Missing major number for persistent device. Couldn't create ioctl argument. last_lba(): I don't know how to handle files with mode 41ed read error, sector 0 read error, sector 1 read error, sector 29 Missing major number for persistent device. Couldn't create ioctl argument. and it does not create the loop* files or folder in /dev/mapper. I also tried the other approach, using ne2k_pci. But I can neither use ssh nor wget to get further softwares. Both the commands are not found. I also tried apt-get install, however it shows the error: "Cannot initiate connection to archive.ubuntu.com:80 - connect (101 network is unreachable). please let me know, how to solve this problem. thanks again for your help. Aastha. On 19 July 2010 20:52, avadh patel <[email protected]> wrote: > Hi Aastha, > > There are couple of methods to do this. > > 1. If you have root access to any linux machine where you can mount the > disk image, do the following > - use 'kpartx' to create loop back devices from your disk image > partitions. (if you dont have kpartx install it from your linux repo.) > $ sudo kpartx -a [your_disk_image] > - it creates loopback devices in /dev/mapper/loop* > - mount this loop-back device using 'mount' > $ sudo mount -o loop /dev/mapper/[your_loopback_device] /mnt > - Now you can access your disk image in /mnt to copy your applications > etc. > - To delete the loopback device > $ sudo kpartx -d [your_disk_image] > > 2. Second method is to use the network interface in qemu. Boot the qemu > disk image with 'ne2k' NIC emulation model. Use following runtime option for > that: > $ qemu/qemu-system-x86_64 -net nic,model=ne2k_pci [other default > options] > Note: Current disk image kernel has driver for 'ne2k_pci' device so we > have to use this device. > > Once you boot up with network interface enabled, you should be able to > connect to any machine via SSH or download binaries from web page using > 'wget'. > > - Avadh > > On Mon, Jul 19, 2010 at 7:06 AM, Aastha Mehta <[email protected]> wrote: > >> hello, >> >> i am a student trying to use MARSSx86 simulator for my experiments. i >> would like to know how do i run test programs on the guest OS and monitor >> the performance for them? If i wanted to write my own programs, compile and >> run them, i would need some compiler like gcc. how should i install a gcc on >> the instance created of the VM? and how could i save this instance, to use >> it next time? >> >> anticipating an early response. >> >> thanks and sincere regards, >> >> Aastha. >> >> -- >> Aastha Mehta >> 4th Year, B.E. (Hons.) Computer Science, >> Birla Institute of Technology and Science, Pilani >> Pilani - 333031 >> Rajasthan >> >> _______________________________________________ >> http://www.marss86.org >> Marss86-Devel mailing list >> [email protected] >> https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel >> >> > -- Aastha Mehta 4th Year, B.E. (Hons.) Computer Science, Birla Institute of Technology and Science, Pilani Pilani - 333031 Rajasthan E-mail: [email protected] (M): +91-9950676030 -- Aastha Mehta 4th Year, B.E. (Hons.) Computer Science, Birla Institute of Technology and Science, Pilani Pilani - 333031 Rajasthan E-mail: [email protected] (M): +91-9950676030
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
