Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-24 Thread Xin Tong
i got it working with libguestfs. libguestfs is awesome at manipulating guest VM images. Xin On Tue, Apr 24, 2012 at 4:45 AM, Mulyadi Santosa wrote: > On Tue, Apr 24, 2012 at 02:09, Xin Tong wrote: >> I am not too sure what you mean by raw image. what i have is an *.img >> file that is bootabl

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-24 Thread Mulyadi Santosa
On Tue, Apr 24, 2012 at 02:09, Xin Tong wrote: > I am not too sure what you mean by raw image. what i have is an *.img > file that is bootable by QEMU. will kpartx  work ? try to use "qemu-img info" to find what format the file uses... -- regards, Mulyadi Santosa Freelance Linux trainer and c

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Xin Tong
On Mon, Apr 23, 2012 at 4:38 AM, Kevin Wolf wrote: > Am 22.04.2012 18:37, schrieb Xin Tong: >> i have an OS image that does not have network drivers. are there any >> other ways to copy a benchmark onto the os image ? > > If it is a raw image you can use kpartx to get block devices on the host > t

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Xin Tong
ahhh. got it working for one of the images. the other image, when i try to boot it up. i do not see /dev/cdrom in it. however, when i go to the qemu monitoring window, i do see ide1-cd0 : type:cdrom, removeable=1 ... Any suggestions ? Thanks Xin On Mon, Apr 23, 2012 at 1:32 PM, Xin Tong wrote

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Xin Tong
i also issued the change ide-cd0 /home/xtong/qemu/qemu-0.14.1/x86_64-softmmu/ubuntu-11.10-server-amd64.iso in the qemu montoring tool. where can i find the inserted cd rom in the guest os ? Xin On Mon, Apr 23, 2012 at 1:17 PM, Xin Tong wrote: > I tried to insert a cdrom using this command. but

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Xin Tong
I tried to insert a cdrom using this command. but when i go under the guest /dev/cdrom. i see nothing ./qemu-system-x86_64 -hda /home/xtong/qemu/qemu-0.14.1/x86_64-softmmu/debian_lenny_amd64_standard.qcow2 -cdrom /home/xtong/qemu/qemu-0.14.1/x86_64-softmmu/ubuntu-11.10-server-amd64.iso On Mon,

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Zhi Yong Wu
On Mon, Apr 23, 2012 at 5:00 PM, Zhi Yong Wu wrote: > On Mon, Apr 23, 2012 at 4:46 PM, Zhi Yong Wu wrote: >> On Mon, Apr 23, 2012 at 4:41 PM, Zhi Yong Wu wrote: >>> On Mon, Apr 23, 2012 at 4:29 PM, Stefan Hajnoczi wrote: On Sun, Apr 22, 2012 at 5:37 PM, Xin Tong wrote: > i have

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Zhi Yong Wu
On Mon, Apr 23, 2012 at 4:46 PM, Zhi Yong Wu wrote: > On Mon, Apr 23, 2012 at 4:41 PM, Zhi Yong Wu wrote: >> On Mon, Apr 23, 2012 at 4:29 PM, Stefan Hajnoczi wrote: >>> On Sun, Apr 22, 2012 at 5:37 PM, Xin Tong wrote: i have an OS image that does not have network drivers. are there any >>>

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Zhi Yong Wu
On Mon, Apr 23, 2012 at 4:41 PM, Zhi Yong Wu wrote: > On Mon, Apr 23, 2012 at 4:29 PM, Stefan Hajnoczi wrote: >> On Sun, Apr 22, 2012 at 5:37 PM, Xin Tong wrote: >>> i have an OS image that does not have network drivers. are there any >>> other ways to copy a benchmark onto the os image ? >> >>

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Zhi Yong Wu
On Mon, Apr 23, 2012 at 4:29 PM, Stefan Hajnoczi wrote: > On Sun, Apr 22, 2012 at 5:37 PM, Xin Tong wrote: >> i have an OS image that does not have network drivers. are there any >> other ways to copy a benchmark onto the os image ? > > You can insert a CD-ROM: > > (qemu) info block > ide1-cd0: r

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Kevin Wolf
Am 22.04.2012 18:37, schrieb Xin Tong: > i have an OS image that does not have network drivers. are there any > other ways to copy a benchmark onto the os image ? If it is a raw image you can use kpartx to get block devices on the host that you can use for mounting the guest file system on the hos

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Stefan Hajnoczi
On Sun, Apr 22, 2012 at 5:37 PM, Xin Tong wrote: > i have an OS image that does not have network drivers. are there any > other ways to copy a benchmark onto the os image ? You can insert a CD-ROM: (qemu) info block ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] ... (qemu

[Qemu-devel] copy benchmarks onto qemu

2012-04-22 Thread Xin Tong
i have an OS image that does not have network drivers. are there any other ways to copy a benchmark onto the os image ? Thanks Xin