qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] running qemu with image file on a block device


From: udit agarwal
Subject: [Qemu-devel] running qemu with image file on a block device
Date: Sun, 24 Jun 2012 18:49:52 +1200

Hi,
 I have set up a block device of 20G on my hard drive and is located at /dev/sda2. Now I have created a raw image inside this device via command:
 "hp1:~ # qemu-img create -f raw /dev/sda2:server.img 10G"

Then I copied the iso file on this device via command:
"hp1:~# cp ~/CD.iso /dev/sda2:CD,iso"
and it also worked fine.

But when I ran the following qemu command:
"hp1:~ # qemu -name "Gnome-desktop" -M pc-0.12 -m 256 -smp 2 -boot d -drive file=/dev/sda2:server.img,if=virtio,index=0,media=disk,format=raw -drive file=/dev/sda2:CD.iso,index=1,media=cdrom -net nic,model=virtio,macaddr=52:54:00:05:11:11 -net user -vga cirrus -balloon virtio"

I got the following errors:
"qemu: -drive file=/dev/sda2:server.img,if=virtio,index=0,media=disk,format=raw: could not open disk image /dev/sda2:server.img: No such file or directory"

Can anybody help me with this??
Thanks in advance.

--Udit Agarwal

reply via email to

[Prev in Thread] Current Thread [Next in Thread]