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
>
>
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to